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

Search:

Type: Posts; User: gloin

Page 1 of 2 1 2

Search: Search took 0.05 seconds.

  1. Thread: Picturebox

    by gloin
    Replies
    4
    Views
    760

    Re: Picturebox

    Same thread but similar question...hope its ok.

    So I created a plane which is 250 x 250. Im trying to draw a line at an angle. So lets say for example I want to draw a 45 degree angle from center...
  2. Thread: Picturebox

    by gloin
    Replies
    4
    Views
    760

    Re: Picturebox

    Thanks much :D
  3. Thread: Picturebox

    by gloin
    Replies
    4
    Views
    760

    Picturebox

    Hello all,

    So im trying to figure out how to draw a line on a form that will lay over top a picture box. Im using an image
    in a picture box and want to draw a line which will go over the top. ...
  4. Thread: Classes

    by gloin
    Replies
    18
    Views
    3,926

    Re: Classes

    Yeah its getting more clear. I created a class with all my crap and an object in main to access that class.
    thanks much!
  5. Thread: Classes

    by gloin
    Replies
    18
    Views
    3,926

    Re: Classes

    Ahh ok...this makes it more clear to me. If i really wanted to access that data from another class I could create a public function to do that and call that function from another class. But like you...
  6. Thread: Classes

    by gloin
    Replies
    18
    Views
    3,926

    Re: Classes

    Thanks for the reply and help. Im still having a difficult time understanding some things...
    for ex: in this code im making a class that is holding an array. I cant seem to figure out
    how to get...
  7. Thread: Classes

    by gloin
    Replies
    18
    Views
    3,926

    Re: Classes

    Sorry for the incoherent example. I am very new to c++ and trying to understand when to use a class vs a function. I used a very basic example just for discussion purpose.
    I still am trying to...
  8. Thread: Classes

    by gloin
    Replies
    18
    Views
    3,926

    Re: Classes

    Just a follow up if thats ok..

    so im trying to make the array from Class A available to Class B to read from. I guess I could make if global but would like to make it available to class b from...
  9. Thread: Classes

    by gloin
    Replies
    18
    Views
    3,926

    Re: Classes

    aahhh ok! now i got it..thanks much
  10. Thread: Classes

    by gloin
    Replies
    18
    Views
    3,926

    Re: Classes

    Not sure what you mean...
  11. Thread: Classes

    by gloin
    Replies
    18
    Views
    3,926

    Classes

    Hello all,

    So Im working with classes and am wondering how to access a public function from one class to another. Basically I have a function in class A that I want to access the value from in...
  12. Thread: For/if

    by gloin
    Replies
    4
    Views
    3,697

    Re: For/if

    Sorry for the psudo code...

    so when I run this I get the correct answers...if you remove the remarks it doesn't work correctly. Im not sure why when I add the brackets it wont work... :)


    ...
  13. Thread: For/if

    by gloin
    Replies
    4
    Views
    3,697

    For/if

    Hello,

    Tying to understand using a for without brackets...not sure why they are used. This example A executes differently than b. Thanks much :)

    ex a



    for (j=0;j<3;j++)
    if...
  14. Thread: Main () Question

    by gloin
    Replies
    6
    Views
    715

    Re: Main () Question

    Ahhh ok...light bulb turned on!

    thanks for the clarity!! :)
  15. Thread: Main () Question

    by gloin
    Replies
    6
    Views
    715

    Re: Main () Question

    Still confused I think....

    So if a function is called within main, in this case data_out, since data out uses the returned values of suma and sumb they don't need to be called in the main function?
  16. Thread: Main () Question

    by gloin
    Replies
    6
    Views
    715

    Main () Question

    Hello,

    Question about the main function.

    Its my understanding that when you call functions from main, that is the only time the function will be executed. I was messing around with using...
  17. Replies
    4
    Views
    605

    Re: Load data into Matrix

    Thanks so much for the help! :)
  18. Replies
    4
    Views
    605

    Re: Load data into Matrix

    Sorry for delay response,

    So this I what code I was using...



    #include <iostream>
    #include <fstream>
    using namespace std;
  19. Replies
    4
    Views
    605

    Load data into Matrix

    Hello All,

    I am working some code that will read a file and put values into a matrix. Keep in mind I am very new to programming and were told to use loops to do it.

    The format of the data will...
  20. Replies
    4
    Views
    6,854

    Re: Comma delimited text file

    Thanks for the help!
  21. Replies
    4
    Views
    6,854

    Comma delimited text file

    Hello all,

    Was wondering if anyone could give some pointers for reading a comma delimited file. I created something that works for reading a file with spaces....

    basically im reading it and...
  22. Replies
    5
    Views
    3,736

    Re: Validating a Float

    Thanks for pointing me in the right direction. I certainly have a long way to go :)
  23. Replies
    5
    Views
    3,736

    Re: Validating a Float

    Thanks for the help. Much appreciated.

    Not trying to reinvent the wheel...im just a noob.
  24. Replies
    5
    Views
    3,736

    Validating a Float

    Hello all,

    I am trying to validate a float entered by a user. I think im on the right track with the code below.
    When I run the program I basically made a function that returns the bool goodnum...
  25. Thread: Input Validation

    by gloin
    Replies
    5
    Views
    2,796

    Re: Input Validation

    thanks again for the great help.
Results 1 to 25 of 29
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured