Beginners - June 2011 (Page 8)

by tonnot
Wrong sizeof of structures ????
 
struct AA { float a; float b; unsigned char metadata; }; The size of this are 4...
[1 reply] : Memory that is aligned on a 4-byte boundary may be faster to access, s... (by Disch)
by hny24
error question !!
 
void main() { one=10; two=20; callme(one,two); callme(two); } void callme(int arg1, arg2) {...
[2 replies] Last: The problem here is that you just do not understand C++. You've not m... (by closed account z05DSL3A)
by hny24
error question 2 !!
 
void main() { int numbers ; numbers={25,50,10,30,40}; for{ loc=max-1; loc>=10; loc--) cout>>num...
[3 replies] Last: void main() This is wrong. If your compiler accepts it, throw it aw... (by Moschops)
by hny24
output of following ??
 
void main() { int u=10,v=20; for(int i=0; i<2; i++) { cout<<"1:<<u++<<"&"<<v+5<<endl; cout<...
[2 replies] Last: You know you can compile it, right? As for the problem, I suppose y... (by hamsterman)
Loop Gross Pay (for,while)
 
I am stuck in looping a program - Enter years worked cin >>years; while (years >=.99) {...
[1 reply] : The loop returns each time to the start of the loop; the start of the ... (by Moschops)
Open a file by name
 
Hi, I assigned the name of the file to string vector. I mean when I print the vector, it seems...
[2 replies] Last: thank you it worked ;) (by airerdem)
by smelas
log levels
 
Hi, I would like to have different log levels in my code. For example: something like cout.IN...
[5 replies] Last: You can define main like this: int main(unsigned int ArgCount, char* ... (by LB)
by tonnot
Circular reference ... Unable to write forwarding
 
I have a class.h with only structs definition I have a methods.h with a class WW with some functions...
[2 replies] Last: Moreover you should look at this webpage about circular dependency. ... (by screw)
destructor is not getting called, why??
 
would you please tell me why the destructors for the objects that pJ and pK are pointing were not ca...
[8 replies] Last: for those who were wondering; after adding to line 42/43, inside main(... (by muratagenc)
Very basic question...
 
Hi I'm new to this forum, and I just need to know one thing. Is there any other way to write: i...
[6 replies] Last: Could you possibly use if else (if else...) that might speed it up a b... (by brokenbot)
Function datatype return issue
 
I have problem understanding how to declare functions to return needed data type. I only placed part...
[9 replies] Last: The typename is needed. http://www.parashift.com/c++-faq-lite/templa... (by ne555)
by clarkk
log function problem
 
Hi guys, i am trying to remove 'delta' from this equation: R = (double)(c*log(k/delta)*pow((do...
[2 replies] Last: Thats great, tnx hamsterman! (by clarkk)
by mobat
Character will not move on map. (Correct me)
 
http://pastebin.com/rw847Gbm - main.cpp http://pastebin.com/inv5A7Z1 - player.cpp http://pastebin....
[2 replies] Last: http://cplusplus.com/forum/beginner/44233/ (by king214)
by Ernest
ThisExample
 
not sure what is going on but my Dev C++ Freezes every time I try to compile ThisExample class...
[11 replies] Last: dev offers stability It's broken and it will never be fixed. That i... (by Moschops)
Operator overloading fails
 
Hello, I'm trying to make a very simple class, but it doesn't work, and I don't know why! GraphPoin...
[3 replies] Last: Because you're doing const & GraphPoint instead of const GraphPoint... (by LB)
about structures,
 
hi I am new to C++, can u please explain to me about this syntax. struct name { int &fea_id; ...
[6 replies] Last: It marks the start of the initializer list, and it allows you to invok... (by Disch)
Why is it not prompting me to input the End Location?
 
I need help with this program. This is just the parts of the program leading to my issue that I can...
[2 replies] Last: And it did :D Thanks a lot Null. (by cmaypara)
Checking the status of a member of a class for various objects
 
For instance I create a class having one member of type bool and 100 objects. Now if I want to pe...
[4 replies] Last: [quote=Nisheeth]Now if I want to perform certain actions with... objec... (by Mathhead200)
TextBasedRPG not working correctly
 
I copied this code from a book im reading, and it doesnt work correctly. Basically, the problem i...
[2 replies] Last: at the end of what? the switch statement? one of the cases? EDIT: Th... (by nano511)
undeclared identifier w/ if else
 
Im trying a simple code that has a user enter a specific name and if its not the name display a cert...
[1 reply] : String literals must be enclosed with quotation marks, i.e. "Fake" A... (by Athar)
June 2011 Pages: 1... 678910... 41
  Archived months: [may2011] [jul2011]

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