Beginners - September 2010 (Page 3)

Storing Char Problems
 
Hi everyone. I got a few projects from school today. The last one I need to do is make a program were the user enters a vowel from the keyboard. If it is a vowe...
[14 replies] Last: Thank you so much Kooth and Coder777. I really appericate the help. I ... (by strychnine213)
by chipp
functions declaration
 
hi, i wanna ask something. i got this code from Microsoft Visual C++ Windows Applications by Example by Stefan Björnander class BankAccount { public: ...
[7 replies] Last: doesn't modify the object was intended to just return the value of th... (by helios)
by tonnot
About namespaces
 
I want to manage my code, and force me to write namespace::myclass (to read my code more easily). OK. I can write namespace MYNM { Myclass {}; }; Mycl...
[7 replies] Last: Yes, the purpose of header files is making visible what's inside a dif... (by Bazzy)
Comparing an array of class instances
 
I have an array of class instances. The class constructor assigns each instance the following variables: X & Y (for coordinates on a board) -- int, int team ...
[5 replies] Last: You're welcome! I'm glad to help! (by kooth)
Beginners Exercise (user == gullible) :)
 
i am brand new to c++ and any programming whatsoever. i decided to do the exercises found on http://www.cplusplus.com/forum/articles/12974/ and use online refe...
[2 replies] Last: thank you, coder777, for the reply and for suggestion. i tested your c... (by AceFace)
by Legal
Terminating upon a conditional?
 
Hi, I'll try not to be too wordy, but this is my first program I'm writing for my COMP class and I'm obviously still very green when it comes to programming. M...
[8 replies] Last: The argc and argv variables can be named anything. Some people don... (by LB)
by tonnot
Tellg gives me 7,14,21,???
 
I'm reading a char from file. So theese values are bits?
[1 reply] : a character is one byte. (by blackcoder41)
by tonnot
Aggregate error when compile
 
I now that it is low information, but anybody can explain me what can be this error: aggregate 'Wfile::WFileUtiles wfileutils' has incomplete type and cannot b...
[2 replies] Last: ok, I think is this . Thanks (by tonnot)
How to round up minutes?
 
Hi, I'm completely lost. Need to create a program that calculates and outputs a bill for a time service and flat fee. the requirements: total number of min...
[2 replies] Last: thank you very much !! (by SweetLen)
Which graphic library would you suggest(for statistical graphs)?
 
I want to draw some statistical graphs by C++,like histogram,line graph, bar graph and so on. Which library is easy to use, free and efficient? Thank y...
[2 replies] Last: Thanks a lot. I was considering about openGL, QT4 and the other libr... (by stereoMatching)
by tonnot
How can I write a class to use <<
 
In the same way cout << "hello" works, I would want to write a class to use << Some skeleton ? Thanks
[4 replies] Last: Read up on C++ Operator Overloading topic. A pretty useful and intuiti... (by sohguanh)
Dead Simple Music
 
Hi, I am trying to write a program that will loop infinitely until it is interrupted by a SPECIFIC key being pressed. Once pressed it will play a tone that c...
[2 replies] Last: Actually trying to parse all the possibilities user can input at the c... (by sohguanh)
Problem with homework.
 
Hello, I am new to the forum. I am also new to C++. I have a homework question that consist of a user entering a number of coupons that they have won and the...
[5 replies] Last: Thank you :-) (by iRoz247)
Arbitrary number
 
I'm supposed to write a program that uses input file number.dat and output them to file stats.out. It is supposed to show the total number of positive values r...
[6 replies] Last: Thank you very much it worked perfectly. (by nflman124)
How to get keyboard inputed ints one by one
 
I am trying to create a program to read arbitrary long integer numbers and then print them. My idea is to 1. create a dynamic array of integers or chars ...
[5 replies] Last: Why don't you come out with your program and we take a look. Below is ... (by sohguanh)
issue with fstream
 
Please help. As a test I called a function to read a txt file and display it. It doesnt work. Here is the code, #include <iostream> #include <istream> #in...
[9 replies] Last: Yes, its a bit like that. There are a lot of common names in the st... (by Galik)
by dmr3b
Separating Parts of a String
 
i have a .dat file that contains 30 lines where each line contains an ID number followed by 5 integers all of which are separated by unknown amount of white spa...
[5 replies] Last: using a while loop caused only the first array elements to be stored p... (by dmr3b)
<<endl;
 
when is it necessary to use the <<endl;
[6 replies] Last: When you want to output a newline and flush the stream I believe ... (by sohguanh)
by MWH
C++ date manipulation
 
How to compare two dates in c++ what are the header files to use?
[1 reply] : http://www.cplusplus.com/reference/clibrary/ctime/ (by MottMan)
assigning a pointer with the value of a pointer..
 
double *n, *numberTemp, *answer; *n = 5; *numberTemp = *n; so im trying to do that.. but it comes up with an error.. can someone help me get by this?...
[4 replies] Last: hi vukki, that looks to be quite educational, thanks for your response... (by keewong)
September 2010 Pages: 12345... 32
  Archived months: [aug2010] [oct2010]

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