- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 3
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
7 Posted Topics
Re: [QUOTE=cscgal]Can someone please explain to me the difference between ++i and i++ when written as part of an expression (i.e. within loops and if statements) ? Thanks :)[/QUOTE] i++: do the calculation or do the comparison before the i's value is increment. ++i: increment the i's current value by 1 … | |
Re: Hi, The problem is that we need to clear the input buffer before using gets() because gets() read anything in the input buffer until it encounters a new line or return character. Although it works correctly, it is unsafe to use gets() if the input is bigger than the array … | |
Hi all, Could anyone help me about returning the array from a function? I believe that it is a syntax error (compile time error) to return an array from a function, but one book mentions briefly that using pointer will solve the issue. However, my current knowledge does not allow … | |
Re: Hi Dave, What is the %n used for in sscanf(ptr, "%3d%n", &value, &i)? Thanks. | |
Re: It cannot compare between C++ and Calculus because they are different subject. Learning C++ takes years to understand and to master the subject. One might think that learning C++ is boring. In my opinion, learning software engineering concepts and programming language, such as C++ is my passion. Definitely, mathematics helps … | |
Re: Math part of computer science hard? It depends on your potential and the applications you are working on. If you write programs involved with graphics, then it might require some calculus and linear algebra (vector). In general, you have to be good with logics (Dicrete mathematics). If you like logic, … | |
Hi all, What should I write for function signature in order to return this 6X6 array without compiler error? I tried to use `int* getGraph()`, but it did not work. Thanks for your help. int[6][6] getGraph() { int graph[6][6] = { {0, 5, 10, -1, -1, -1}, {-1, 0, -1, … |
The End.