Thread: Help with Files and Structures

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    16
    So I have to include the header file inside my compilation statement?

    What I've used in the past for a single file is g++ -o prog prog.cpp
    and can run it then by say ./prog


    edit: I believe I am compiling it correct with the 2 files, but I'd like clarification if possible.....Also! I am getting the first part to run because of your marvelous advice When I try to compile with the structure added though it's coming up with errors, leading me to believe that I am way off with how to make my calcRoots function into a structure.
    Last edited by PenguinTux; 03-22-2011 at 02:32 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Structures and header files problem
    By Quinn90 in forum Windows Programming
    Replies: 1
    Last Post: 01-27-2011, 09:35 AM
  2. Structures and Files
    By nuddy in forum C Programming
    Replies: 2
    Last Post: 03-31-2010, 12:15 PM
  3. Create Copies of Files
    By Kanshu in forum C++ Programming
    Replies: 13
    Last Post: 05-09-2009, 07:53 AM
  4. Random access files and structures
    By DLR in forum C Programming
    Replies: 8
    Last Post: 04-21-2006, 03:24 PM
  5. structures and files
    By eth0 in forum C++ Programming
    Replies: 9
    Last Post: 01-06-2004, 06:48 PM