SaxoMT4


Oil Of Asia iOption

Advertise here
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Page 1 of 2 12 LastLast
    Results 1 to 20 of 22
    1. #1
      learvy's Avatar
      learvy is offline MTV Regular
      is loves her dadhie and baby
       
      I am:
      Friendly
       
      Join Date
      May 2011
      Posts
      754
      MTV$
      353

      C Programming Language

      The C programming language was originally developed by Dennis Ritchie.
      NOte : my compiler is notebook++ you can download it free.
      This is the syntax:

      Code:
      #include <stdio.h>
      
      void main()
      {
          printf("Hello World!");
          getch();
      }
      OUTPUT:

      Hello World!


      Infos:

      #include <stdio.h> - Tells the compiler to include this header file for compilation. What is a header file? They contain prototypes and other compiler/pre-processor directives.

      main() - This is a function, in particular the main.

      { } - These curly braces are equivalent to stating "begin" and "end".

      printf() - the print statement. the one you see in the output. you can put all you want here enclosed by " ".

      getch(); - to stay on the output screen.

    2. # ADS
      Advertise here Circuit advertisement
      Join Date
      My Birthday
      Posts
      Million and counting
       
    3. #2
      simplebeauty is offline MTV Rookie
      This user has no status.
       
      I am:
      ----
       
      Join Date
      Jun 2011
      Posts
      50
      MTV$
      221

      Re: C Programming Language

      This is the first language that I've learned from school HARD CODING. Not OOP and No GUI. but I think those improved programming languages are patterned to C or C++. Before you start the program, you have to type the appropriate 'include' file like include<stdio.h>. For C++, for you to see an output on your screen, i think you have to type in this code:

      cout<<"Hello World";
      getch();

      I think the code getch(); is for the output to be displayed for a while before it ends.

    4. #3
      archy22 is offline MTV Regular
      is Enjoying posting!!!
       
      I am:
      ----
       
      Join Date
      Jun 2011
      Posts
      375
      MTV$
      -8

      Re: C Programming Language

      C programming is the basic programming and forms base for all other programs isnt it. SO if you master C programming then you will be able to do any other programming just like thaat within fraction of a second.

      Pointers are very important topic in C language.
      Here is one sample for the same.

      #include <stdio.h>

      int j, k;
      int *ptr;

      int main(void)
      {
      j = 1;
      k = 2;
      ptr = &k;
      printf("\n");
      printf("j has the value %d and is stored at %p\n", j, (void *)&j);
      printf("k has the value %d and is stored at %p\n", k, (void *)&k);
      printf("ptr has the value %p and is stored at %p\n", ptr, (void *)&ptr);
      printf("The value of the integer pointed to by ptr is %d\n", *ptr);

      return 0;
      }
      Last edited by archy22; 06-03-2011 at 12:59 AM.

    5. #4
      Druppy is offline MTV Rookie
      is Exploring..
       
      I am:
      Friendly
       
      Join Date
      Jun 2011
      Location
      c:\users
      Posts
      70
      MTV$
      291

      Re: C Programming Language

      i wanna share my experience on C. i took a class in C Programming last May, at first, i was dismayed its like asking myself, why do they teach this old programming, this was like the 1990's, and then during class i started to code using the turbo c version 2 compiler blue background with the yellow codes, the compiler is pretty boring and it hurts my eyes for long hours of use. and then when i got home i did some research about the legend C, i found out that C can be coded in a different text editors even notepad and can be compiled in the compiler.,i studied the references, create lots of programs, games and at the end of the day,i never really thought that i like this programming language, just like archy22 said if u have a background on C, its easy enough to learn other programming language, oh and i also found out that Windows OS is made more on C and other popular OS

    6. #5
      moneykeeper's Avatar
      moneykeeper is offline MTV Senior
      This user has no status.
       
      I am:
      Piratey
       
      Join Date
      May 2011
      Posts
      2,098
      MTV$
      -7

      Re: C Programming Language

      Nice tutorial man. I have learned C programming too. I am not an expert yet but i do have good background regarding it. So it'll help me in other languages then, like PHP that i'm heading to learn. yea Druppy C program is used to make games, programs, OS and others.

    7. #6
      Druppy is offline MTV Rookie
      is Exploring..
       
      I am:
      Friendly
       
      Join Date
      Jun 2011
      Location
      c:\users
      Posts
      70
      MTV$
      291

      Re: C Programming Language

      Quote Originally Posted by moneykeeper View Post
      Nice tutorial man. I have learned C programming too. I am not an expert yet but i do have good background regarding it. So it'll help me in other languages then, like PHP that i'm heading to learn. yea Druppy C program is used to make games, programs, OS and others.
      hey man, good day, yeah and i just found out that also MAC OS is made of C, and in Iphone they use Objective-C which somewhat similar, which is my next target soon, by the way you want to learn PHP? maybe i can help you in that department, i have knowledge in PHP,

    8. #7
      ryuken's Avatar
      ryuken is offline MTV Loyal
      is Blogger
       
      I am:
      Tired
       
      Join Date
      May 2011
      Posts
      7,012
      MTV$
      422

      Re: C Programming Language

      I have found some of the best C++ source code on live fusion site. I have seen some puzzles and brain teasers in programming over there. I wish to see more but not sure where to look for information like that site. Thanks for your basic C tutorial learvy. I'm sure this will help many other members on this forum.

    9. #8
      learvy's Avatar
      learvy is offline MTV Regular
      is loves her dadhie and baby
       
      I am:
      Friendly
       
      Join Date
      May 2011
      Posts
      754
      MTV$
      353

      Re: C Programming Language

      thanks ryuken, that was our first programming subject in college and i found it hard before. i always copy the syntax on my notebook to remember it. they are correct we must first know the basics of it before continuing to another language.

      @Druppy yeah we can program C using notepad and we are trained to use it during lab classes. and now there's a lot of existing automatic compilers.

    10. #9
      herald305 is offline MTV Newbie
      This user has no status.
       
      I am:
      ----
       
      Join Date
      Oct 2011
      Posts
      23
      MTV$
      99

      Re: C Programming Language

      this is second syntax

      Code:
      #include <stdio.h>
      #include <conio.h>
      void main()
      {
      int n;
      printf("input n:");
      scanf("%d",&n);
      printf("Valuable n: %d", n);
      }
      result:
      input an interger variable from your keyboard and output on the screen

    11. #10
      ahmadatta2009's Avatar
      ahmadatta2009 is offline MTV Regular
      This user has no status.
       
      I am:
      Cocky
       
      Join Date
      Dec 2011
      Posts
      253
      MTV$
      999

      Re: C Programming Language

      Multi languages ​​very very, very difficult
      And frankly I liked the old I learn

      But too much was attempted succeeded

      I think it's very, very difficult

    12. #11
      angel999 is offline MTV Regular
      This user has no status.
       
      I am:
      ----
       
      Join Date
      Jun 2012
      Posts
      566
      MTV$
      -520

      Re: C Programming Language

      I learned C language during my undergraduate course. And i feel its a bit tough in comparision to C++. I needed a favor Do anyone have codes for Travelling salesman problem written in C??

    13. #12
      frns_4ever is offline MTV Rookie
      This user has no status.
       
      I am:
      ----
       
      Join Date
      Aug 2012
      Posts
      45
      MTV$
      14

      Re: C Programming Language

      c programming is the structured programming which gives more emphasis to data..we cannot add newe files in the programmes in c programming....

    14. #13
      frns_4ever is offline MTV Rookie
      This user has no status.
       
      I am:
      ----
       
      Join Date
      Aug 2012
      Posts
      45
      MTV$
      14

      Re: C Programming Language

      #include<stdio.h>
      #include<conio.h>
      #include<math.h>
      #include<string.h>
      these are some of the header foles used in c programminf........

    15. #14
      frns_4ever is offline MTV Rookie
      This user has no status.
       
      I am:
      ----
       
      Join Date
      Aug 2012
      Posts
      45
      MTV$
      14

      Re: C Programming Language

      #include<stdio.h>
      #include<conio.h>
      void main()
      {
      clrscr();
      printf("my name is yogesh ");
      getch();
      }
      this is the program which prints my name

    16. #15
      frns_4ever is offline MTV Rookie
      This user has no status.
       
      I am:
      ----
       
      Join Date
      Aug 2012
      Posts
      45
      MTV$
      14

      Re: C Programming Language

      #include <stdio.h>
      #include<conio.h>

      void main()
      {
      printf("Hello World!");
      printf("how are u?");
      getch();}
      getch();

    17. #16
      angel999 is offline MTV Regular
      This user has no status.
       
      I am:
      ----
       
      Join Date
      Jun 2012
      Posts
      566
      MTV$
      -520

      Re: C Programming Language

      I am quite confused about using getch(). Please explain me more on how do i actually use it. What library files do i need to use for it? Any better substitution for getch() ???

    18. #17
      benmoriz is offline Banned
      is who wander are lost!!!
       
      I am:
      Amused
       
      Join Date
      Sep 2012
      Posts
      1,704
      MTV$
      5,031

      Re: C Programming Language

      void main()
      {
      printf("Hello World!");
      printf("how are u?");
      getch();}
      getch();I am quite confused about using getch(). Please explain me more on how do i actually use it. What library files do i need to use for it

    19. #18
      njtboy is offline Banned
      This user has no status.
       
      I am:
      ----
       
      Join Date
      Sep 2012
      Posts
      1,129
      MTV$
      3,336

      Re: C Programming Language

      i was dismayed its like asking myself, why do they teach this old programming, this was like the 1990's, and then during class i started to code using the turbo c version 2 compiler blue background with the yellow codes, the compiler is pretty boring and it hurts my eyes for long hours of use. and then when i got home i did some research about the legend C, i found out that C can be coded in a different text editors even notepad and can be compiled in the compiler.

    20. #19
      ashishrock is offline Banned
      is music is my life
       
      I am:
      Amused
       
      Join Date
      Sep 2012
      Posts
      1,047
      MTV$
      1,042

      Re: C Programming Language

      Probably the best way to start learning a programming language is by writing a program. Therefore, here is our first program:

      // my first program in C++

      #include <iostream>
      using namespace std;

      int main ()
      {
      cout << "Hello World!";
      return 0;
      }

    21. #20
      bimal chand is offline Banned
      is is banned for copy pasting
       
      I am:
      ----
       
      Join Date
      Oct 2012
      Posts
      340
      MTV$
      1,000

      Re: C Programming Language

      In computing, C (/ˈsiː/, like the letter C) is a general-purpose programming language initially developed by Dennis Ritchie between 1969 and 1973 at Bell Labs.[4] Its design provides constructs that map efficiently to typical machine instructions, and therefore it found lasting use in applications that had formerly been coded in assembly language, most notably system software like the Unix computer operating system.

    Page 1 of 2 12 LastLast

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

    Tags for this Thread

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •