lukeme99's Profile User Rating: -----

Reputation: 0 Apprentice
Active Members
Active Posts:
85 (0.06 per day)
15-March 11
Profile Views:
Last Active:
User is offline Apr 10 2014 05:09 AM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

Icon   lukeme99 has not set their status

Posts I've Made

  1. In Topic: Small C++ Code Projects

    Posted 20 Jul 2013

    View Postlaraza, on 20 July 2013 - 11:42 AM, said:

    Can you also code in visual basic?

    No sorry.
  2. In Topic: How To Get Width Of Console?

    Posted 20 Apr 2013

    View Post#define, on 20 April 2013 - 02:24 AM, said:

    You could throw it to the user. Have a default of 80, and to change it have a config file or use an environment variable.

    Ahh! Good idea, thanks!
  3. In Topic: C++ program only asks for input doesn't input any numbers

    Posted 28 Feb 2013

    View Postnshah93, on 28 February 2013 - 10:52 PM, said:

    View Postmojo666, on 28 February 2013 - 03:41 PM, said:

    Oh, I see what you are trying to do. If you want to read it all in one go, you will have to make x a string. When x is an int, I am pretty sure something like "1 2 4 -9 0" would only store the 1 in x. When x is a string, you will have to loop through the characters and convert them to numbers one at a time. You could probably find a split or tokenizer function for this.

    hmm we havent learnt that in class yet, so i dont think I would be able to use that, is there anything simpler than that?

    Well, instead of just having x, you could have x1, x2, x3, x4 etc for how many numbers will be inputed. You can then use a cin like how you use cout for multiple outputs: cin >> x1 >> x2 >> x3 >> x4 >> x5; Then each space acts like a deliminator, so if you input 1 2 -1 3 0 then x1 = 1, x2 =2, x3 = -1, x4 = 3 and x5 = 0. You will need to improve your loop to account for the multiple xs, I think this would work:
    while (x1!=0){
         if (x1 >0){
         if (x1 <0){
        sum +=x;
    while (x2!=0){
         if (x2 >0){
         if (x2 <0){
        sum +=x;
    etc etc

    That should work for you now :)
  4. In Topic: Problem with finishing a C++ code.

    Posted 27 Feb 2013

    View Postjimblumberg, on 27 February 2013 - 09:08 PM, said:

    Why would you use a single character for a buffer? You would need an array of character for a buffer not a single character. In this instance there is nothing wrong with using the single char.

    It was a sort' hacky thing I discovered, I was creating a few logic gates (AND, OR, NOR etc) that relied on a char array to store the values of ints or characters (or bools), it was actually quite effective, only the AND gate would not work for some reason.

    I hope my "invalid" use of char doesn't offend you (._.)
  5. In Topic: Inverse kinematic solver for 3D space

    Posted 27 Feb 2013

    I have worked with IK programming before (in python actually, for Source FilmMaker). But I am a bit tired and your code is giving me a headache) I may look at it tomorrow.

My Information

Member Title:
D.I.C Head
16 years old
July 7, 1998
Years Programming:
Programming Languages:
C++, C, Lua, SourcePawn, Python

Contact Information

Click here to e-mail me



lukeme99 has no profile comments yet. Why not say hello?