General C++ Programming - May 2012 (Page 20)

Help with calling functions
 
I want the main to read both decoder1 and decoder2 functions. Currently it only reads decoder1. I am not sure how to read them both. #include <iostream> ...
[1 reply] : cout << "input code 1" << endl; cin.getline( arrays, ARRAY_SIZE ); ... (by ne555)
Singly linked list add at end (1,2)
 
Hi, I'm trying to add items to end of list. I have a front and end pointers to keep track of list, but it doesn't compile. struct sll_node//singly linked li...
[25 replies] Last: thanks for that, "Do I need a pointer to a pointer here? Do I need ... (by closed account 4ET0pfjN)
Tasklist?
 
Hi! I've starting programing a lot and i want to know how i can make some kind of "bot". I want to start my program and it will automaticly write stuff and ope...
[3 replies] Last: Before this project can even be *thought* about, you're going to need ... (by Caleb9849)
Quick question about memory leaks
 
So, if I'm remembering correctly, failing to delete memory allocated with new will cause the memory to remain in the system after the program ends. I'm fairly...
[6 replies] Last: If your program is running inside of any operating system whose creato... (by Caleb9849)
auto_ptr & lists
 
Hi all, I was trying to use auto pointers in a list with the following code fragment: class Node { public: int i; auto_ptr<Node> pnode; }; ...
[2 replies] Last: thanks, that worked!! (by santiagorf)
by NGen
SDL Image Resizing
 
I'm attempting to resize (not "stretch", you'll see what I mean in the code below) an SDL_Surface such that it has dimensions that conform to a power of 2. When...
[3 replies] Last: m_pImage = IMG_Load (C_STRING (fname)); if (m_pImage == NULL) ore::D... (by NGen)
Using C++ to create a database
 
Is there a way I can store some data into a database and write a C++ program that allows users to access that data?
[3 replies] Last: I normally use the MySQL C API and it seems to work just fine for my n... (by BHX)
Problem Calling a function from a class
 
ok so im trying to call on a function so that it can go through do the cout commands but i keep getting a expression must have a class type. im pretty sure its ...
[3 replies] Last: Like I said... Face palm moment..Thanks guys! (by Hippiewho)
Quick pointer question
 
What's the difference between int *i; and int i ; ???
[15 replies] Last: Ok, cool! Thanks! =D (by SuperSonic)
identifying a structure in a class
 
ok let's say you have the following code class someclass{ public: struct somestruct{ int a; int b; }structObj; void function(void)...
[5 replies] Last: Thank you (by cscho0415)
Can someone help me please?
 
a) Modify the class to enable input and output of complex number via overloaded >> and << operators, respectively(you should remove the print function from th...
[1 reply] : The instructions seemed pretty clear. What problems were you having? (by Zhuge)
how to make a pointer to an array? or how to return an array?
 
Hello I am currently making a program that reads from a text file and a bunch of questions and answers and puts them on screen for a practice test for my class....
[10 replies] Last: http://www.cplusplus.com/reference/stl/vector/ (by therockon7throw)
a simple program
 
Hello. I am trying to make my first program wich contains a class and my code is not working. Can you please give me a hint because i cannot see where i am wr...
[3 replies] Last: Thank you but my big problem was ";" after the class ending wich i for... (by LifeFiber)
by arooj
Header file Connect Four Game Problem
 
I get the following errors when I try to compile this code for a connect four game, so far I only have the board made. error C2109: subscript requires array ...
[4 replies] Last: std::memcpy(place, p, sizeof(place)); (by Peter87)
Header file stdafx.h
 
Hi all, I'm writing a program that calls other programs, that in-turn calls other programs, and I'm concerned about duplicating #include header files. I'm just ...
[4 replies] Last: It really can be anything that you define so that your headers are inc... (by kooth)
Multiple Output help
 
void main() { int ID,hours,pay1,staff,OT,OTH,GP,NP,i,total; char enter,grade,depname ,b,B,a,term; //Welcoming message cout<<" ------- -- -- ----- -------...
[2 replies] Last: so for example If I entered 40 hours grade a then it would times the h... (by edwardnigma)
by shaggy
Writing to a txt in a folder - fstream
 
Hey there, I am making this game that reads maps from a text document, and there are about three txt's for each level. And so far, they are just all in the sa...
[4 replies] Last: hey man, thanks heaps for the reply. But when i tried the first option... (by shaggy)
Input from user.
 
Is it possible to take input from user using cin or getch() or any other and if user does nor enters any value for some time, program should go to next instruct...
[2 replies] Last: you mean like a timeout? i read something about the peek functionality... (by Jikax)
is there any documentations ...
 
is there any documentations wherein you can find each header files functions and their descriptions...
[6 replies] Last: http://cplusplus.com/reference/ http://cplusplus.com/doc/tutorial/ (by moorecm)
by zooro
write a program
 
Hi, can somebody help me to explain this qustion how can i Write a program that performs temperature conversion between C and F. 1. First get user inpu...
[2 replies] Last: The exercise isn't hard, but it's very hard to help you without knowin... (by liquidfuzz)
May 2012 Pages: 1... 1819202122... 41
  Archived months: [apr2012] [jun2012]

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