Beginners - March 2011 (Page 30)

Inserting data into vector of structs
 
I am trying to insert member data into a vector of structs, but I receive the errors: main.cpp: I...
[6 replies] Last: Yep, that's cause that's the vectors constructor arguments. And even t... (by hanst99)
declaring vectors issue (1,2)
 
I'm trying to put a series of classes into a vector but weirdly visual studio keeps saying my object...
[22 replies] Last: code other than declarations or definitions. (by hamsterman)
Address of Operator Suffix
 
Hi I am new to C++ and am having a problem. I am currently working on references and pointers and...
[2 replies] Last: SomeType& is a reference to SomeType &Variable is the address of V... (by Bazzy)
by chipp
play algorithm
 
let's play algorithm here, anyone wanna contribute?
[11 replies] Last: You can read my new article on encryption: http://cplusplus.com/forum... (by ultifinitus)
by lalala
a while loop for counting in the average of the total numbers.
 
I have to keep track of the numbers whose total is less than 100. And I don't want to count the last...
[2 replies] Last: thanks! (by lalala)
random typedef question
 
I was wondering if useing typedefs c++ would let you do this: typedef int newint; typedef newint ne...
[6 replies] Last: Macros are evil. Macros easily lead to cryptic errors on compile time... (by hanst99)
Problem with <iomanip> alignment.
 
I'm having trouble aligning some text with setw and the left alignment. I'm not sure if it has somet...
[17 replies] Last: You call setw after the function. If you want to make sure that 20 is ... (by hanst99)
friend function
 
hello every body i have really hard time nderstand my home work :$ if any one can tell me ...
[1 reply] : Ignoring that text, a friend function is a function that is declared a... (by hanst99)
by vlad61
Pancakes!
 
Hello. On the final star of Pancake Glutton http://www.cplusplus.com/forum/articles/12974/ I c...
[10 replies] Last: Here is my solution, it works like a charm, except if the user enters ... (by vstuen)
Need some help here please!
 
Can someone explain to me, what is wrong about this code: char astring ; int i = 0; /* Using s...
[2 replies] Last: line 5: error: expected initializer before 'char' first error is line ... (by TotalMax)
by mowie1
my solver error
 
I am getting an error sudoku.cpp:9: error: expected initializer before âvoidâ #include <iostr...
[19 replies] Last: Thanks I am new at this.....sorry (by mowie1)
linking error
 
Hello all, I am facing the below error in my program. Program compiles for the first time correct...
[4 replies] Last: ok thanks. I just started with windows programming and this was my fir... (by abhiverma812)
by Bog
randomize symbols in slot machine game
 
In this assignment you will create a slot machine emulator. This slot machine will cost 1 credit to...
[6 replies] Last: Try that code. It's simple but works and shows stuff pretty clear. ran... (by Breadman)
object reference
 
I am new to this forum concerning this great language and i have some questions concerning reference...
[5 replies] Last: None. But when you don't return a reference to y you do NOT return y i... (by hanst99)
FrameDelay
 
In my book is says: int m_iFrameDelay; is to indicate the amount of time betwe...
[3 replies] Last: I have done c++ console programming and i find that quite simple. ... (by hanst99)
by rrandr
Help with structures
 
heres our project in programming ..we make a bank system using structures.. so heres the problem.. ...
[3 replies] Last: if(accountrec .account_ID == Iaccount) { fflush(stdin); printf... (by hanst99)
What does this mean?
 
I've been learning how to use C++ for a week now, but I can't seem to figure out, why something is t...
[4 replies] Last: Well, many people believe that the switch statement resolves to someth... (by hanst99)
Is this a data type?
 
In my class called GameEgnine it has: GameEngine* m_pGameEngine; Is "GameEngine*" a data type...
[4 replies] Last: They are variables, of course. The same rules that apply to variables ... (by hanst99)
File I/O problem (1,2)
 
Hi, Im new to file IO in C++.I couldnt find the problem with the following code. There is actually ...
[26 replies] Last: LOL, if you want to try C::B, then try this, download only the IDE and... (by matsom)
Sum of Square numbers
 
Hello Guys, I want to create a program that will show the sum of the squares of the numbers: For exa...
[11 replies] Last: Thank you very much hanst99, The Program runs perfectly, :D (by Uzumaki)
March 2011 Pages: 1... 2829303132... 52
  Archived months: [feb2011] [apr2011]

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