Forgotten your password?

Forum Index > C/C++ > EXAMPLES
Author Message
Ive just started to learn c & im looking for any kind of examples from sum of you more experienced programmers , just any examples of vars , integars floating points loops ,conditions, statements ANYTHING at all .
Throw me sum bone to chew on NEED DA BRAIN FOOD

hera nice one BB showed me compared to what i was tought which il also show you

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  /*
  Name: jackel
  Copyright: 
  Tutor: A.Wizard
  Date: 25/09/06 12:45
  Description: greatCprogrammer.c
  */


#  include <stdio.h> // for printf()
#ifdef _WIN32    // thx bb
#  include <conio.h> // windows
#else
#  include <curses.h> // linux + other unixes
#endif   // this was good example from bluebear certainly helped me REESPECT COMING @ YA M8 

int main(int argc, char* argv[])   // just an example of the printf that we was getting tought that day
 {
             
    printf(" I will be a great C programmer\n"); 
     printf("\n by the end of this course.\n");
      printf("\n FOR TEAMELITE TR00PS\n\n TEAMELiTE TOUR 2006");
  // Sytem ("cls"); JUST IGNORE CLEARSCRN PLZ
    

    
    
    getch();
    return 0;
}


THEN THIS IS WHAT ALL I WAS TOUGHT AT COLLEGE LOOK

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  /*
  Name: jackel
  Copyright: 
  Tutor: A.Wizard
  Date: 25/09/06 12:45
  Description: greatCprogrammer.c
  */


#  include <stdio.h> // for printf()

int main(int argc, char* argv[])   // just an example of the printf that we was getting tought that day
{
             
    printf(" I will be a great C programmer\n"); 
     printf("\n by the end of this course.\n");
      printf("\n FOR TEAMELITE TR00PS\n\n TEAMELiTE TOUR 2006");
               // Sytem ("cls"); JUST IGNORE CLEARSCRN PLZ
    
    getch();
    return 0;
}


Now its quite obvious now why im loking for examples from more experienced programmers anything at all guys im sure theres a few C trix that you cud show not your code just basic examples that you think might be handy for me or anyone else college will probs never teach us so fire away plz :P

R€€SP€CT

jackel:)
well i got this idea from just reading & reading its cool to run TRY IT ;) colour creator :P

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include <windows.h>   
 
    int main()
{
    HANDLE  hConsole;
  int i;  
    hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
 
    for(i = 1; i < 1100; i++) // the higher the number the more colour i see
{
    SetConsoleTextAttribute(hConsole, i);
    
    printf("%3d  %s\n", i, "']['€AM€LiT€-ON-']['0UR-2006!\n");
    printf("\n CODING IN C TEAMELITEs EAST COAST POSSE.......");
}
 
  getch();  
  return 0;
}



jackel :D
keep your head in there brov, you will be using sockets in no time :D
bia
//v
not sckts yet br3 but me is getting there :P uber cool buzz :) when it works :o HAHAHA



lovin it

KEEP IT COMING BABY STUFF


:pmsl:
Forum Index > C/C++ > EXAMPLES