Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: hayloiuy

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Re: Question about structs in class which wouldn't save value.

    AARGGGHHHH this is just a very very simple mistake which i overlook. I spent 2 hours thinking what is the problem. Imagine that. If there are any thumbs up in this forum i will give you a hundred. ...
  2. Question about structs in class which wouldn't save value.

    I have a question about this particular code.
    The structs would not save the value entered by the user into its class' attributes.
    If you do not understand what i am talking about, please compile...
  3. Replies
    4
    Views
    1,290

    Re: What is wrong in this program?

    Thanks Phillip!! That answered my question!! To everyone else i sincerely thank you for your further explanation and sorry about the indentation. I thought it was neat for me. I assure you guys there...
  4. Replies
    4
    Views
    1,290

    What is wrong in this program?

    What i am trying to do here is to pass an argument from int main() to num2 then using the same value pass the argument to num1 but the compiler is acting like the arguments passed to num1 does not...
  5. Re: Can I create an object with the user defined name?

    Oh yeah i just figured vector is also plausible right? I can encapsulate the program by hiding the number of pets i have. I wont be replying for a while. I have class tomorrow morning. I need to...
  6. Re: Can I create an object with the user defined name?

    Ok... sorry i am still a beginner but what is std::map? And why Paul McKenzie's code does not have "using namespace std" and is he using constructor initializer list? Thanks for your time.
  7. Re: Can I create an object with the user defined name?

    What i meant was..

    In the console:
    enter the name of your pet:John

    In the code:
    ....bla bla
    ....bla bla
    ....bla bla
  8. Can I create an object with the user defined name?

    As the title suggest i want to create an object with the name that was entered by the user into the console.

    This code looks stupid but you will get the idea what i want to do (although it doesn't...
  9. Replies
    9
    Views
    1,485

    Re: Halp with my program?

    Oh yeah, thanks by the way.
  10. Replies
    9
    Views
    1,485

    Re: Halp with my program?

    Wow !That's something new! Ok it works but if that is your explanation then this should not work right?
    cin>>a;
    cin>>b;
    Because the second cin will execute the /n from the first cin?
  11. Replies
    9
    Views
    1,485

    Re: Halp with my program?

    Woops sorry, i seemed to have caused some misunderstanding. What i meant was that the getline function causes the first loop not to accept any value. Try compiling it and you will understand.
  12. Replies
    9
    Views
    1,485

    Re: Halp with my program?

    Thanks but is still have problem with the getline function. The getline function did not seem to prompt me to insert a value....
  13. Replies
    9
    Views
    1,485

    Re: Halp with my program?

    WOW! THAT'S IT? Wow....just wow!!! I am seriously sorry for wasting your time. By the way, is my way of creating a dynamic memory correct because when it comes to pointer and all i am not very...
  14. Replies
    9
    Views
    1,485

    Halp with my program?

    My teacher asked me to simply create a scenario in C++ that uses an array of objects.
    Well, i followed everything by book yet weird problem appears. What is wrong? My take is that the dynamic...
  15. Replies
    19
    Views
    2,000

    Re: Whats up with my dev c++?

    I dont mean to be rude but i want solutions not recommendations. Sorry if i sound rude.
  16. Replies
    19
    Views
    2,000

    Whats up with my dev c++?

    When i press F9 it should compile and run right? I just started using it today but the F9 button only compiles it but would not run it. I checked the configuration for the buttons. F9 is assigned to...
  17. Replies
    6
    Views
    1,653

    Re: Whhat is wrong with this isdigit

    #include <iostream>
    #include <cctype>

    using namespace std;

    int main()
    {
    int a;

    while( cin>>a)
  18. Replies
    6
    Views
    1,653

    Re: Whhat is wrong with this isdigit

    I want to create a program that ask user for a number then checks whether it is integer or not. If it is an integer it will quit. Else it will ask the user to key in the value until the user key in a...
  19. Replies
    6
    Views
    1,653

    Whhat is wrong with this isdigit

    I just wanted to see whether it is a digit or not but it gave a night of headache



    #include <iostream>
    #include <cctype>

    using namespace std;

    int main()
  20. Replies
    7
    Views
    637

    Re: Help with my program

    i dont understand the last sentence
  21. Replies
    7
    Views
    637

    Re: Help with my program

    What is code tag and indentation?The program definitely compile if you remove the '#' at the beginning and ending of the codes.
    The program crash whenever i try to quit the application by choosing...
  22. Replies
    7
    Views
    637

    Help with my program

    Weee almost finish this program but one last thing. Why does this program crash whenever i quit after i do something to the records . Somebody please compile the program and try it and please tell me...
  23. Replies
    3
    Views
    472

    More help with arrays?

    I dont know whats the problem. I followed everything the teacher taught me in class but this code just keep having errors!!! I feel like crying now. I am too lazy to explain the problem now. Its late...
  24. Replies
    3
    Views
    953

    Re: Why does my program keeps crashing

    I see i will try improving it and see the result thank you
  25. Replies
    3
    Views
    953

    Re: Why does my program keeps crashing

    #include <iostream>

    using namespace std;


    int add_record()
    {struct weapon
    {int id;
    int name;
    int quantity;
Results 1 to 25 of 27
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center