Challenge to write a program

This is a discussion on Challenge to write a program within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I have been challenged to write a program in Borland turbc C++ 3.1. i have been supplied with the .exe ...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    21

    Challenge to write a program

    I have been challenged to write a program in Borland turbc C++ 3.1.

    i have been supplied with the .exe file and thats it

    I have all the formulae that is needed for the logical side of the program... one drawback, it has to be all graphical!

    i was wondering of anyone out there knows how to draw buttons (so that when u choose the relevent button they seem to depres), radio buttons/check boxes and drop down lists?

    i would really appreciate the help on this guys!

    if you would like the C++ 3.1 compiler email me and i will give you the link to download it

    also if u wana see the .exe file you're welcome to ask me for it!

    thanks in advance and i really apprecite your help, im not very good at C++, you could say a total beginner!

    if anyone knows of any good links for graphical interface writing in C++ as well, please let me know!

    Alice
    * Curiouser & Curiouser *

  2. #2
    Registered User
    Join Date
    May 2003
    Posts
    21
    oh im sorry Salam, i didn't mention that i have looked lots of places for help

    im not askin anyone to write the whole program for me but i am really stumped by this task i have been given.

    i'm only askin for one little tiny piece of code, if u want to see the .exe file i can send it to you (althought u may need to download the complier to view it) u will see just how much work there it that i will have to do.

    a little example code would be very very helpful so that i have some kind of starting point.

    trust me, once i have some code i will be posting it asking for help, but how can i get any code when i don't know even how to draw a simple button in c++?
    * Curiouser & Curiouser *

  3. #3
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Begin by telling us what you do know about C++. If you don't know how to program, then a small snippet of code isn't going to do you a lot of good. Likewise, if you have no experience with C++ then an advanced topic such as button creation will be far too difficult. I take it this is a windows program?

  4. #4
    Registered User
    Join Date
    May 2003
    Posts
    21
    no its in 3.1 its DOS i think.

    ive done basic C++ coding, i'm not very great at it but i know enuf to get by, functions are fairly new to me, but im gettinthe hang of them.

    so lets say i am intermediate? put it this way, im in my 1st year at uni doin a HND in Comp sys engineering, so im learning how to use c at the mo... just i've not been able to pick it up as well as some people have

    that enuf info?cant think of what else to write!
    * Curiouser & Curiouser *

  5. #5
    Registered User
    Join Date
    May 2003
    Posts
    21
    .EXE file

    this is the .exe file

    C++ complier

    this is the c++ complier that i use... u might have to download it and install it before u can run the exe but im not sure. its about 3.3mg

    if u have to download the complier u need to stick the .exe inthe bin or the bgi file before you run it.

    maybe that will give u a better idea of what im looking for as u can see the scrolling box thingy working

    cheers!
    * Curiouser & Curiouser *

  6. #6
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    if u want to see the .exe file i can send it to you (althought u may need to download the complier to view it) u will see just how much work there it that i will have to do.
    The compiler won't let you "view" the code. De-compiling is a bit like un-scrambling an egg. You can get a de-compiler, but it won't reproduce the original source. It's almost always easier to start-over, than to try and decypher de-compiled code!

    In your case, the exe file is a demonstration/example of what your program is supposed to do.

    functions are fairly new to me
    Yep, you're a beginner... And graphics is an advanced topic.

    buttons (so that when u choose the relevent button they seem to depres), radio buttons/check boxes and drop down lists?
    This is windows / GUI stuff. It's going to take at least several months of study before you're ready to tackle windows programs. Windows programs are shockingly more complex than console programs! Here are some links to windows tutorials, etc.
    WINDOWS

    FYI - ANSI/ISO standard (portable) C++ does not include any graphics. Graphical programs have to be written for a particular platform/compiler... although there are cross-platform tools.

  7. #7
    Registered User
    Join Date
    May 2003
    Posts
    21
    i dont think u understood what i meant about the .exe file.

    the .exe file requires some of the files inthe compiler to run, and yes its an example of what the code needs to replicate. and trust me if i could view the source code i would not be askin for an example code for the drop down box from any of you guys.

    lets see.. i have to do this by 2nd june.. i've already said im not a total beginner, but this is harder than what ive been doin

    we have done some graphics stuff in C in Uni, drawing a button.. which i did from an example .cpp.. but i dont know quite how it worked.

    and yes i know that the 3.1 dont have any graphics stuff, i know it has to all be drawn

    take a look at the demo .exe and u will get what i mean, its hard to explain it when no one knows what the thing is meant to be like.

    i just would like to know how to make one of the dropdown/scrolling list boxes, that way i can learn from seein the code manually and i can edit it and play about with it to my hearts content.
    Last edited by Twisted.alice; 05-14-2003 at 01:42 PM.
    * Curiouser & Curiouser *

  8. #8
    Registered User
    Join Date
    May 2003
    Posts
    21
    actually i dont need to whole program calv but thanks for ur support! just the one little bit of the drop down box.. if u think u an write the whole thing then be my guest....but i dont expect anyone to write it all for me

    if anyone has some USEFUL links, i.e some demo codes that would do the trick that i want then please let me know

    also if anyone looks at the .exe file i would be glad if u can let me know what u think about it

    i.e if u think it is codeable and tips u could give me about it

    a decomplier would be nice, but i duno if it would help
    Last edited by Twisted.alice; 05-14-2003 at 02:40 PM.
    * Curiouser & Curiouser *

  9. #9
    Calv
    Guest

    Talking

    There is one thing,Alice.

    Who challenged to write the whole program?I used Microsoft c++ only, As the borland compiler.... it would be quite a bit different from the Microsoft if i'm not wrong.

    how come u r using Borland instead microsoft? Besides,
    where u study? what r u majoring? Is it an exam for you or schoolwork? how long have u been in programming fields?

    I try to help YOu!!!!!

    The guys in the boards........ Try To help Alice as well! OK!!!

  10. #10
    Registered User
    Join Date
    May 2003
    Posts
    21
    im doin a HND in Computer System Engineering at Uni in London

    Borland is what we use in Uni, i dont make the course up heehee, i personally dont like it too much.

    yeah its part of my coursework, but the tutor cant help us as it will bummer up the grades and stuff and hes just no good at teaching it anyway!

    if u want the borland complier theres a link on an earlier post so u can download it (3.3mg if i rem) its fairy simple to install and stuff.

    i do have visual 6 c++ but its totally different from what we have to use. i did have visual studio.net or sumtin, 90 day evaluation thingy from microsoft, but dont ask where it is, it could be a coaster heehee

    and thanks for tryinto help calv!
    * Curiouser & Curiouser *

  11. #11
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Sorry, the .exe doesn't work, even when placed in the compilers bin file. It says bgi error, graphics not initialized.

  12. #12
    Registered User
    Join Date
    May 2003
    Posts
    21
    try stickin it in the bgi folder then, i wasnt too sure which one it needed, sorry
    * Curiouser & Curiouser *

  13. #13
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    No go. I get an error when trying to unzip the bgi folder from the original zip file. Looks like its corrupted or something. Sorry!

  14. #14
    Registered User
    Join Date
    May 2003
    Posts
    21
    why did u try to unzip the bgi file? theres a install file to run in the original zip file, it sets up the program for you. did u use that to set it up or just unzip everything instead?
    * Curiouser & Curiouser *

  15. #15
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Tried both. I installed it but no bgi folder was created. So I went back to the zipped file and tried to unzip it myself and was given the error.

Page 1 of 3 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 01-01-2007, 07:36 AM
  2. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  3. Hints to write a program
    By Bnchs400 in forum C++ Programming
    Replies: 28
    Last Post: 04-05-2006, 06:35 AM
  4. Can I write & read file in same program?
    By chad03 in forum C Programming
    Replies: 2
    Last Post: 08-04-2003, 09:39 AM

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