Beginners - September 2011 (Page 10)

cin.get function not being executed
 
I'm not entirely sure how to phrase this, mostly because I don't understand what's happening. However, I'm trying to write a simple program to run a number t...
[4 replies] Last: Ah, I knew it was going to be something stupid like that...thanks, the... (by musicman1007)
C++ concepts using one example
 
Hi Guys, Could any one please send me the material links where i can find all the c++ concepts explained using single example of class? i found lot of m...
[2 replies] Last: In C++, the word "Concepts" has a specific meaning: http://en.wikipedi... (by Duthomhas)
help:passing a function from array of struct
 
I'm working on a beginner practice problem, where data is input from file into a struct. basically the input file has a list of grades of at most 15 students, a...
[6 replies] Last: when i comment out the error line, the program runs fine and cout <<... (by aquariusmirky)
GUI?
 
How do you make a GUI in C/C++?
[13 replies] Last: Sure, thats what I meant to say, apologies. KyleFYI, there are a lar... (by dangrr888)
Binary system
 
Pls help to solve this problem with explanation I think here firs of all i have to convert binary to decimal then decimal to binary Input In some line ...
[11 replies] Last: I am new after that i think i will not need examples and i can solve d... (by curious)
by hwuy
window making
 
i am starting to get into actully making applications where you use windows instead of jt a terminal or cmd. I know all about the windows.h header but i hate it...
[6 replies] Last: For windows check out WTL (Windows Template Library) it's an template ... (by binarybob350)
cin>> restric entry only numeric
 
during input using cin>>n (int n) i want to accept only integer(0-9) and at the same time avoid accidentally alphabhet or space or enter key which will bring...
[no replies]
by broot
Fstream problem
 
When I am outputting to a file, such as ofstream output; output.open( "myfile.out", ios::out ); if( !output.is_open() ) { cerr << "Failed to open...
[2 replies] Last: I just tried the code (missing ; after int example = 30 ) in Visual S... (by binarybob350)
by woohoo
Compiling Options?
 
Im having a problem trying to fix the compiling options. I need to make it so both FunctionOne and FunctionTwo have 2 seperate Ends . But for some reason the c...
[12 replies] Last: Oh, well im trying to get the size of functions without making unique ... (by woohoo)
by PizzaE
Creating an object with "<<" allowed?
 
I am trying to make some sort of text based game and I am still learning c++. I have already set up a simple class as "monster" which will be used by the enemy ...
[7 replies] Last: Well, when I read the code, the first thing I see is an incorrect clas... (by andywestken)
check the input empty in string
 
hey guys I have a program asking the user to input his name in string but I wannna quiet the program if the user didnt enter any things or numbers? can you ...
[1 reply] : Google is your friend :D http://www.cplusplus.com/reference/string/st... (by jalfor)
by wafaa
float problem
 
hello Doedsany one now how can i write a if statement if i enter for example 10.00 i want to now if after the dott 00 or not for example 10.55 10.00 the fir...
[5 replies] Last: Thank you for your help (by wafaa)
by dznguy
class with private array
 
so im going to convert a struct into a class that would do the same thing as before, adding two num together. my current problem is that in struct, since all th...
[4 replies] Last: i want to check the numdigit so that i could set the loop for adding t... (by dznguy)
multiple char inputs in a sentence
 
i have to write a program where you enter: name age city profession ....and then those are inserted into a sentence. well after the first cin.get(); it jus...
[1 reply] : It's probably because when you use cin>> to read data, it leaves a new... (by Zhuge)
Multiplying/dividing floating point numbers
 
How do you multiply/divide one floating point number by another? I've been trying to do it using * and / for a while now, but I keep getting "expression must ha...
[3 replies] Last: just do anything with ( * && / ) c++ no restriction to it...just avoid... (by RSR102782)
multiplying by 2 in a loop
 
PROBLEM : Print out a table based on the number of days the user enters starting at one. List the pay for each day, the first days pay is a penny, but the pay...
[3 replies] Last: @soundman7085 You're very welcome... (by whitenite1)
looking for the next step...
 
the title sort of explains the situation... i know the basics: data types variable definition (global & (private/local)) if statements do --> while loops ...
[8 replies] Last: At that's right. They changed that in VS2010. I don't know why they ... (by Disch)
by Chathu
C++
 
does anyone know how to read records in a file? This is what i wrote so far.
[2 replies] Last: Hey Thanks a lot ... I Appreciate it very much.....this is the first t... (by Chathu)
by Mas15
Lvalue required as left operand of assignment
 
I got the error mentioned in the title on this line of code. number%divisor=final; In this code #include <iostream> int main (int argc, char * const argv )...
[2 replies] Last: Thanks it works perfectly. I can't believe I was stupid enough to make... (by Mas15)
float data in class pointers
 
hello... i am having trouble printing float data using class pointers...integer values work just fine. I am implementing polynomial diffrentiation using linked ...
[no replies]
September 2011 Pages: 1... 89101112... 48
  Archived months: [aug2011] [oct2011]

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