General C++ Programming - November 2010 (Page 10)

by tas10
Problem with Program, input/output
 
This is my input assigned: // ID Name Address St Zip Majr Minr Rk QCA AltQCA Crd Hrs 135792468 Wayne,John Duke 101 Hollywood Way CA 40815 CS MATH 10 3.2667 ...
[3 replies] Last: Yes. http://www.cplusplus.com/forum/general/17771/ http://www.cplusp... (by kempofighter)
Trouble passing a map by reference
 
Hello all, I'm having a problem passing a map by reference; the compiler seems to want to treat it as a _tree of some kind. I define the following type: ...
[3 replies] Last: Thanks for the quick responses! The const_iterator suggestion cover... (by andersongw1)
I am really struggling with calculator assignment
 
Hey im having problems with my program. I am not exactly sure what the problem is i can successfully build the code but when i actually run the program it pops...
[5 replies] Last: Thank you i am not getting the run time error any more because of that... (by boaschri)
C++ Destructors
 
Are destructors in a class only required if you specifically allocate memory using new inside the class? For example, let's say I am making an ordered Linked...
[2 replies] Last: Thanks (by dalbir4444)
below cant run
 
----------------
[15 replies] Last: anyway to use to bool statement to verify the match of left and right ... (by nanochan1)
Accessing C# from C++ COM client
 
Hi, Below's the COM client written in native C++. It does two things: 1) Get's updated value of a variable from COM Server, which indeed works fine 2) Call...
[1 reply] : Program::CXLStoXML.ConvertToXML(); ConvertToXML is probably static s... (by coder777)
Problem with Array with VECTOR
 
targetver.h #include <iostream> #include <vector> using namespace std; #include "Array.h" Array.h #pragma once class Array { private: ...
[4 replies] Last: Your Array class doesn't do anything. It has one member, a pointer ... (by kbw)
The clockwork of console/file-streams?
 
How might I program something such as the standard streaming features for Input/Output in console windows and files? I want to know how they work. I don't care ...
[2 replies] Last: It's the same for Windows. The native calls are ReadFile/WriteFile/Cr... (by kbw)
by Giules
sorting a vector of pointer to object
 
Hi! I have a problem writing my code and I did not find any solution yet.. I need to sort a vector of pointers, defined as vector<Function*>, using one of the...
[3 replies] Last: If you want to use it in another translation unit, you just need to re... (by Athar)
Problem about queue...
 
Please write the program “Car counting”. The program should create of queue of cars with a different colors. It means cars that arrived to crossroad. Then t...
[1 reply] : success (1) No. Failure. (by rapidcoder)
by Skynet
Word Array
 
I was wondering if you all could help me get ideas on how to work a word array. I need helping on building an array, not predefined, and getting a .txt file and...
[4 replies] Last: vector is such an "array". The concept is called dynamic array. (by Athar)
SDL vs SFML
 
So I just recently dove head first in to the art of SDL. More than anything, my reason for choosing this one is that I know it is widely used and has been tried...
[8 replies] Last: Well, SDL has faster 2D animation and graphics for high-speed action ... (by Disch)
can you template a single variable?
 
i would like to have a non global, template variable to use for input in 'main' only i have a struct for this but if there is a better way i would rather u...
[8 replies] Last: It's to keep track of the variable type. (by PiMaster)
SOLVED.
 
SOLVED.
[5 replies] Last: the problem is here: string title ; //wrong string author ; //wrong... (by rocketboy9000)
by Zacky1
1 MAJOR error that keeps me struggling!!
 
Here is a bit of code that will give me the error: "no match for 'operator==' in 'addphoto == true' " and errors which resembles it ex. "no match for 'operator=...
[2 replies] Last: Also //if(useruploadchoise=="A","a") if(useruploadchoise=="A" or use... (by ne555)
by Molson
C function overloading
 
Hi, is there a way to overload a function in C. Like this: void func(); void func(int i); Thanks!! Molson
[1 reply] : No. C does not allow function overloading. You can do that in C++ ... (by Disch)
by JoR
istream >> int empty input
 
When I use the overloaded right shift operator of istream on an integer like in: int i; std::cin>>i; Is there a way to find out if the input was empty li...
[2 replies] Last: kthx (by JoR)
error vs exception : design problem
 
Hi everyone, I'm actually trying to solve the question of error vs exception. In my functions library, performance is not the key value. The realy importa...
[1 reply] : Generally, when building a library it is not a good idea to leak excep... (by jsmith)
XOR encryption problem
 
Ok, For some reason when I go to encrypt a specific string it just disappears completely. any help? //part of the Database class void save() { ...
[5 replies] Last: I ended up deleting this encryption and used something completely diff... (by krazyito65)
November 2010 Pages: 1... 89101112... 21
  Archived months: [oct2010] [dec2010]

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