Beginners - November 2009 (Page 7)

Saving variables to a text file, or something similar
 
Hey! I wanted to ask, what should i do in order to keep the variables same size after the program was closed and reopened? Im thinking of something like s...
[4 replies] Last: [quote=firedraco]http://www.cplusplus.com/doc/tutorial/files/ This... (by Zhuge)
Linker Error:Unable to open the file "abc.exe"
 
I am using turbo c++ v3.0 dos. And i am getting the error: Linker Error:Unable to open the file "abc.exe" Please help me out to solve this problem. Than...
[4 replies] Last: @ ROmai.. Thanks.... Running the program as administrator helped... (by Compaddict)
Writing from file to c-string problem
 
Ok so I have been pulling my hair out trying to understand this but just can not seem to get this to work. I got the file to stream into the program, but I cant...
[11 replies] Last: Yes, you need to add a terminating '\0'...getline() might not do that ... (by firedraco)
by Rachel
List Template Class Overloading << operator
 
Hello, I've made a template class A that works as a general list of items. I need it to be possible to fill it with objects of a regular class B and to iter...
[4 replies] Last: Thanks a ton for the help; it's compiling and running properly now. (by Rachel)
Overloaded brain - not function
 
CAn some body please help me out by telling me what I am not doing right here;I thank you very much in advance, #include <iostream> using namespace std; ...
[4 replies] Last: You did not call the overload function . You just called one of them,... (by icerlion)
i gets -
 
Alright I have done some coding before, and never an into a problem like this. This is pretty simple code for an array, but I can't get it to not run an infana...
[4 replies] Last: It is because the compiler has to make sure that arrays do not have a ... (by PeteBongo)
Reading a .3DS file
 
Hey all, I'm having some trouble reading a .3DS file. I've done it in other programming languages, but can't get it working in C++ (I just started working w...
[7 replies] Last: NickPaul, If I remember correctly, names in 3DS files are strings t... (by Abramus)
by BAP
Multi-Dimensional Array Indexing
 
Hi there Need a little help here I have simple multi-dimensional array where you enter the amoun columns and rows in the array and all the values of the a...
[2 replies] Last: [quote=Disch]*Disch stabs multidimentional arrays with a rusty knife* ... (by firedraco)
by triz
Reading in arrays from file
 
I know the code is horrible and I'm sorry for that. I'm new to programming. I'm trying to read in a list of numbers like this: 3 3 15 123 5 4 3 ...
[5 replies] Last: Infinite loops. http://www.cplusplus.com/forum/beginner/3470/#msg1456... (by Duthomhas)
how to delete the last character of a string
 
Hey! Can someone explain to me how to delete the last character of a string, for example: string example = "example"; I need it to contain "exampl" ...
[13 replies] Last: [quote=Kangaroux]I'm not going to argue about this, all I said is that... (by Zhuge)
C-string fundamentals
 
Hi, I'm learning c++ programming and Im currently stuck on an example from the text book I'm reading from (ugh im really not liking this book)... anyways the bo...
[2 replies] Last: Wow... thanks... I feel not so bright now. :D (by Despozble)
Size of multi-dimensional Array
 
I'm new to the forums -- Hello! This is an incredibly simple concept so I have no clue why I can't figure it out. I have a multi-dimensional array as foll...
[5 replies] Last: BTW, that's not a NULL string. That's an empty string. There is a si... (by Duthomhas)
loop question
 
I'm told that there are two issues with this code: 1) Braces are not lined up with loop statement correctly. 2) Loop body is not indented correctly. I'...
[3 replies] Last: not anything that actually affects anything other than your ability t... (by Bazzy)
Having issue with global variable
 
I know it's generally not good practice to use global variable but here's my problem anyways: HEADER.h file: #ifndef TEXTHEAD #define TEXTHEAD #include <...
[4 replies] Last: Worked like a charm thanks!!! (by cartpauj)
Subtracting in a loop
 
Need some help...I have a program I'm writing that is supposed to calculate the amount left on the loan. I've tried to use a do-while loop to get this done and ...
[10 replies] Last: to put text into code click the little <> button by the editor. Or ju... (by cartpauj)
To create a C++ dll for simple animation
 
Dear all, I need to create a dll using C++ for an animation. The animation is just moving a two rectangle bars. Could anyone please give me some idea how to...
[10 replies] Last: The reason you shouldn't use GDI should be in the Wiki: http://en.wik... (by chrisname)
grouping
 
In assignments when the tutorial(cplusplus) states the, right-to-left rule, is it implying the lvalue is added to the rvalue or vice versa?
[3 replies] Last: 'rvalue' and 'lvalue' have sense only with the = operator, with most o... (by Bazzy)
by Null
Another problem with hex...
 
Hello, I have a problem converting raw binary to hex: #include <cstdlib> #include <cstdio> #include <iostream> using namespace std; void PrintHex() ...
[9 replies] Last: .str() (by helios)
syntax
 
Why are some arguments enclosed in parentheses? (first == second) ? "equal" : "not equal";
[7 replies] Last: Thanks, so parens are used to help clarify statements and used for c++... (by ArcherSam)
Connect Four
 
I have a Connect Four project. There are two parts to the project - the first part was to make the actual working game, which I did. Now my professor has given ...
[2 replies] Last: Yes, bestMove is trivial. Is this for an AI class, I take it? Ar... (by jsmith)
November 2009 Pages: 1... 56789... 25
  Archived months: [oct2009] [dec2009]

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