General C++ Programming - December 2011 (Page 38)

Adjacency List - Incorrect Order
 
I am having problem to create adjacent list in correct order. I think there is some problem in CreateAdjList(void)method. I run out of ideas. Please give me som...
[1 reply] : How about push new node at back? void CreateAdjList(void) { int v1,... (by pot)
array error
 
i keep getting the error "invalid types for array subscript" in my program.i bolded the line with the error message. sorry its not indented like it should. i to...
[5 replies] Last: You have to declare grade as an array of int's. When you do fp >> g... (by bbgst)
C++ Class Help.
 
Using a text editor (i.e. Notepad), create a text file called Text1.txt and place it into a folder of your choosing. Fill Text1.txt with a sentence and save th...
[15 replies] Last: You are Awesome thank you, this program is so sensitive. I have one mo... (by ConfusedLearner)
Tricks to know if main() has started? (1,2)
 
Hi, In a function, i need to make sure i am after main() has started in order to create a specific object used by a library (because it needs to make sure som...
[25 replies] Last: main can't start if the global variables haven't been constructed. F... (by bbgst)
Bubble Sort?
 
So ive been working on this program for five hours now and i trying to sort this array of student names with their test scores. this is what i have #include ...
[12 replies] Last: i got it now. thanks for the hlep (by franci25)
Need help quickly,, string problem
 
can you correct the last line of this section of code??? int Score=1; BOOL SetWindowText(HWND hWnd,LPCTSTR lpString); void RemoveRow(int row)...
[13 replies] Last: IT WORKS!!! THANK YOU SO MUCH!!!!!!!! OHMYGOD!!!! haha no really thank... (by Echo773)
Parallel Arrays (1,2,3)
 
Im doing a program and it is asking me to do this. Make a function named getData to interactively input data values into the variable listSize and then valu...
[41 replies] Last: void sortData(int size, char studentName ){ bool swap; int temp ; ... (by franci25)
a few questions.
 
I'm making a multiplayer card game and i'm using panels they would work right cause i can't really make meshes all that well. and how do i put pictures on pa...
[7 replies] Last: what can i do with wxwidgets? sorry this is my first non text based ga... (by joshrocks)
Frustrating issue
 
Hello, I have built a small math parsing library, which compiles just fine, but when I integrate it into any programs I get these errors: error: 'std::pair...
[14 replies] Last: That's why you put those functions in the private section of your clas... (by LB)
Clean screen
 
I have a problem with a dev-c program. I need to eliminate part of screen that I am showing, and leaving only what I want. Therefore have to be able to select t...
[1 reply] : That kind of control over the terminal requires something like ncurses... (by Moschops)
void assignRandom(double *x, int n);
 
I have an assignment I have been working on and am not too sure where to go from here: (my problems are at the bottom of post) "Write a function that assigns...
[3 replies] Last: Thanks for the help. This is what the final attempt looked like and i... (by bribart222)
Programing with functions (1,2)
 
Help please! my assignment is: Write a program that calculates and prints the bill for a cellular telephone company. The company offers two types of service...
[25 replies] Last: again thank you very much!!! I have completed my assignment and It wor... (by aswmack)
Need help with Get and Set class functions and class constructor
 
Hey there, I have an assignment that I'm working on that I feel I am very close to finishing. Basically the idea is that I need to read in a "maze" from a te...
[2 replies] Last: Is that better? :) (by wte0001)
workaround for pointers to bit fields (mimic std::bitset operator[])
 
I know in the C++ spec it states that pointers to bitfields are disallowed. There must be some sort of a workaround to this, however, as std::bitset seems to a...
[5 replies] Last: Perhaps I could use std::bitset::reference in a similar way (or create... (by whitmcrae)
Overloading the [] Operator
 
I've been playing around with data structures (queues, lists, stacks, etc.) for awhile now, and I'm trying to grasp the concept of operator overloading, namely,...
[1 reply] : http://www.parashift.com/c++-faq-lite/operator-overloading.html (by Texan40)
How to avoid global variables
 
Hello. In my program I have tons, seriously, tons of global variables! I've thought of some ways so as to decline their number. Basically, I use all this g...
[3 replies] Last: Thanks for the answers, what I really need to do here is to avoid load... (by hakermania)
std::map
 
what is this in c++ std::map<std::string
[8 replies] Last: Unordered map is much faster though... TR1 UNORDERED_MAP (4 byte obje... (by rscarson)
I need to know this, plz help
 
Someone recommended this in order to learn c++: ISO 14882:1998 (the original language definition) ISO 14882:2003 (the bugfix and still current legal standard...
[7 replies] Last: Moschops ( n whoever can help), In what order should i read the books ... (by malvado)
Question about strings in c++
 
Hi, These days I’m developing in c++ for the first time, after 6 years working only in .NET and Java. I would like you to help me with two doubts I have: ...
[6 replies] Last: c_str() returns a const char* so tfityo's example should be string so... (by Peter87)
STL map internal implementation.
 
I was searching how map is internally implemented in STL.I am so glad if someone can help me on that. Please share code also if you have. Thanks, Deepesh C...
[7 replies] Last: The code for these templates is normally present in the header files y... (by Jessy V)
December 2011 Pages: 1... 36373839
  Archived months: [nov2011] [jan2012]

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