General C++ Programming - March 2014 (Page 23)

Completed program: keep getting error message "...was not declared in this scope"
 
Hey guys. So I wrote this program. What I've done here is made a class and struct in one file that feed into my .cpp file of the functions. I can explain mor...
[6 replies] Last: Changed the code on the OP post; that should help clarify things. (by hhoward11)
Ceasar Cipher
 
All I want to do at this point is output the letter used most. I can output a-z and how many thimes they are used in an encoded file, but not the single most us...
[1 reply] : outtext << "The most large number = " << maxIndex << endl; ugh... ... (by giblit)
by bioit
Big issue with all permutations...
 
Hello I've a big problem. I'd like to generate of all permutations of objects present on my list and i don't know how to do this. I've found a few examples, but...
[2 replies] Last: Woah! thank You so much! (by bioit)
implementation of a multithreaded version of mergesort.
 
Hello, Im working on making a multithreaded version of mergesort. [The // Perform "cleanup" work by merging remaining sections. part] I have the norma...
[no replies]
Undefined Reference to Class::Function
 
Hello fellow programmers. I'm making a simple tile-based RPG and I've run into a bit of trouble when I put my code into classes. Im fairly new to classes since ...
[4 replies] Last: Wow i deleted all the extra #includes and it actually ran! Thanks a lo... (by fine858)
"error: 'foo' was not declared in this scope", but it is...right here
 
Main_Log.cpp #include <iostream> #include <fstream> #include "Main_Log.hpp" using namespace std; namespace OUT { bool initiated=false; ofstream logfile; ...
[4 replies] Last: Thanks so much, that fixes so many problems. The extern did it for m... (by ZachAttack4NDP)
by helnow
BST
 
Can someone show me how to write a statement that would not let the compiler crash when it is imputed a non existence number for deletion; i have the complete ...
[3 replies] Last: thanks (by helnow)
C++ through the lens of MS-DOS!!
 
Hey folks, While recently working on a rigorous C++ programming exercise that had multiple classes (including a linked-list class template) with scores of me...
[5 replies] Last: I always thought that MS-DOS is the precursor to the ubiquitous Windo... (by Disch)
Empty Linked List
 
Hi, I've got an assignment where we have to start out with an empty linked list that is formatted as IntNode* head = NULL; Every time I attempt to run it,...
[2 replies] Last: Nevermind, I figured it out. (by proctorwho)
Why do I have to use fseek in this code?
 
Why do I have to use fseek in this code? There is a sentence in a text file and I am trying to insert a word into 9. character in the text file. For example,if...
[3 replies] Last: Thanks for your answers. (by Awareness)
How use Excel and Word files with a computer that doesn't have both?
 
I have to develop an application that uses Qt, Excel and live-time file checking. My client gave me this: I have a problem at work. I need you to develop ...
[5 replies] Last: @kbw Tried Google Drive? How can GDrive help me? My biggest probl... (by iQChange)
by Gnamra
Credit card transactions.
 
I'm interested in how to do credit card transactions, I've been trying to find libraries to help me with this but apparently they either don't exist or I suck a...
[2 replies] Last: Sorry, credit card transactions might be wrong, English isn't my first... (by Gnamra)
Decrease-key operation in a Priority queue
 
How to do the decrease-key operation(used also in Djkstra) in a Priority queue?
[no replies]
Compiler
 
Hi guys.I have a problem about compiler.I want to write a simple compiler for a language. stm -> id := expr | print expr | if expr then stm | while exp...
[1 reply] : http://llvm.org/docs/tutorial/ ^ one of the greatest tutorials i have ... (by Little Bobby Tables)
Making a win32 api program from a console program
 
So I'm using Dev C++ (Orwell update 5.6.1) and i have this code here to search for the code in a database file: #include <fstream> #include <algorithm> ...
[no replies]
DEV C++ programming help
 
i am supposed to create a code that a user can input the number of an item and will get the total. the number of items ordered determines the pricing they wil...
[no replies]
Multiple line input... Multiple line output
 
I am wondering if I have an input file with multiple lines and each line needs to have an output (multi-line output) from a function, how would the input/output...
[3 replies] Last: std::string line; while(std::getline(std::cin, line)) { if (line ... (by MiiNiPaa)
Assembly and C
 
I have the following code: #include <windows.h> #include <stdio.h> extern void* GetAddr(HMODULE name, LPCSTR fname) { HMODULE hMod = GetModuleHandle(...
[3 replies] Last: this is just opcode. Parameter can be placed in memory or core registe... (by tath)
a question about static library
 
Hi friends, here I have several problem for static libraries need your help. From some books I learned that, a static library (.a in Linux) contains a set of...
[3 replies] Last: Thanks mate, As for the 5MB executable, I admit that there may be oth... (by hxuanyu)
C++ STL...what are these containers?
 
Hi All, I have introductory knowledge in STL and I am aware of stack ,quee,deck,set,map,vector,list...etc. When I was going through one book I have come a...
[1 reply] : It is another bunch of data structures. They lack generality and are e... (by MiiNiPaa)
March 2014 Pages: 1... 2122232425... 36
  Archived months: [feb2014] [apr2014]

This is an archived page. To post a new message, go to the current page.