Beginners (Page 2)

New! Join the C++ community on Google+
by Shiro
inner class acess
 
im trying to acess parent class properties from inner class... but seems nor working eg: cla...
[6 replies] Last: No, this means that you can't default-construct an object of a class w... (by Cubbi)
std::cin input being skipped?
 
Some input is being skipped and it sets the variable to null or empty or something. Here is the rele...
[no replies]
constant elements vector
 
I'm experimenting with constants. I would like to append few elements in vector which will remain co...
[3 replies] Last: With STL containers, the value type is required to be assignable . (n... (by Thumper)
now why would this program only print the first line of the txt file
 
i put a cout in the constructor and the compiler proved that box was filled with the txt file in the...
[3 replies] Last: oops! thanks...dumb (by devonrevenge)
Some very specific questions about C++ writing.
 
Hello I'm a real newbie on C++. I just started to learn it by my self and it really draws me in.....
[1 reply] : Hello, Shalito. Welcome to cplusplus forums :) When posting code, plea... (by Thumper)
find two largest values for 10 numbers
 
following code is used to find the largest value for 10 number, using similar approach, find the fin...
[5 replies] Last: @Marcos, short and nice. worked. thnx. (by dipen45)
by ANGAY9
HELP PLEASE!!!
 
Hi.I have to write a c++ programm with a stack struckture.The task is to count if the number of such...
[3 replies] Last: Please don't provide code to someone who has not offered up any of the... (by Kazekan)
Location in Memory
 
I have this code int main() { int a = { 22, 33, 44, 55, 66, 77, 88, 99 }; int* p = ...
[3 replies] Last: Check out this: #include<iostream> using namespace std; int main (... (by Marcos Modenesi)
Header file ostream/istream problems
 
Trying to compile and link a few files; stuff from Stroustrup's Programming, Principles and Practice...
[4 replies] Last: Yes, declared with all its member functions and defined in .cpp file (by Amnesiac)
Limiting entries to only positive non-decimal numbers
 
... do { cin>>array ; }while(array <0); //Limits to only positive numbers What else sh...
[1 reply] : The simple way to do it is this. int main() { int number; ci... (by Zereo)
Hangman [redo]
 
Starting today, I will be remaking hangman and positing the pieces of my code as it grows. I have be...
[3 replies] Last: No, one call to srand is all you need. Consecutive calls to rand w... (by Branflakes91093)
Please help me to solve this ATM Project .(C++ )
 
HI ;) I AM NEW in c++ programming; and i had a ATM Project ; but i dont know what i do :{ Your...
[3 replies] Last: My Code. #include <stdio.h> #include <strlib.h> #include "simpio.h" ... (by usandfriends)
Formatting txt file: unwanted empty line and need space before and after punctuation
 
Hey, All! Goals: 1. Getting rid of comments *** DONE! 2. Ensure a space before and after punctua...
[2 replies] Last: you should probably check if that line is a blank line. If yes, then ... (by Tuta816)
Gives Letter Grade
 
Ok so I have this code I made but now I have to add so it gives a final grade as an output depending...
[1 reply] : Start with int int main () and end with return 0; Users like outp... (by SamuelAdams)
by Izaks
I came across this challenging program which sort and search for arrays.
 
The assignment is to create a program that creates, sorts, and searches array. Your program will us...
[1 reply] : Write the outline of your program, and create the functions for each t... (by SamuelAdams)
by Krue
strcpy not working in C++ but working in C
 
the code is strcpy(p->data, text); text is a const char* and p->data is a UDPpacket* from SDL_net...
[3 replies] Last: thanks, i cannot beleive i didn't solve this myself it is so simple an... (by Krue)
How do you display the number of iterations
 
How do you display the number of iterations it takes to find a number that the user would input into...
[1 reply] : put this outside any while, if, for loop condition. int counter =0; ... (by SamuelAdams)
checking an int variable
 
Hi All I am writting a menu, where a user will use a number to choose their option. How do i stop...
[9 replies] Last: You can just input a char and check if it is a digit or not. #inclu... (by PalashBansal96)
writing from one file to another
 
Hello, I've seen plenty of posts on how to write to a file, or how to read from a file, but not any ...
[1 reply] : Line 48 is inside of a while loop. That means that it will be created... (by Stewbond)
urgent please help
 
can someone please help me fix my code so that the it shows the following output SAMPLE OUTPUT H...
[5 replies] Last: I did not look at length, but Min and Average was working. (by SamuelAdams)
Pages: 1234... 112
  Archived months: [oct2012]

Cannot post in this page. To post a new message, go to the first page.