Beginners - July 2013 (Page 22)

ISO C++ forbids initialization of member
 
I can't find the error and the system always return the errors "ISO C++ forbids initialization of member `username' ", "making `username' static ", "invalid in-...
[5 replies] Last: Thanks guys (by joaoareias)
a generic variable for different structures
 
hello everyone and thank you for your help in advance! I consider myself a beginner in C++ as I have manly programmed in C. I am developing a library for a proc...
[2 replies] Last: hi pata and thank you for your reply! The idea is to have USARTx ident... (by dbilancione)
by Ganado
Help displaying a random string from list
 
I've searched the web for some ways to make random strings be created, and the only thing I could find was to produce a random letter from a string "ABC..etc". ...
[4 replies] Last: Wow, that algorithm is very convenient, thanks a lot for showing me it... (by Ganado)
Error: Expected declaration before '}' Token
 
Hello, I am working on a basic text based RPG. Today I was working on the Level generation (PlayerArea) text, but when I compiled to test, I got two errors. ...
[2 replies] Last: Wow, thanks. I can't believe I didnt catch that. Also, using swithcase... (by thewitchking15)
C2460 error, VS2012
 
Hi guys, I've came across a problem now; There is a class I've made in order to perform my H.W. This is a header file and it won't compile, I get this error: ...
[4 replies] Last: Never use such notation as Person* next, back; in C++. It only con... (by vlad from moscow)
by anzhit
My Tic Tac Toe program
 
I made this Tic Tac Toe program it works perfectly. I just wanted some suggestions on how i could improve and how i could shrink the code and or make it faster ...
[5 replies] Last: checkLegal seems to work fine Im just making it for personal interest... (by anzhit)
SDL.dll on dev-c++ returns stray whatever errors
 
It returns so many stray errors that the compilation won't work. I am using the dll for init and quit. Is there either a way I can skip using the dll or get it...
[no replies]
guess the sign(game)
 
you have a set of different colored signs, each with a number on it. the set is randomized and then you show the player one sign, he has to guess whether the ne...
[no replies]
Static memory address of pointer
 
Hello I made a dynamic memory allocation using an integer pointer as follows: #include <iostream> using namespace std; int main() { int* intp...
[8 replies] Last: I can not suggest any good book on C++ for beginners because I do not ... (by vlad from moscow)
by Nata
How they calculated the output of the code
 
This is question of my midterm exam and it says that I should predict the output. Xcode says that it is 9 4 3, but I do not get how they calculated this and cou...
[9 replies] Last: THANK YOU!!!!! <3 <3 <3 (by Nata)
Any alternatives to system("PAUSE")?
 
I just read an article that clearly explained why system("") commands are bad to use. The command system("PAUSE") is a very useful command in my eyes, so are th...
[10 replies] Last: I am using windows 7 partitioned with ubuntu, but I have a separate de... (by zreuille98)
Coding a Time Conversion Calculator
 
Could somebody give an example of how to optimally code a time conversion calculator for seconds to x Years, x Days, x Hours, x Minutes, x Seconds format? For e...
[5 replies] Last: *bump* (by jheard901)
Output to CSV problem
 
I'm trying to write a code which populates a structure and outputs its values to CSV. Currently it only outputs the first row defining the values, but nothing e...
[3 replies] Last: Or change the logic, move the code which opens the output file and ou... (by Chervil)
by nmn
A Pointer Bug ?
 
when test7() is call in main, it sucessfully create the first object (IntArray f(1, 4);) BUT will only get to "currentArray = new int[(indexz - 1)];" in arrayIn...
[11 replies] Last: @nmn -- for any given (a) and (b), your loop to get the range (a) to ... (by jrfrago)
by axdel
Array function grade book problem
 
So this compiles but when it runs it exits before executing the getAvg function and doesn't execute anything after the getAvg function call. I have been looking...
[4 replies] Last: The problem requires a five string array for names, four double array ... (by axdel)
How to "Stack" a number?
 
So in my code I am trying to build a basic choice based game where you either gain or lose gold based on your choices once you lose all your gold you lose the g...
[11 replies] Last: this is exactly what I was looking for thanks (by nichathan)
need help with string creation
 
i am trying to make a palindrome finder using strings and my program just stops running at the test case input number, so i am guessing that my declaration is ...
[5 replies] Last: oh .. wait not i geddit, push back adds a string..so looping creates x... (by theunkown)
Question: How do I determine the ratio of two cin-ed integers?
 
I'm writing a simple mathematical map for the user's two inputted numbers. Any idea how to create code to determine the ratio of two numbers? #include ...
[5 replies] Last: @mik2718, Thanks! The details really help me understand. @pata, Tha... (by InclinedToFall)
Is it necessary to #include .cpp file?
 
...
[15 replies] Last: Well, okay, guess I am wrong. But why? I thought include just includ... (by Lowest0ne)
Need a little help with my calculator program
 
I've made a simple Calculator program.The program is working fine except one thing. After running the program it asks me to enter choice.Now suppose I enter 1...
[2 replies] Last: Thanks for helping me.My program is working now. (by Gamemaster007)
July 2013 Pages: 1... 2021222324... 53
  Archived months: [jun2013] [aug2013]

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