Explore BrainMass

Explore BrainMass

    Introduction to C

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Bob, My attempt resulted in the statement below and I am not sure were the prob is; also i have a small green rectangle on the field that preceds the cursur when i enter the code. This rectangle does not appear in your notes...any suggestions?

    //header

    #include<stdio.h>

    int main (void)

    {

    printf( "Hello Chuck/n" );

    return 0;}

    'test22.exe': Loaded 'C:Userscwill111DocumentsVisual Studio 2010Projectstest22Debugtest22.exe', Symbols loaded.
    'test22.exe': Loaded 'C:WINDOWSSysWOW64ntdll.dll', Cannot find or open the PDB file
    'test22.exe': Loaded 'C:WINDOWSSysWOW64kernel32.dll', Cannot find or open the PDB file
    'test22.exe': Loaded 'C:WINDOWSSysWOW64KernelBase.dll', Cannot find or open the PDB file
    'test22.exe': Loaded 'C:WINDOWSSysWOW64msvcr100d.dll', Symbols loaded.
    The program '[4184] test22.exe: Native' has exited with code 0 (0x0).

    © BrainMass Inc. brainmass.com September 27, 2022, 5:37 pm ad1c9bdddf
    https://brainmass.com/computer-science/c/introduction-c-450735

    SOLUTION This solution is FREE courtesy of BrainMass!

    Hi,

    Next time if you still have a problem with this post, just send me a message instead of posting it with credit. Also please talk to BrainMass.com so you might get refund for this post since this post is a question regarding the previous post.

    Anyway, in your code, after #include, I don't see stdio.h. Do you have it in your code? I tried to run my code without stdio.h and got a build error. See the screen capture. When I cliked Yes, it ran and gave exactly same errors you got.

    Also, use n after Churck insted of /n. You also might want to use gets() function to pause the program to see it prints your name. Otherwise, the program will all the way and end without giving you time to see what it printed on console.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    © BrainMass Inc. brainmass.com September 27, 2022, 5:37 pm ad1c9bdddf>
    https://brainmass.com/computer-science/c/introduction-c-450735

    Attachments

    ADVERTISEMENT