Beginners - June 2014 (Page 6)

Record deleting
 
I Wrote the code that takes a roll no and deletes the data of that roll no but there is a little problem ... when i copy data from one file to another removing ...
[9 replies] Last: 1)Why should i not use getline with binary files ?? Let me first ans... (by jlb)
search an array to find if string is there or not
 
how to compare the string of the users input to a string put in by the user earlier? // Libraries #include <iostream> #include <cstring> #include <str...
[19 replies] Last: @Cnewbie51, you may want to ask in the lounge forum for a tutor. Most... (by dhayden)
by yepMe
Double linked list : insertion stops after entering third value
 
Hi All, I am writing a double linked list , but my program is giving me a weird problem, for the insertion if I enter the first node it's working fine and al...
[3 replies] Last: oops my mistake :(.. found the problem... (by yepMe)
by h4ever
How to share global object in other modules? (1,2,3)
 
I want to pass this pointer referencing to instance of MyGlobalClass because I need to access members of the object from within other modules. Originally I t...
[48 replies] Last: Thanks a lot for your help. I was pretty nervous last day, coz this lo... (by h4ever)
If the user enters the wrong name, then enters the right name, the code stops? (I think it's a while loop & control flow issue)
 
I am trying to make a simple program that asks the user for their name and ID. If their name matches one of the names in the array spectreNames, then they will ...
[2 replies] Last: Oh, I understand! Thanks a bunch. (by compass)
by omoe
Problem with char arrarys
 
Hi guys , Im not that good at c++ but im learning , What i want to do is make a char array started by 0xe9 and followed by unsigned int address represented in ...
[3 replies] Last: I'm also unclear as to what you're trying to do. You say that jump... (by AbstractionAnon)
Pig Latin
 
A common topic i'm sure. I've managed to make my program compile but it comes up with a very strange error in the console when i try to use it. feel free to cor...
[4 replies] Last: Started from the beginning; #include <iostream> #include <sstream>... (by ashtonr132)
const_cast
 
Hi,everyone. I have some doubts about using const_cast which I hope that you guys could help me to resolve. Please take a look at the code below: #incl...
[2 replies] Last: why an int pointer can hold the address of a const int? There is an... (by tipaye)
Bool not working as intended
 
Hello, I have just started practicing with 'bool' and for some reason it is not working at all, and is doing the opposite of the intended function. #include...
[4 replies] Last: senhor: Thanks for the suggestion on an if statement, but I am yet to ... (by nrgbros)
stringstream redfinition error
 
I'm using stringstream in order to change my string array into int. When I attempt to use it multiple times in the same function I get these errors: error C2...
[3 replies] Last: You could also use the strringstream.str() member function to reassign... (by jlb)
Text based game - Save progress
 
Hello ! I am making a text-based game where you pick a character to talk to and you ask them questions and they answer, etc. The output would be similar to th...
[9 replies] Last: what editor is that? TGE , text quest editor for Space Rangers. Does... (by MiiNiPaa)
Flight Seating arrangements
 
uhm, I know that i should be doing my own homework , but can anyone tell me whats wrong in this part.(This is just a part of the If else if statements im using ...
[3 replies] Last: It looks like the expression could be simplified: if (x >= 29){ ... (by helios)
Some info on where to start as a c++ game engine programmer
 
Im sorry if this has been answered some where but i could never find the answer to this question. I am 17 turning 18 and i am going into the 11th grade and i...
[8 replies] Last: Thank you so much BHX Specter, you have finally awnsered my questions ... (by FatAngryCows)
by cybr
c++ code
 
Write your question here. #include <iostream> using namespace std; //////////////////////////////////////////////////////////////// class Distance //Engli...
[3 replies] Last: Do you know class syntax? Do you understand the cout and what it doe... (by AIa43)
by AIa43
Subprograms in arrays
 
I don't know if it's even possible to put subprograms in arrays, such as items in an in-game shop. struct user { string username; int hp; int hunger; int mo...
[4 replies] Last: Thanks! (by AIa43)
Reading data from a txt file
 
Hi I was trying to create a program that reads data in a txt file and produces it. My problem is that the output keeps closing, I'm not sure if my code is wro...
[4 replies] Last: Actually I figured it out, I had to change the file name in order to d... (by tehnoobshire)
Is there any difference?
 
Hey guys, I've been using the member function ".at" of the String object for printing out character positions in a string. This book I'm reading though uses ...
[2 replies] Last: Ah yes that makes sense. It's just explained exactly what you just sai... (by Sausage)
by Drak
Grading Program (Also using arrays)
 
Now this one is due along with my other topic "Numbers in a file". Me and a classmate have been working on this one together for going on 3 straight hours and w...
[7 replies] Last: We fixed everything. There was something wrong with the program we wer... (by Drak)
Returning Values from Functions
 
Below is my program. I need it to run 1 - 12seconds and the distance in feet. But it only shows the 12th second and distance for the 1st second. I need help ...
[3 replies] Last: I got it, thanks for the response! #include <iostream> #include <iom... (by treed2010)
Exceptions continued
 
I am trying to teach myself exceptions; and not doing a great job. I have a section of code here in the driver that I am trying to make "bullet proof". I am g...
[4 replies] Last: I see my error! thanks helios! (by DEnumber50)
June 2014 Pages: 1... 45678... 48
  Archived months: [may2014] [jul2014]

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