User Profile

Collapse

Profile Sidebar

Collapse
tnga
tnga
Last Activity: Nov 12 '07, 04:30 PM
Joined: Jul 3 '07
Location: BRAZIL
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tnga
    replied to Making my own Sleep() function
    in C
    LOL, that's cool!!!!...
    See more | Go to post

    Leave a comment:


  • tnga
    replied to Factorial..
    in C
    That's a recursion, dude...
    it goes recursioning until x=0
    then it prints and come back
    since you have myfun(--x), x is decremented before the function is called... That's why you have two zerous and no five...

    Best regards,

    TNGA...
    See more | Go to post

    Leave a comment:


  • I suggest SDL with OpenGL.
    You can make a really nice 2D RPG using it and won't have too much trouble...
    Trust me.

    It is nice for you to learn DirectX if you really want to go into games programming...
    But i suggest starting with SDL or even Allegro and then go to DirectX or OpenGL.

    Best regards,

    TNGA
    See more | Go to post

    Leave a comment:


  • tnga
    replied to Programming Ideas
    in C
    Try Allegro or SDL......
    See more | Go to post

    Leave a comment:


  • tnga
    replied to i need help
    in C
    I'm sorry, I'm a little sleepy today, I didn't read this part of your post. =X
    I totally agree with you.

    Regards,

    TNGA....
    See more | Go to post

    Leave a comment:


  • tnga
    replied to i need help
    in C
    He said he need help and not someone to do his homework for him... And this totally fits the purpose of the forum. Maybe we are seeing too much people asking for working code, but that's not his case...

    Dude, you mean copy, cut and paste like in word processors?
    Please explain in more detail your assignment.

    Regards,

    TNGA...
    See more | Go to post

    Leave a comment:


  • tnga
    replied to What is my teacher asking for? Matrices...
    in C
    maybe start here

    Matrices
    See more | Go to post

    Leave a comment:


  • tnga
    replied to Open file fopen() and print values
    in C
    Hey, dude, I like the game....
    But Wolvek never came back... =O
    See more | Go to post

    Leave a comment:


  • tnga
    replied to Open file fopen() and print values
    in C
    What about an "h" ? =O...
    See more | Go to post

    Leave a comment:


  • tnga
    replied to throw an exception in code
    in Java
    Dlangdaman,

    Is that a requirement in your execise lab to use exceptions?
    If not, I suggest you wait for your teacher to teach exceptions in class...

    Regards,

    TNGA
    See more | Go to post

    Leave a comment:


  • tnga
    replied to Strings Manipulation
    in C
    I understand what you mean, and as I wrote on the reply, that was the case to ask what was your intention, because many times it happens to me to try to solve things on the bruteforce while I can do it more time-wisely.

    But as you are looking forward to learn and it will sure be useful in the future it will be really nice that you build the program.

    Well, i would suggest you to use fscanf instead of fgets, since with...
    See more | Go to post

    Leave a comment:


  • tnga
    replied to throw an exception in code
    in Java
    Well, maybe he/she is doing homework and there is a specific requirement on using exceptions. Even when the result doesn't require that, teachers may ask to use exceptions, so that students would practice.
    Even though not using exceptions would resolve his/her problem, it would be very nice for him/her to learn it anyway...

    Best regards,

    Thiago...
    See more | Go to post

    Leave a comment:


  • tnga
    replied to what happens when you restart the compiler?
    in C
    I may be wrong, but I guess the IDE is throwing different parameters to the compiler in each case. However I don't know why the errors wouldn't occur on both cases. What kind of errors are those?

    Regards,

    Thiago
    See more | Go to post

    Leave a comment:


  • tnga
    replied to Strings Manipulation
    in C
    Can I ask you something? Please don't take me wrong...
    But if you need to do that, why don't you use MS Excel or OpenOffice and open the file on a spreadsheet?
    If you don't really need to make a software for that, if you are only interested on the final result, that's what I personally would do if I were you.

    Regards,

    Thiago
    See more | Go to post

    Leave a comment:


  • tnga
    replied to How to Access upper triangular Matrix elements
    in C
    What's the answer? Please share...
    See more | Go to post

    Leave a comment:


  • tnga
    replied to How to Access upper triangular Matrix elements
    in C
    Yes, that's what i understood after your reply...
    I guess there must be something like dividing and using the rest of divisions between the position you want to get (index on B) and the length of the lines in the matrix...
    I know it's wrong, but i guess it's something like this:

    B[index]=a[index%n][i-index%n]

    using a nxn size matrix.

    Sorry, I can't help you very much on this. Just guessi...
    See more | Go to post

    Leave a comment:


  • tnga
    replied to How to Access upper triangular Matrix elements
    in C
    You mean the up-right corner? So that's half the matrix...
    All you have to do is to read the lines of the matrix and everytime you read a line, start reading the next line one columm to the right. All you have to do is to write the values in array B in sequence. Did I understand correctly?

    Regards...
    See more | Go to post

    Leave a comment:


  • tnga
    replied to Open file fopen() and print values
    in C
    Oh, dude, this is so cool!!!
    That's why I love this site!
    I think I know the answers! Lol
    See more | Go to post

    Leave a comment:


  • tnga
    replied to throw an exception in code
    in Java
    It is killing the app because you are throwing an exception and never catching it. When you throw an exception java searchs for a catch statement that catches that exception...
    You should place your "if (grade >100 || grade < 0)" comparison inside a try { } statement and then inside a catch { } statement treat the exception as you wish... for example printing "Invalid grade" on the screen.

    I hope that...
    See more | Go to post

    Leave a comment:


  • tnga
    replied to Open file fopen() and print values
    in C
    Yes, you'd better try to learn something new. How about reading some tutorials?
    I gave you the road to track after you said it was too difficult. After that you said you've tried everything but it hasn't passed enough time for a normal being to search stuff and read.
    So, I keep my advice on trying to search and learn that stuff.

    Best regards,
    TNGA...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...