Search:

Type: Posts; User: nair

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,557

    I read it but did not attempt it because I wanted...

    I read it but did not attempt it because I wanted to avoid C++0x, since I have never used it before. Also, I assumed solving a somewhat basic problem like my own was already solved using more...
  2. Replies
    7
    Views
    1,557

    I probably don't know what I am talking about...

    I probably don't know what I am talking about since I am such a beginner, but I'm just gonna take a shot in the dark anyway, and hopefully be enlightened or proven wrong (or both). Upon doing more...
  3. Replies
    7
    Views
    1,557

    Defining a GetArray() Method

    I've got a class ("ParentClass") which has several private attributes, one of those being an array of type "ChildClass". All I need is a method which can return the array contained within the...
  4. Replies
    4
    Views
    1,205

    You are correct. Every flag in my "Compiler...

    You are correct. Every flag in my "Compiler Settings" was unchecked.
  5. Replies
    4
    Views
    1,205

    Don't know why the compiler doesn't complain...

    Don't know why the compiler doesn't complain about that. Somehow, integer datatypes actually work perfectly in the code as written.

    The correct code, as you mentioned should be:


    std::string...
  6. Replies
    4
    Views
    1,205

    Segmentation Fault Debug

    I have ended up running into a specific problem in my own C++ project which is now crashing (throwing a segmentation fault error). I have created an entire project, which I have pasted below, which...
  7. Replies
    4
    Views
    1,294

    If I define object B as an attribute of object A,...

    If I define object B as an attribute of object A, must I always define it as a public member in order to use it? If it is defined as a private member, I cannot go to that attribute directly and use...
  8. Replies
    4
    Views
    1,294

    Encapsulation and objects within objects

    While sticking with the theme of having private data members and public methods within all of the objects that I create programming, I am a bit confused about the topic of encapsulation in the...
  9. Replies
    11
    Views
    1,654

    How big should main() be?

    I am familiar with the concept of breaking down a really big, complicated function into smaller functions, keeping things simpler and easier to maintain. It's all about "divide and conquer". I know...
  10. Replies
    2
    Views
    4,739

    Yes, I already configured my main SDL libraries...

    Yes, I already configured my main SDL libraries and tested that they worked properly in lessons 1 and 2. Also, I figured out my problem. Under "Global Compiler Settings" > "Linker Settings" tab >...
  11. Replies
    2
    Views
    4,739

    SDL 'IMG_Load' & Setting Up Extension Libraries

    Having just begun the Lazyfoo SDL tutorials, I am stuck on lesson 4. It is the first lesson in which the user actually tests whether or not they configured their IDE and their executable to use the...
  12. Replies
    5
    Views
    2,734

    Thanks for the reply, I'm gonna go try exactly...

    Thanks for the reply, I'm gonna go try exactly what you recommended and see where I end up.

    Also, for anyone out there who is looking to do the screensaver approach, I discovered that the source...
  13. Replies
    5
    Views
    2,734

    I was just recently thinking a great way to get...

    I was just recently thinking a great way to get started doing this would be to find some open source screensavers out there and try and figure out how they work or how to modify them. I would...
  14. Replies
    5
    Views
    2,734

    Regarding the screensaver concept, I am not...

    Regarding the screensaver concept, I am not necessarily trying to make something that is intended to be used as a screensaver, meaning that it would necessarily preserve the screen, be energy...
  15. Replies
    5
    Views
    2,734

    Getting Started Making a Screensaver

    I have been researching how to create a very basic GUI application in C++ with the intent of eventually making a basic game, such as pacman or tetris. I have a lot to learn about C++, and I have...
  16. Replies
    2
    Views
    1,232

    Code style/formatting/organizing

    What guidelines do you guys follow for structuring and formatting your C++ code in general? Have you guys spent a lot of time looking at other people's code and attempting to mimic their style? ...
  17. Replies
    8
    Views
    1,521

    Ahhh...I was trying to use text files with names...

    Ahhh...I was trying to use text files with names that had spaces in them. That's the issue. Thank you for spotting that and informing me.

    Ya I can open up all of the text files and edit them.
  18. Replies
    8
    Views
    1,521

    What I meant to articulate more clearly was...

    What I meant to articulate more clearly was that...when I attempt to run this program using certain specific text files as input, the else statement of my program runs and the "Unable to open file"...
  19. Replies
    8
    Views
    1,521

    That did not change the behavior of the program...

    That did not change the behavior of the program given the input text files I have been using. For some reason, with these particular input files, certain ones still will not open successfully, even...
  20. Replies
    8
    Views
    1,521

    Simple parse text file question

    I am using this code to accept a filename of a text file input from the user which will parsed line by line. It takes a line of text and assigns it to an array element "line", and goes through the...
  21. Replies
    7
    Views
    1,581

    You're right. What are those first three...

    You're right. What are those first three characters?

    10257
  22. Replies
    7
    Views
    1,581

    Just tried it in VS2010, and had exactly the same...

    Just tried it in VS2010, and had exactly the same output. I am expecting the output to be:



    and not



    Not likely to just be a problem with my IDE.
  23. Replies
    7
    Views
    1,581

    I'm using Dev C++. I had heard that it was...

    I'm using Dev C++. I had heard that it was ancient, maybe it is causing me this problem.
  24. Replies
    7
    Views
    1,581

    Substr position/parameter problem

    I have just become familiar with substr. I had been using it successfully the past couple days until I ran into this first problem, and now I have begun to question if I actually know how it works. ...
  25. Replies
    3
    Views
    6,136

    parsing text using getline

    I've got this code which parses a text file by reading through and assigning each individual string to a variable (an element in the 'holder' array). It is based mostly off of some code I found on...
Results 1 to 25 of 30
Page 1 of 2 1 2