- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- Programming, Mathematics, Physics, having fun with my friends.
- PC Specs
- Debian Linux, 2.8 GHz Duo
6 Posted Topics
Re: Well, I don't know if it's too complicated for this project, but as for the graphics part, you could use OpenGL. It's portable and efficient. (Here's a link to a good book about OpenGL: [url]http://www.amazon.com/OpenGL-Programming-Guide-Official-Learning/dp/0321552628/ref=sr_1_2?ie=UTF8&qid=1309967373&sr=8-2[/url]). As for the movement part.. that depends on your rendering library, but with OpenGL, you … | |
Re: Or, maybe, in a more C++-ish way: [CODE] #include <iostream> int main() { ... // your code here std::cin.get(); } [/CODE] | |
![]() | Re: Uh, perhaps you'd like to share the code? [QUOTE]but if i copy the program in a note pad,how do i save it as a .cpp file so that i can open it using c? n m really sry 4 u master roshi,wish u get a better gal next time[/QUOTE] The … |
Re: 'ch' is not defined in the code. But, it's a character. It'd look like this: [CODE] #include<stdio.h> int main() { int nr_products, nr_prices, price, over10=0; char product[40]={'\0'}; char ch = ''; printf("Enter the number of products"); scanf("%d",&nr_products); getchar(); printf("Product:");//enter the product fgets(product, sizeof(product), stdin); printf("Price:");//enter price scanf("%d",&price); getchar(); for(i=0; i<nr_products;i++) … | |
Re: Well, it'd look more like this: #include <stdio.h> int minimum (int values[]); int mimimum (int values[]) { int minValue, i; minValue = values[0]; for (i = 1; i < 9; ++i) /* Index starts at zero, zo 10 - 1 = 9 indexes. */ if (values[i] < minValue) minValue = … | |
Re: The kernel was - originally - made in C++. Lower-level systems, such as system drivers, use C. Also, many core files (like the user interface!) were also made using C++, due to it being object-oriented. Our own Billy just worked on BASIC, and reviewed some code, but after BASIC his … |