Beginners - August 2009 (Page 7)

Lookin to get back into C++
 
Hey folks, I took on C++ for a good solid 4 - 6 months then took a bit of time off. During those 4 - 6 months it was 12+ hour days hammering in information, pro...
[4 replies] Last: heh if I could get 2 small boxes on the screen with collision detectio... (by GunnDawg09)
by missty
c++ question: add line to text file but got a blank first line.
 
Here is a part of my code; the function is used to write things into a txt file. the function works quite well except there is a blank first line in the txt f...
[4 replies] Last: thx for helping me... (by missty)
Outputting strings to files
 
Hello everybody. I'm a beginner programmer who just joined this forum. I'm trying to write a program for which I need a component that allows the user to inpu...
[2 replies] Last: I agree. Why are you using C output? And is getline part of the std na... (by chrisname)
Binary Search Tree
 
hi, i am a new member and beginner in c++. i have a question. the code is from an older post from SteakRider. the code is here or you can look http://www.cp...
[2 replies] Last: try returning a node from your search function. (by mspy2plus)
showing the output of an integer as a 24 hour number
 
I was wondering if anyone could help me get the values represented by (int the_hour) to show up with a preceeding 0. So it would look like this: 00, 01, 02, 10,...
[2 replies] Last: the simplest solution is if ( x < 10 ) cout << '0'; cout << ... (by R0mai)
by rmoat
Visual C++ CLR / Win32
 
So, I've been using Visual C# for a while but do not like how .NET Framework is required on computers to run the programs. It also seems bulky and slow. I took ...
[5 replies] Last: Thanks for your replies! Yeah, I definitely don't want to use the CLR ... (by rmoat)
by NGen
Deleting Char Array Causes Windows Break-Point
 
Whenever I try to delete a char array (pointer) in a class's destructor, I end up getting an error message (apparently from Windows) saying this: Windows ha...
[5 replies] Last: memory stomp. the array has to be strlen(value) + 1 bytes wide to a... (by jsmith)
Problem with example of a book
 
Hello, thanks in advance for any help. I am reading Bjarne Stroustrup`s Programming: Principles and Practice Using C++. System OS:Windows 7 RC 7100; Compile...
[10 replies] Last: Bjarne's header does not seem very helpful... try this instead #... (by mspy2plus)
Beginner's Manual Advice
 
Can anyone give me advice on the best beginner's manual / idiot's guide to use in order to get a grasp of C++ from absolute zero with the minimum of pain? Idea...
[3 replies] Last: If you really need a book for a beginner: C++ all-in-one desk referen... (by mspy2plus)
Behind dynamic memory allocation
 
Hello everybody, I'm making 15 minutes lesson on dynamic memory management in c/c++. I wonder if someone knows how really malloc() function or new works. I...
[1 reply] : The heap works by obtaining large chunks of memory and handing out chu... (by kbw)
Jukebox
 
Hey im preety much a newbie in the c++ world and i am required to build a jukebox for a uni assignment it needs to play 8 audio tracks, user should be able sele...
[1 reply] : I think you should take a look at SDL and SDL_mixer. (by helios)
Pointers?
 
We all know a pointer's main function is to hold the address of another variable. But a thought that just came into my mind: does a pointer variable have its ow...
[6 replies] Last: ... except those optimised into registers. (by kbw)
Q: Need to skeep emply lines in file [fgets]
 
Hello Everyone , I am trying to pase csv file and populate my stucture. But some how I have blank line in between and would like to skip those lines. C...
[4 replies] Last: fgets() will put the newline of an empty line in the buffer, so testin... (by PanGalactic)
by kostka
return a pointer to a multidimensional array
 
Hi, in working with multidimensional arrays, how do I return a pointer to such an array without using some type of type cast before/after the call? I hope th...
[11 replies] Last: What overhead are you talking about with std::vector? My main bee... (by kostka)
by Pera3
template basics
 
Hi everybody, I'm a beginner in c++ and I have a problem with templates. When I compile this code in visual C++ 2008 i get an error: error C2668: 'swap' : amb...
[5 replies] Last: I see. I'll have to try it out in C#. Maybe it is similar. Thanks f... (by webJose)
hate to love
 
Having an issue with a project. I have to convert four letter words to love. THe issue is my program will let you enter in a sentence, however it has no output....
[4 replies] Last: Of course there is no output. The user types in his/her/it? sentence a... (by Warrior2089)
strange behavior in binary i/o
 
hey, i'm getting some confusing results while performing what should be simple binary i/o operations. i've done some binary reading before of different form...
[4 replies] Last: wow, thanks everyone! as usual, what was happening is simple and pred... (by mpadams)
getting struct member from vector list
 
struct gunType { string name; //the name of the gun float cost; //the cost of the gun int damage; //how much damage per ...
[5 replies] Last: &boost::lambda::_1->*&gunType::name what does this process do "lit... (by drtt1gg3r)
by fercs
undefined reference
 
Hi everyone, im pretty new to C++ programming and i have a few errors that i just cant solve on my own. Here is my code. Everything in the File main.cpp (...
[5 replies] Last: The problem is that you have to instantiate the array somewhere (in a ... (by jsmith)
c++ libraries
 
hw can i view the contents of the header files and micros
[1 reply] : Open you compiler "include" directory and double click on .h file. On ... (by Null)
August 2009 Pages: 1... 56789... 17
  Archived months: [jul2009] [sep2009]

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