Some Questions... (I'm back but...)

This is a discussion on Some Questions... (I'm back but...) within the C++ Programming forums, part of the General Programming Boards category; Hi again, I'm back ehre asking questions but this time more calm and patient. And I'm trying to do something ...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    731

    Some Questions... (I'm back but...)

    Hi again,

    I'm back ehre asking questions but this time more calm and patient. And I'm trying to do something different.

    I want to make a program that can delete certain files and folders. It is not for a virus or anythign but for a track earser program. I mainly want to delete reg keys and values.

    I don't think it is possable to do with c++ but you guys know it so I think you can help me.

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Have you learned enough C++ to know how to declare and instance of a class yet?

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    ok new question. How do I make a a very simple program with one window and theres buttons you can press on teh window? Do I use c++ for that or a different code?

  4. #4
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    You need to learn C++ first. We are not going to make your program for you. Do you know how to declare an instance of a class?

    edit: You've also got some serious issues in your ability to stay with a project for more than 5 minutes.

  5. #5
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    No I don't I was just asking what code I shoudl learn. You know like delphie or c++ or if I need to learn something like object oriented or something like that.

    edit: I don't want that program for right now. I found something more interesting.And this program will help me learn more maybe.

  6. #6
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    C++ IS object oriented. Learning C++ is what you need to do first. You can pretty much do anything in it. Once you learn the basics of C++, then you can find out about Windows APIs.

  7. #7
    Registered User
    Join Date
    Aug 2004
    Posts
    20
    If you switch languages as fast as you switch programs, you'll never learn anything. Just stick with C++.

  8. #8
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    alright you win but now I gotta nouther qestion. When I did the examples on the tuts on this site (the first one were it shoudl say a message) all it did was open a window and then close in about half a second. Why does that happen?

    edit: I never started a program I never realy leanred anyting yet. So I got notin to loose.

    edit edit: yet

  9. #9
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Read the next tutorial to find out.

  10. #10
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    So read the sedon tut? wich is on umm. varaibles?

  11. #11
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Actually the problem is worse than I thought. You haven't even finished the tutorial you're on. Finish that and you'll see how to fix it.

  12. #12
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    accauly I knwo the first 2 tuts. I have used game maker and that teaches a great amout on variables so I fully under stand them. So I would be on tut 3. But the dumb programs still don't work.

  13. #13
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    ok I think I know enof to know what is going wrong. (I know alot abotu computers just not code lol) I used your code and for the most part it works. I compiled it and ran it and when I enter the number and hit enter the windows just closes. So the window is not staying open when the cout<<"You entered: "<<thisisanumber; happens.

    Now any ideas?

  14. #14
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    All you need to do is ask for input at the very end. Then it won't close until the user meets the conditions for ending that statement.

    edit: You're too used to using Windows. Windows programs sit there and do nothing but respond to events. What you're writing is called console application, and it basically runs like a script. As soon as the last out put statement executes, the program is finished and it closes the windows. That's why this is happening.
    Last edited by sean; 08-19-2004 at 07:51 PM.

  15. #15
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. Some woman back ended my car today, and back hurts
    By Terrance in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 08-20-2003, 12:42 AM
  3. questions about new and delete
    By Unregistered in forum C++ Programming
    Replies: 7
    Last Post: 09-07-2001, 01:48 PM
  4. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM

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