Help on writing program

This is a discussion on Help on writing program within the C Programming forums, part of the General Programming Boards category; Hey that is pretty cool! it works now thanks! Since I am new at this it's hard to come up ...

  1. #16
    Registered User
    Join Date
    Feb 2005
    Posts
    76
    Hey that is pretty cool!

    it works now thanks!

    Since I am new at this it's hard to come up with the right questions to ask sometimes. I do not know that much yet but I am hoping that I will get the basics down before long.

    I must admit it's not easy but with practice it will come.

  2. #17
    Registered User
    Join Date
    Mar 2004
    Posts
    494
    robasc, i think you need to do some reading on how to declare, initialize and use a variable, take a look at this http://www.cprogramming.com/tutorial.html or search google for more. If you doing this for school i think you should buy a book and start reading before things get more complicated. Beleive me you dont want to be in a programming class without knowing the basics, it will help you a lot.
    When no one helps you out. Call google();

  3. #18
    Registered User
    Join Date
    Feb 2005
    Posts
    76
    Well, I do start on my first programming course this coming up semester in college. And I did in fact buy a book to gain further knowledge on the basics. just waiting for it to get here. I am also taking an online course to help get some practice but the course i'm taking is not as easy as it is portrayed. I thank you for your help.

  4. #19
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by robasc
    I am sure that the problem lies in the printf statement;however,
    it will not compile the way you wrote it.

    Code:
    #include <conio.h>
    #include <stdio.h>
    
    main(void){
               int number1;
               number1 = 218;
          printf("the ASCII value of 217 is%c \n", num1);
        getche();
    }
    what else am I doing wrong?
    You mean aside from assigning 218 and saying it's actually 217?

    Quzah.
    Hope is the first step on the road to disappointment.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing a program to make a calendar
    By Northstar in forum C Programming
    Replies: 17
    Last Post: 11-07-2007, 10:34 AM
  2. writing a calendar program help please!!!
    By Newbie2006 in forum C Programming
    Replies: 7
    Last Post: 11-20-2002, 06:36 PM
  3. Replies: 5
    Last Post: 11-19-2002, 08:36 PM
  4. Help with a file writing program
    By pritesh in forum C Programming
    Replies: 3
    Last Post: 11-11-2001, 12:56 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21