General C++ Programming - March 2012 (Page 43)

by moot1
saving in c++
 
im trying to make a diary program.is there a way i can let the user save the diary entries they enter?
[8 replies] Last: Here's a hint. The 'o' and 'f' in "ofstream" stand for "output file." (by Caleb9849)
by isnork
Two questions.
 
Hi, In http://code.google.com/p/smart-rt/source/browse/src/smart/SmartDefs.h?spec=svn214bfa36fcaf6c09bdfef4245a50d431575f171a&r=214bfa36fcaf6c09bdfef4245a50d...
[3 replies] Last: RTvoid is not standard. That's why it has to be specially defined. Lik... (by Moschops)
Cypher function
 
Hi All! Newbie here in C++ programing and I need some help. I got a prototype: char * crypt(const char *password, const char *salt) I need to write the code b...
[3 replies] Last: http://www.cplusplus.com/forum/articles/36896/ Also, Dev-C++ is not a... (by Moschops)
Question regarding pointers.
 
What is the difference between vw_send((uint8_t *)&msg, strlen(&msg)); vw_wait_tx(); AND vw_send((uint8_t *)msg, strlen(msg)); vw_wait_tx();
[2 replies] Last: Fundamentally, the difference between "variable_name" and "&variable_n... (by Caleb9849)
LinkedLists
 
I am a beginner at C++. I need to develop a class called WORD. I am asked to define a class called character. Is the correct syntax here: class WORD { pub...
[3 replies] Last: Re what hamsterman said: It is up to you if you want to make "characte... (by Caleb9849)
Defines vs. const object
 
I'm procrastinating a new session of revision and debugging, but there is a nagging question regarding the transition from ANSI C to C++ I have. I've seen prog...
[5 replies] Last: Ty Mos, that is what I was looking for. (by roberts)
Class object not defined although instantiated by NEW
 
I am having a problem of un-instantiated object in my code, although i have instantiated it in my switch control structure. Also, the commented line at end o...
[6 replies] Last: thanks (by Muhammad Wajahat)
vectors vs lists
 
helllo! my question is about the lists if i can change a random element of a list like i can do it with vectors for example if i have vector<int> v...
[8 replies] Last: @hamsterman, Section 2.4 of the TR on C++ Performance (which discusses... (by JLBorges)
checking a vector
 
hey guys, i need to check my vector for a run of 3 or 4 cards (ace, 2 3 or 4, 5,6 etc), here is what i have so far, however it makes my program crash: void ...
[5 replies] Last: it compiles and runs now thank you, however it doesnt recognise runs s... (by Xendraw)
Olympiad Problem
 
I think I failed this one. --- The olympiad took place a few hours ago. --- Colours Miruna loves painting. In the last vacantion she went to her grandmother...
[14 replies] Last: The promised excel document: http://depositfiles.com/files/85sjy53qe (by Kyon)
How to make these if statements look nicer?
 
Hello I've been programming for about a year and abit and I'm starting to look at my code from a visual standpoint and was wondering how I could make this code ...
[4 replies] Last: Your names are confusing, and if(player==true) is redundant. Just wr... (by hanst99)
Newbie question
 
not exactly sure how I would raise 10 to the power of the user's number without using the pow function. am i missing something? write a recursive function th...
[14 replies] Last: Is the base always 10 or do you need to make it flexible enough for an... (by roberts)
switch not working
 
my switch should make jacks, queens and kings values equal 10, rather than 11, 12 and 13, how it seems to be ignored, any ideas? void check151 () ...
[2 replies] Last: of course it was that simple, had an off week, thank you very much (by Xendraw)
Error OUTPUT DISPLAY using (gotoxy)
 
I'm having a problem with the password and the output (garbage values), can you please help me out... 1) The program should terminate if the user entered the...
[1 reply] : Seems like your loop for getting password from user never exits when t... (by SIK)
by henk13
Qt Poker Game Struggle
 
Hi , I'm new here, sorry if I'm posting in the wrong subforum. We are making a programming project at school which should be made with c++ and GUI. I chose a ...
[2 replies] Last: Thanks , I will give it a shot (by henk13)
How do you do that with a text file, Need to distinguish between integers and characters
 
Hi, I am trying the following code but putback() apparently is returning a character and it destroy my number . I thought about saving the current position in...
[4 replies] Last: If the peek returned a white space, you need to throw it away. int... (by JLBorges)
ant colony optimisation
 
how can ant colony optimisation be used in pipe distribution network??
[1 reply] : Try typing this on the address bar of your browser http://www.google.c... (by JLBorges)
Programs for MS-DOS 6.22
 
I'm just starting C++, currently in college learning it. I use MS Visual Studio 2010, but I want to compile a program to run on MS-DOS 6.22, and the only thing...
[5 replies] Last: If you want a DOS compiler, you could use Borland. That was one of th... (by kbw)
Vector of a Template Class?
 
Hello I am trying to create a vector of a class I made. This class is a template. I keep getting: error C2143: syntax error : missing ';' before '<' I was hop...
[2 replies] Last: Wow.... I feel so...Thankful. You are a life saver... gosh! (by Binary Thoughts)
by adn258
I Don't Get Part Of This Fstream Code?
 
So I was looking for tutorials on writing files i.e. filestreaming files and this works, and most of this I understand. Again though when it comes to pointers ...
[3 replies] Last: You normally would not: int i; (int *)i; but I've had to do such th... (by roberts)
March 2012 Pages: 1... 4142434445... 49
  Archived months: [feb2012] [apr2012]

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