Technology (Read Only) > Programming
C, C++ and C# tutorials
Сєşάя:
Lol...I didn't finish my book. Now I'm learning pointers. Damn bro, some parts of C is fucking hard like character manipulation.
Travelsonic:
--- Quote from: gamefreak171 on October 25, 2011, 09:57:57 PM ---yo dawg we herd u liek arrays so we put arrays in your array so you can array while you array
--- End quote ---
Once I made a linked list class for my Data Structures class [got an A in the end even though I only got 1 out of 5 projects in for the class :D :D did perfectly on all the quizzes and exams though.] To test it, I made a linked list, where each linked list node would initiate construction of a linked list, so I'd have a 36,000 node linked list each node creating another 36,000 node linked list, with each node in these lists doing it... until memory runs out. :P
Сєşάя:
I'll make a litle "OS" when I know all about C. I won't make a real. Just for kind.
I also know how to use pointers (a bit hard).
--- Code: ---#include <stdio.h>
main()
{
int x = 5, y = x*x, z = x*y;
int *ptx, *pty, *ptz;
/* Colocando os endereços para cada ponteiro */
ptx = &x;
pty = &y;
ptz = &z;
printf("X = %d\nPos X = %ld\n\n", *ptx, ptx);
printf("Y = %d\nPos Y = %ld\n\n", *pty, pty);
printf("Z = %d\nPos Z = %ld\n\n", *ptz, ptz);
getch();
}
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version