|
Programm3r wrote:
I was using revvy's code ... for a simple example ... thats all
Ok, and??
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Can you answer to my question?
|
|
|
|
|
reyyy wrote: Can you answer to my question?
Your question has been answered multiple times.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
reyyy wrote: Can you answer to my question?
check your mails and read the thread. you already got all the answers to your questions
|
|
|
|
|
didn't see, thx and srry
Is there possible, that for if (get > 11) it can generate 2 or more different cout's, and if yes, i write them same like:
std::cout << "blah blah";
std::cout << "bleh bleh";
and how do i know whych time it will take witch output?
thx
|
|
|
|
|
please write your wanted algorithm in plain english. we will see then if your thoughts are clear first.
ps: be careful, the soapbox is close for you
|
|
|
|
|
is there possible this code:
if (get > 50) {
std::cout << "bleh";
std::cout << "blah"
and whitch of couts the program will take each time?
|
|
|
|
|
i said in english, not in C++
tell IN ENGLISH the algorithm you want to have
|
|
|
|
|
I don't really understand what you mean, but i want to know is there possible to assign more then 1 cout to if function? And if it's possible can you show me how and how do i know witch cout program will take first, and it's there possible to say to program witch cout it needs to take first.
thx
|
|
|
|
|
ok, enough. go buy a book. i give up.
if you don't even know that a procedural language execute from the beginning to the end in the order it was written (at the exception of loops and jumps), i can't do anything for you.
|
|
|
|
|
That's the thing i have read alraedy book, but i don't understand how to really use it.
|
|
|
|
|
Why do you strain yourselves? Try something else. Not programming.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
I understand princips of programming, but i don't understand usage of syntax well, i have read a book, but still it's not enaught to uderstand and get into programming for 100% i need to learn much and most of veterans are stil learning, so suite your self.
|
|
|
|
|
toxcct wrote: check your mails and read the thread. you already got all the answers to your questions
Send him to the SoapBox and I will take care of him
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
i give up. he is yours !!
|
|
|
|
|
and what??
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Programm3r wrote: and what??
That's exacly what I wanted to know. You replied to me with, "I was using revvy's code ... for a simple example ... thats all" which made no sense whatsoever.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Hello,
I just wanted to know what happens if a vector is stored with objects of different sizes.
Will some ambiguous memory problems arise ?
Should I take care while assigning values to vectors that the objects should have constant menory sizes?
Prithaa
|
|
|
|
|
prithaa wrote: Will some ambiguous memory problems arise ?
not that i am aware of...
i used to use vectors of my own classes, containing different variable sizes members, and i didn't notice any memory problems anyway
a good example to test that is by creating a std::vector<std::string> . strings can have different sizes, but the vector still works, doesn't it ?
|
|
|
|
|
Hello,
Thanks.
I was particularly concerned about CStrings.
Now that you say it works then I will go ahead.
Prithaa
|
|
|
|
|
prithaa wrote: Now that you say it works then I will go ahead.
i didn't
I just said that i wasn't aware of it :->
but the best you can do is testing it to be sure... it's the only way to really know
|
|
|
|
|
toxcct wrote: i used to use vectors of my own classes, containing different variable sizes members...
But the classes themselves were the same size. I think what he was referring to was something like:
vector v;
int n;
float f;
char c;
v.push_back(n);
v.push_back(f);
v.push_back(c); I would never think of doing something like this so I don't know of the ramifications.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: I think what he was referring to was something like...
prithaa wrote: I was particularly concerned about CStrings.
it doesn't look like
|
|
|
|
|
toxcct wrote: a good example to test that is by creating a std::vector <std::string>.
Really good example
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|