Beginners (Page 3)

How to use the Getline function (1,2)
 
This is a problem that I am required to do for a c class and was just wondering if you guys could he...
[20 replies] Last: Huh... I hadn't considered that gentleguy might have actually deleted ... (by MikeyBoy)
Retrieving user input and putting them in arrays
 
Hi, I'm having trouble retrieving a user inputted 4 letter word and storing each of those letters in...
[2 replies] Last: @OP string codemessage ; is an array of 4 different strings. This c... (by Handy Andy)
Clock
 
I need my clock to end with 12:00:00 not 12:60:60 i dont know how #include<iostream> #inclu...
[12 replies] Last: Check out this topic : http://www.cplusplus.com/forum/beginner/196275... (by gentleguy)
How to copy a string from cmd line?
 
Hi, I'm totally new to coding. I need an advice from veteran because I doing this for my part of my ...
[5 replies] Last: I know your wanting to code this in C but if you have the option, powe... (by SamuelAdams)
how to end my while loop
 
// i already done my program but it should say congratulations at the end after users answer correct...
[2 replies] Last: it should say congratulations at the end after users answer correctly... (by kemort)
If statement
 
What does this mean, it defines a new boolean and gives it false value, but what does if(z) mean, wh...
[7 replies] Last: Seems this is a question of style. Both are correct. The advantage ga... (by kemort)
by cmisip
Template without changing function signature
 
Is there a way to change this to a templated function. From what I read so far, templated functions...
[6 replies] Last: I dont really know the data I will need to pass around at this point. ... (by cmisip)
SFML redraw same sprite
 
I have a sprite and am able to display it, however now I want to "redraw it" and display it in a dif...
[5 replies] Last: I know nothing about SMFL. But does that help? :) (by gentleguy)
by cmisip
Deleting an 2d array created with new in a class
 
Is this the proper way to delete matrix? class map_item{ public: map_item(micr...
[8 replies] Last: I switched to shared_ptrs so I dont have to worry about the memory lea... (by cmisip)
by cmisip
variadic template for class member undefined reference
 
How do I create a class member function that takes on multiple unknown number of arguments as parame...
[14 replies] Last: Works, no runtime issues. Thanks for your time and interest Chris (by cmisip)
Birthday Paradox coding
 
Hi, I currently teaching myself C++, and am building a simple code that given a set class number of...
[17 replies] Last: [quote=cire]You probably didn't bother differentiating between those c... (by TheIdeasMan)
getline and wchar_t
 
Hi, I have the following problem: I want user to write the filename in console. I tried this: ...
[12 replies] Last: You are great, Thanks a lot! (by Zeltrax)
by MAhmed
Pointers
 
trying to make a pointer which call function from human class but having difficulties please check b...
[3 replies] Last: No, you don't need to create a new one. You can have the pointer point... (by JayhawkZombie)
Why does it say segmention fault : 11;
 
Write your question here. Hi, When I run this code it print segmention fault : 11 and does not pr...
[2 replies] Last: I am trying to do quick sort (by IanZhang3374)
Creating Abstract Data Types
 
Hello! I am having problems understanding how to create my own abstract data types. This is th...
[19 replies] Last: Hey Abstract, that bool function with the print one actually makes sen... (by LiBRiUMz)
How do I output the complete text from employee.dat to employee.dak?
 
Hello, I have created a text file using the data contained in arrays of various data types (char...
[2 replies] Last: Hello, // need ifstream to read the information ifstream employe... (by Shishykish)
program about are you smarter than a 5th grader (1,2)
 
//can someone finish my program about are you smarter than a 5th grader? btw i already put the answe...
[31 replies] Last: I still can't figure it out where to put "congratulations" because it ... (by advancety)
Simple program | Recursion
 
Hi, so I get the error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctool...
[2 replies] Last: @ Grey Wolf >> Thanks. (by aurimas13)
For loops
 
Hi I have a question regarding for-loops. What value would be saved in x? int x = 0; for( int i = ...
[6 replies] Last: kevin84, All these answers are good, but they have kind of missed the... (by Handy Andy)
Need Help
 
I need help with my code for school. My code will not let the user input 'y' or 'n' for cin >> poBox...
[4 replies] Last: Your welcome! Hope you come back to the forums again sometime :) (by kevinkjt2000)
Pages: 12345... 49
  Archived months: [jun2016]

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