Search:

Type: Posts; User: davidnj732

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    4,337

    need help with a guessing game program

    :confused:
    //The following program I wrote is a guessing game
    //program. The program chooses a random number, which the user should
    //attempt to guess. Hints are given to the player instructing...
  2. Thread: textfile 2

    by davidnj732
    Replies
    13
    Views
    1,749

    thanks guys for you input. Just trying to learn...

    thanks guys for you input. Just trying to learn something new. Professor gave us a challenge and I didn't have a clue how to begin or what I was doing. Still really a newbie. He gives us these...
  3. Thread: textfile 2

    by davidnj732
    Replies
    13
    Views
    1,749

    textfile 2

    Part 1

    I need to write a program called Encrypt.cpp, which opens a text file. The name of this file is provided by the user. The program reads every character from this input file, adds 2 to the...
  4. Thread: textfiles

    by davidnj732
    Replies
    1
    Views
    997

    textfiles

    I need to know how to write a program which opens a textfile and counts how many spaces and vowels it contains. The name of the file should be read in from the user. If the file could not be opened...
  5. Replies
    2
    Views
    1,454

    beginner question

    Hi,

    I would like to print the ascII value of the letter p using the variable Mychar. Using a printf() statement is this the correct format.


    char MyChar;
    MyChar ='p';

    printf("The value of...
  6. Replies
    2
    Views
    1,207

    stupid question of the day

    hi,

    What is the value of the following expression:


    'g'-'a'+'A'


    thanks
  7. Thread: pointers

    by davidnj732
    Replies
    3
    Views
    871

    pointers

    HI,


    The following code(with missing parts), prints the letter p on the screen. Without assigning the letter p to the variable x, fill in the missing parts:


    char s='M';
    char x= ;
Results 1 to 7 of 7