pseudocode for multiple source files

This is a discussion on pseudocode for multiple source files within the C++ Programming forums, part of the General Programming Boards category; Hi, I need to write the deign for a program which I am writing for a school project. I am ...

  1. #1
    Registered User
    Join Date
    Dec 2005
    Location
    german border
    Posts
    72

    pseudocode for multiple source files

    Hi,

    I need to write the deign for a program which I am writing for a school project. I am using qt4 for the gui so there will be around 3-4 source files. This is my first time writing a design for a program which consists of more than one file and I am unsure as to how I should structure it. Should the pseudocode reflect the gui, as in 'this button will perform this function' or should it reflect the structure of the source files which will be very different from the layout of the gui obviously. How do all you experienced programmers do it? :P

    Calef13

    P.S: I was unsure which board to post this in, I apologize if I picked the wrong one.

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    19
    Please clarify who wanna write the pseudo code or make a design for a program ?

  3. #3
    Fear the Reaper...
    Join Date
    Aug 2005
    Location
    Toronto, Ontario, Canada
    Posts
    625
    I don't think there's a unique answer to this question, different programmers have different design methodologies, and each one has their pros and cons.

    That being said, here are some design patterns that you should probably have a look at (and I say that because they are my personnal favorites, not necessarily out of certainty that they will help you) :
    Observer pattern
    Command pattern
    Teacher: "You connect with Internet Explorer, but what is your browser? You know, Yahoo, Webcrawler...?" It's great to see the educational system moving in the right direction

  4. #4
    Registered User
    Join Date
    Dec 2005
    Location
    german border
    Posts
    72
    It's me who is writing/designing this program. Thanks for the links, I'll have a look. I thought there was a set method to writing designs but choosing your own is great and should be easier.

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    There may also be a pseudo-code standard at your school (or workplace) which you should apply. There is no formal definitions of pseudo-code [the words themselves means "false code", but perhaps a better translation is "not genuine code" - for example, you can have complex types in pseudo-code in a language that has no complex types].

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 06-04-2009, 09:45 PM
  2. Mutex across multiple source files
    By Quasar in forum Linux Programming
    Replies: 7
    Last Post: 12-04-2007, 08:25 AM
  3. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 02:30 PM
  4. Beginner Question: Multiple source files
    By ironfistchamp in forum C++ Programming
    Replies: 8
    Last Post: 07-16-2006, 03:19 PM
  5. Linker errors - Multiple Source files
    By nkhambal in forum C Programming
    Replies: 3
    Last Post: 04-24-2005, 03:41 AM

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