Thread: Help on writing program

  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.

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, 11:34 AM
  2. writing a calendar program help please!!!
    By Newbie2006 in forum C Programming
    Replies: 7
    Last Post: 11-20-2002, 07:36 PM
  3. Replies: 5
    Last Post: 11-19-2002, 09:36 PM
  4. Help with a file writing program
    By pritesh in forum C Programming
    Replies: 3
    Last Post: 11-11-2001, 01:56 AM