how do u write this if then statment but in c++ if g=3282 then g=k;
to bad there wasnt a then like there is an else in c++
grunge man
0
Junior Poster
Recommended Answers
Jump to Postc and c++ does not use the "then" statement as some other languages do. The next statement or block following the if statement is executed when the if statement is true. Notice the use of the double '=' symbol which is the logical equal. A single '=' means assignment. Lots …
Jump to Post>how do u write this if then statment but in c++ if g=3282 then g=k;
Don't you have a book? Learning a language is extremely difficult without a proper reference available.>to bad there wasnt a then like there is an else in c++
Why? "then" is typically used …
Jump to Post>whoa narue thats cool that there is an endif
Well, not in C++. But you can fake it with macros if you're a sadist:#define then { #define endif } if ( a == b ) then <statements> endif
But, don't do that. You won't be able …
Jump to Post>You do realise that in C++, the main function, when an integer, expects a return value.
As a matter of fact, I'm quite familiar with that rule and all of the details that go along with it. Are you?>So you shouldn't snip off the "return 0;" part.
In …
Jump to PostErr.. buddy , it would be best you not resurrected dead threads. It would be really good if you just looked at the date of the last reply of a thread before posting in it. And by the way, the thread has been marked solved so please dont post in …
All 43 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Narue
5,707
Bad Cop
Team Colleague
grunge man
0
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
grunge man
0
Junior Poster
grunge man
0
Junior Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
grunge man
0
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
grunge man
0
Junior Poster
grunge man
0
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
grunge man
0
Junior Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
grunge man
0
Junior Poster
grunge man
0
Junior Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
grunge man
0
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
grunge man
0
Junior Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Narue
5,707
Bad Cop
Team Colleague
grunge man
0
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
grunge man
0
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
grunge man
0
Junior Poster
grunge man
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.