API gaming is direXt?!
The book i think does use it, dont know where exactly but....
So a prgoramm of DireXt is like a prgoramm in API?
Type: Posts; User: George M.
API gaming is direXt?!
The book i think does use it, dont know where exactly but....
So a prgoramm of DireXt is like a prgoramm in API?
API gaming? Whats this? are you sure?
Its not using for the basic programming, but from what i understood, for the code to contact wi windows and so the input-output devices (speakers, aceess to audio-graphic files etc)
My book by using C, API and DireXt teaches you how to crete simple 2D games and inb the end a 3D pong game.
So I have to learn API from a specific source?
Its just that they appeared like twins to me.
Thank you.
My book Beggining Game Programming http://ecx.images-amazon.com/images/I/41PF5gyWn%2BL._SL500_AA240_.jpg is based in C but uses also Windows API.
As I'm about to finish the theory of C I want to...
Is it a separate language?
There are books learning it separatley?
My book about game programming (uses C as base) has a small introduction on Windows programming.
I want to learn that language separately. Is it called powershell?
example code
#include...
Is there any difference in unions from structures - except than memory allocation ?
This forces scanf to read only te first 9 characters?
Handy!
So their actually objects like the classes from C++ just more specified and restricted
So whats actually the point of structures?
They are used for creating databases?
Its true.
Initially i thought the same think but i saw that i could write more characters than 9.
However with the latest test I see that you can write more characters, but it will store only...
I found that i should declare the structure this way
struct user
{
char name[10];
char surname[10];
int age;
};
well even if i put c its just the same
Hi there! Wright now I am on Structures
(More Info on My Learning Diary on My Blog)
Why does the application crashes at this point? I've written the scanf form exactly like it is in the example...
oh......... so it appears where th "%" ares (how are they called?)
So thats no a symbol to decalarate end of text but to declarate placing of a variable there wright?
Yes it shows only the first number
I want the i to appear between those 2 texts not both i and matrix toghether
But you confused me...
Would be easier for me if you wrote the correct...
My bloodshed i have a feeling that doesnt shows warnings, just errors.
Of course! I have to put just the matrix name!
P.S.
This complex form of printf is illegal?
printf ("Cell %d",i,"is%d",matrix1[i]);
Eh guys this crashes! The programm runs but when I insert a value it says programm has to shut down!
int a=0;
int i;
float b=3;
int matrix1 [10]={0};
for (i=0;...
yeah I understand, since the last cell of matrix[10] is 9 not 10
Thanks
P.S.
These questions might be silly for troubling an entire forum but unlike C++, this time in C I dont want to leave...
Look at this code
for (a=0; a<10; a++)
{
printf ("%d",matrix1[a]);
}
for (a=0; a<10; a++);
oh.. now i got it. So if its the main it terminates the programm. thank you!
I have the following code
printf("Start. Give a\n");
scanf("%d",&a);
printf("\na is %d\n",a);
if (a==2)
{
return a;