Originally posted by markmcgookin
Things I hate about a language
Collapse
X
-
Originally posted by Ganon11I believe you can still use printf and scanf in C++ by including the <cstdio> header file...or was it <cstdlib>? Either way, out of curiosity I'd like to look at the syntax of these sometime.Code:#include <cstdio> int main() { printf("works"); return 0; }
Comment
-
Java: - The absence of properties. get set get set get set....
- No operator overloading
- User input:
BufferedReader key = new BufferedReader( new InputStreamRead er(System.in));Comment
-
Originally posted by blackjack2150Java: - The absence of properties. get set get set get set....
- No operator overloading
- User input:
BufferedReader key = new BufferedReader( new InputStreamRead er(System.in));Comment
-
Originally posted by Ganon11I believe you can still use printf and scanf in C++ by including the <cstdio> header file...or was it <cstdlib>? Either way, out of curiosity I'd like to look at the syntax of these sometime.
printf is easy it is just a format string with place holders ("%d" for int, "%s" for string) in it to output variable values, the variables follow the string in the parameter list. The place holders can be qualified for field size, precision, variable size and presentation and need to be looked up.Comment
-
Originally posted by blackjack2150Java: - The absence of properties. get set get set get set....
- No operator overloading
- User input:
BufferedReader key = new BufferedReader( new InputStreamRead er(System.in));Comment
-
-
Originally posted by blackjack2150Java: - The absence of properties. get set get set get set....
- No operator overloading
- User input:
BufferedReader key = new BufferedReader( new InputStreamRead er(System.in));
And yeah, buffered readers and action listeners etc are a pain, vive la VB Event driven programming!Comment
-
Originally posted by markmcgookinWhatever....
Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox("Hello World") End Sub
Comment
-
VB: Error messages suck. Example: "Error in Row". Thanks for the debug help there! Oh, and If ... THEN. Coming back to VB after working in Java and C for a few years is driving me nuts!
C/++/#, Java, etc: semi-colon after every line. The endless nights of debugging code. Reading it and re-reading it to find the 1 compile error only to have a prof discover there was (a) a semi colon missing (b) a semi-colon in the wrong spot or (c) I hit shift and there was a colon somewhere. Gosh!
- LBComment
-
Originally posted by LacrosseBossC/++/#, Java, etc: semi-colon after every line. The endless nights of debugging code. Reading it and re-reading it to find the 1 compile error only to have a prof discover there was (a) a semi colon missing (b) a semi-colon in the wrong spot or (c) I hit shift and there was a colon somewhere. Gosh!Comment
Comment