Thread: assignment hail mary

  1. #16
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    You can leave the names in function prototypes, theres no harm in it. It can also save you confusion...

  2. #17
    Apprentice Swordsman's Avatar
    Join Date
    Apr 2007
    Posts
    38
    I would imagine that Deimus is using either Visual C++ or DevC++ to write C code as it automatically saves it to a cpp extension. If you are being asked to save a C file as the cpp format, I would be worried.

    Anyway, you might want to look at this:

    http://cslibrary.stanford.edu/104/

    Binky is great for helping with pointers

  3. #18
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    Quote Originally Posted by Swordsman View Post
    I would imagine that Deimus is using either Visual C++ or DevC++ to write C code as it automatically saves it to a cpp extension. If you are being asked to save a C file as the cpp format, I would be worried.

    Anyway, you might want to look at this:

    http://cslibrary.stanford.edu/104/

    Binky is great for helping with pointers
    If you manually add the file extension when saving, you can override the defaults. Take Wordpad. It won't let you save HTML documents, but if you manually add the extension, it will save as HTML (and whatever other abstract format). It also works with Visual C++ as well as I was trying to save a header file from a file that was once C (deleting the content and filling it with a bunch of defines as I had).
    High elevation is the best elevation. The higher, the better the view!
    My computer: XP Pro SP3, 3.4 GHz i7-2600K CPU (OC'd to 4 GHz), 4 GB DDR3 RAM, X-Fi Platinum sound, GeForce 460, 1920x1440 resolution, 1250 GB HDD space, Visual C++ 2008 Express

  4. #19
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by ulillillia View Post
    If you manually add the file extension when saving, you can override the defaults. Take Wordpad. It won't let you save HTML documents, but if you manually add the extension, it will save as HTML (and whatever other abstract format). It also works with Visual C++ as well as I was trying to save a header file from a file that was once C (deleting the content and filling it with a bunch of defines as I had).
    Something clever like that would just lead to C being compiled as C++ which is just wrong.

    DevC++ differentiates between C and C++ projects. If you want to write a C file, make a C project and vice versa.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Menu
    By Krush in forum C Programming
    Replies: 17
    Last Post: 09-01-2009, 02:34 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. Help with a pretty big C++ assignment
    By wakestudent988 in forum C++ Programming
    Replies: 1
    Last Post: 10-30-2006, 09:46 PM
  4. Replies: 1
    Last Post: 10-27-2006, 01:21 PM