Code writing issues..

This is a discussion on Code writing issues.. within the C++ Programming forums, part of the General Programming Boards category; I need to do this: http://www.santarosa.edu/~ssarkar/ci...s10/proj2.html but i dont know how. If anyone can help me, it would make my ...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    8

    Question Code writing issues..

    I need to do this: http://www.santarosa.edu/~ssarkar/ci...s10/proj2.html

    but i dont know how. If anyone can help me, it would make my day. I can give you music for your troubles......

    here's what I have so far:

    Code:
    int main()
        {
            srand(time(0));  
            getProbsPerSet(<arguments>);  
            doOneSet(<no-more-than-3-arguments>);    
            doOneSet(<no-more-than-3-arguments>);
            doOneSet(<no-more-than-3-arguments>);
            printReport(<arguments>);
        }
    --------------------------------------------------------------------------------


    I dont know where to go from here...

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    here's what I have so far:
    That is what your homework assignment gave you as the starting point, so you haven't written anything yourself, right? Your homework assignment spells out exactly what you should do and even breaks it down into shorter steps. Have you done any of the steps leading up to that question?

    I can give you music for your troubles
    It's not yours to give.
    Last edited by 7stud; 07-31-2005 at 03:25 PM.

  3. #3
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903
    gimme some static x, insane clown posse, and ludacris
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  4. #4
    Registered User
    Join Date
    Jul 2005
    Posts
    8
    how about snoop dogg and trapt instead?

  5. #5
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903
    are we talking new or old school snoop shizzle
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  6. #6
    Registered User
    Join Date
    Jul 2005
    Posts
    8
    old.

  7. #7
    Banned
    Join Date
    Jun 2005
    Posts
    594
    ill do whatever you want for crack, k deal, no take backs!@#@#$

  8. #8
    Banned
    Join Date
    Jun 2005
    Posts
    594
    ok people are going to get mad at me for this, but its ok
    cause its just to help you along your way, besides this code
    doesnt really follow any of the guidelines of your teachers.

    Code:
    snip
    ok i put it together real fast it may not even compile, but
    it should give you an idea where to start. this probably could
    have been done a better way, but i have a bad headache,
    and sense you have to follow certian rules it doesnt matter.

  9. #9
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Well, ILV, aside from the fact that you have decided to do someone's homework for them, your code has numerous problems:

    1. It's non-portable.
    2. It mixes new and old headers.
    3. You have some interesting conversions.
    4. And no decent compiler will compile it.

    jaybo684, try something, and come to us with specific problems. Read this. And refrain from offering up that which you do not have the right to offer.

    Cheers
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  10. #10
    Banned
    Join Date
    Jun 2005
    Posts
    594
    boo your no fun i was hoping he would turn that in.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing C code in VS2005
    By advancedk in forum C Programming
    Replies: 6
    Last Post: 08-18-2008, 03:34 PM
  2. Writing code for a program in C
    By Sure in forum C Programming
    Replies: 7
    Last Post: 06-11-2005, 02:33 PM
  3. professional programmers, do you spend more time writing or modifying code
    By Terrance in forum A Brief History of Cprogramming.com
    Replies: 29
    Last Post: 11-25-2002, 10:54 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21