AuthorMessage
jackel
n00b
Posts: 41

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
Code:

  /*
  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
Code:

  /*
  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
R€€SP€CT
jackel
jackel
n00b
Posts: 41

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

#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
vickmaker
Ametuar
Posts: 127

keep your head in there brov, you will be using sockets in no time 
bia
//v
jackel
n00b
Posts: 41

not sckts yet br3 but me is getting there    uber cool buzz  when it works :o  HAHAHA
lovin it 
   KEEP IT COMING BABY STUFF