Beginners - May 2009 (Page 8)

Just can't do it!
 
Create a program in which there is an array composed of 10 characteres inserted by the user. When the user's already inserted all characters the program must p...
[3 replies] Last: Your char array, request, should be left uninitialised. The message "P... (by fauntleroy42)
reading/writing binary files using << / >>
 
I am new to C++ and want to learn about binary files. I am trying to write/read to a binary file using the insertion/extraction operators. I would like for t...
[6 replies] Last: OOC++ Wait, so there's a NOO C++, now? What you're trying to do is... (by helios)
by omk
Moving into the windows application realm.
 
Ok, so Im pretty much done with my 1st year of education and was thinking of learning some more programming stuff during this summer. The only thing I need to ...
[10 replies] Last: I have not seen a problem with the code from the book and VS2008. See... (by closed account z05DSL3A)
by kk84
How to declare Multi - dimensional in stacks
 
Hi all, Would like to find out, if I use stack to push in integer, how can i push in two dimensional array in? thanks
[1 reply] : That depends entirely on your implementation of a stack. What stack... (by Duthomhas)
by Pether
Newbie Program: Editing several txt-files and more. Questions.
 
Hi, I took up C++ with the dream of that in the future I'll write my own games, you havent heard of that one before i am sure. Anyway, I thought of writing ...
[7 replies] Last: @Ashishm, i kinda realize that but im to lazy to edit it (by jloundy)
by bobsta
Problem with ofstream when defining member functions in source file
 
Hi, I am having difficulties compiling my code. I recently cleaned up my code by dividing class declarations into an appropriate classname.h file and the def...
[1 reply] : Beam.cpp:14: error: ‘ofstream’ was not declared in this scope M... (by helios)
by nanger
the number of actual arguments
 
in the following codes, the number of actual arguments doesn't respect that of formal arguments is it correct or not? I'm sure there is no function overloadi...
[3 replies] Last: The example given, set ( const Compare& comp = Compare(), const Alloc... (by closed account z05DSL3A)
passing character arrays to constructors
 
Hi! Can you pass an array of characters to a constructor? I keep trying to but it's saying that the variable is unknown. I'm trying: class expense... ...
[2 replies] Last: Make sure to watch your const correctness. Unless your constructor e... (by Duthomhas)
Ideas? (1,2)
 
This isn't really a question like "How to xyz" or whatever, but it's still C++ related and a question, so, yeah: I need some ideas for programs to do. I know...
[29 replies] Last: I'm not sure why I put conio.h there. I'm pretty pleased with how i... (by chrisname)
by dwade
How to find the total number of records
 
The question I have to answer is to find out the average marks between two students. These students are: studentID: P1001 mark: 78.5 studentID: P1002 mark: ...
[3 replies] Last: That's true, I always make this typo. Sorry! Regarding to the stude... (by Noha)
C/C++ Graphic in motion (1,2)
 
Hey guys, I think that i will use this forum for some time. Its my first year in informatics and i will need to learn C/C++ to graduate. I have 3 years to do ...
[22 replies] Last: The program is done. Its a little bit different from what i wanted but... (by Costinkara)
How to transport a program
 
I typed out a program that I'd like to show to my english class at school. I've got it included all in one .cpp file on my compiler (Visual C++ '08). I was wond...
[10 replies] Last: Alright, I found it. Thanks again for all the help. (by Lief Webster)
by Bodsda
Reading from file, checking contents of a line (1,2)
 
Hi, I have a file, each line begins with a line number, it looks like this 1: This is line 1 2: This is line 2 3: This is line 3 etc etc etc The u...
[24 replies] Last: dont use eof, use: while(getline(myFile,line,'~'); your could ... (by jloundy)
by kishor
how to read string cointaing more than one word stored on text file
 
I want to read string of multipal word stored on text file. I have tried but unable to read it . How this is to be done in c Here is my code #includ...
[2 replies] Last: look at getline() think of using a loop to read each line individua... (by jloundy)
by Tilpo
Converting strings into doubles
 
Hi everyone, I know this might come over (or it might not come over) as a simple question, but how can i convert to contents of a string object to a double ...
[4 replies] Last: string y = "69"; double x = strtod(y.c_str()); i think thats... (by jloundy)
From Beginner to Expert (1,2)
 
Hey I just had a quick question to help me understand something greater. I am still a beginner C++ programmer and I've used tools like DevC++ and Visual C++,...
[32 replies] Last: I'm going to end it with a well-deserved Fuck You for making me waste... (by andrei c)
by jaaam
C and C++ challenges
 
Hello, Just for info I found the C and C++ challenges in this following link http://www.prog2impress.com/puzzles.html which is good for beginners. Than...
[no replies]
can we call the constructors manually??
 
Can we call the constructors manually?or it is always called by the compilers by default?
[3 replies] Last: You can call a constructor manually with placement new. I believe t... (by Disch)
by nanger
when should we add a "virtual"
 
in the base class, there is a virtual function when the we want to override the virtual function in derived class need we add a 'virtual' before the definitio...
[5 replies] Last: I just post an example after fellows here gave me directions. http:... (by MarcioAB)
Extra output from program
 
I am trying to make this program output the data from a file showing names and birthdays. At the end of the output, it shows the last date again (with the setw)...
[4 replies] Last: It worked. Thank you both for the help. (by nospeake)
May 2009 Pages: 1... 678910... 21
  Archived months: [apr2009] [jun2009]

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