Search:

Type: Posts; User: Toonzaka

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,178

    Get/Set Function Help

    I am writting some code and wish to use a get/set for a class variable. This variable will be used within the main(), and also internally within the class. Here is some syntax to better explain the...
  2. Replies
    2
    Views
    1,660

    I see... Since the test value will remain if...

    I see... Since the test value will remain if declared as a pointer, I want to know what happens to the mutex class which is called... Will the class also be destoryed, and if so do the pthead calls...
  3. Replies
    2
    Views
    1,660

    Class Scope & Locking question

    Alright I am going in circles here and cannot find a definitive answer to my question online... I have the following classes...

    Class A:


    #include classB.h;

    classA :
    {
    public:
  4. Thread: Ada Language

    by Toonzaka
    Replies
    1
    Views
    1,027

    Ada Language

    I have an Ada related question. I was wondering where I could post it on this forum?
  5. Replies
    8
    Views
    1,272

    Hah so obvious, thank you...

    Hah so obvious, thank you...
  6. Replies
    8
    Views
    1,272

    C++ declaration question

    I was reviewing some code that a friend of mine wrote and was wondering what exactly this declaration did...


    (This is only a snippet)


    bool x;
    bool y;

    x = y !=0;
  7. Replies
    4
    Views
    4,345

    For my real application I do not have to worry...

    For my real application I do not have to worry about return types they are already set up within the function that will be doing the processing.

    But its good to know that I can do that! Thanks...
  8. Replies
    4
    Views
    4,345

    Return Type

    As I mentioned the syntax might not be exaclty correct... The return type is an int. Also I understand definition and as mentioned I have researched this enough to have seen the definition plenty of...
  9. Replies
    4
    Views
    4,345

    "this" keyword question

    Hello all and thanks in advance for reading!
    I have been playing around with classes and now want to dive in the 'this' keyword. I have been looking over the internet and I cannot get a good...
  10. Replies
    10
    Views
    1,215

    You are never reseting second so it will never...

    You are never reseting second so it will never get past 1 minute...

    After 59 seconds minute + 1? Nothing is setting equal. Look over your code its all simple mistakes. Also you do know about the...
  11. Replies
    9
    Views
    2,009

    Alright my bad; maybe next time instead of being...

    Alright my bad; maybe next time instead of being snarky with me you should just answer my question and correct me. I am sorry that I did not see my typo. I understand the concept so thank you for...
  12. Replies
    9
    Views
    2,009

    How is it always true when i is being...

    How is it always true when i is being incremented? Maybe I should specify that direction will either be 1 or -1

    so for instance if direction is -1...

    i = 2
    check i >= 1 || i <= 3 YES
    "run...
  13. Replies
    9
    Views
    2,009

    Quick and simple Yes/No question

    Hey all really quick question...

    I tried doing this...

    for(i = 2; i >= 1 || i <= 3; i += direction)

    can I do that boolean operation right within the for loop. It compiles ok but I forget if...
  14. Replies
    3
    Views
    888

    Quick Pointer Question

    Hey all quick pointer question that I am not understanding...

    The following is a quick code snippet of my full program.



    void main()
    {
    **CODE**
    int array[] = {10,20};
  15. Replies
    4
    Views
    1,213

    String, Chars, and Arrays Oh my (confusion)

    I am writing some code and I am getting stuck, here is the snippet.


    int j = 1;
    char r[7];

    if(j=1)
    r = "Degrees";
    else
    r = "Radians";
  16. Replies
    3
    Views
    1,559

    Cant Find Error

    Hi, I am fairly new to C and have been teaching myself the language for now in prep. for the class I am taking in the Fall. I have been writing a prgram for my girlfriend and have encountered a...
Results 1 to 16 of 16