Search found 28 matches

by villeballa89
Tue Sep 07, 2010 4:02 am
Forum: Programming Discussion
Topic: Homework help
Replies: 12
Views: 1797

Re: Homework help

I'm actually quite proud of myself for figuring that out before looking at this :P
by villeballa89
Tue Sep 07, 2010 1:01 am
Forum: Programming Discussion
Topic: Homework help
Replies: 12
Views: 1797

Homework help

So I'm taking Java this semester and my professor doesn't really cover much of the how to part of the language. Was looking for a little help. Here's the assignment: Instructions: Create a Java class, named Homework1, and a main method. Create a String literal, s, with the value of "Hello World...
by villeballa89
Fri Aug 20, 2010 4:04 am
Forum: Game Development
Topic: Txt based (dos) game
Replies: 5
Views: 1509

Re: Txt based (dos) game

I think I will try to post up progress here, since I need to get in the habit of documenting my work. ( I love organization but hate taking the time to organize). By text based RPG, I mean I mean trying a old school phantasy star style game except with text replacing the graphics. I figure that way ...
by villeballa89
Fri Aug 20, 2010 2:05 am
Forum: Game Development
Topic: Txt based (dos) game
Replies: 5
Views: 1509

Txt based (dos) game

Okay so I was in the shower thinking about game development (weird huh?) and how I should probably start practicing it and working on building a set of skills to use in the near future. Instantly, I was thinking about a ton of ideas on how to make a decent text based RPG, but quickly I became overwh...
by villeballa89
Tue Nov 11, 2008 3:04 pm
Forum: Programming Discussion
Topic: Pointer Question..... C++
Replies: 23
Views: 3511

Re: Pointer Question..... C++

if you don't mind, and have the time, I'd actually enjoy looking at a clone of mine being properly written. And like I said, I know it was nowhere near efficient so thanks for the tips.
by villeballa89
Tue Nov 11, 2008 11:46 am
Forum: Programming Discussion
Topic: Pointer Question..... C++
Replies: 23
Views: 3511

TicTacToe (finally finished)

Final version of my tictactoe, for anyone interested. The AI is no good (since it is absent) but the fun comes in trying to make O win. #include <iostream> #include <string> using namespace std; string spaces5 = " ";//time saver string& s5 = spaces5; string underscore5 = "_____&qu...
by villeballa89
Sun Nov 09, 2008 9:44 pm
Forum: Programming Discussion
Topic: Pointer Question..... C++
Replies: 23
Views: 3511

Re: Pointer Question..... C++

why do you want a list of references for tic tac toe. with the way I was writing it, it seemed like the most logical/ easiest way to go about doing it. Then again, that might just be the way I was thinking/ how my mind works. anyway, I went to using my original code (mainly cause I understood it) a...
by villeballa89
Sun Nov 09, 2008 9:10 pm
Forum: Programming Discussion
Topic: Pointer Question..... C++
Replies: 23
Views: 3511

Re: Pointer Question..... C++

ahh right..... hmm I see that it draws everything but, I can't really read it. the whole this->pointer I haven't really covered yet. and I deffinately don't know what this does: SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord); } still new to C++ so that may be why I'm not understand...
by villeballa89
Sun Nov 09, 2008 8:58 pm
Forum: Programming Discussion
Topic: Pointer Question..... C++
Replies: 23
Views: 3511

Re: Pointer Question..... C++

right, I understand about the one function part but, other than that, I'm lost. Did you mean your code was decent design or mine was?

anyway, does C++ allow an array of referances?:

Code: Select all

string& p[8];
p[0] = xy1;
by villeballa89
Sun Nov 09, 2008 7:09 pm
Forum: Programming Discussion
Topic: Pointer Question..... C++
Replies: 23
Views: 3511

Re: Pointer Question..... C++

nope still same error
by villeballa89
Sun Nov 09, 2008 6:19 pm
Forum: Programming Discussion
Topic: Pointer Question..... C++
Replies: 23
Views: 3511

Re: Pointer Question..... C++

string xy1 = " ";//top left answer string xy2 = " ";//top middle answer string xy3 = " ";...... string **p = (string**)malloc(2*sizeof(string));// get a pointer to a pointer *p[0] = xy1; *p[1] = xy2; *p[2] = xy3; *p[3] = xy4; *p[4] = xy5; *p[5] = xy6; *p[6] = xy7; *p[7]...
by villeballa89
Sat Nov 08, 2008 11:58 pm
Forum: Programming Discussion
Topic: Programming Terms
Replies: 84
Views: 22150

Re: Programming Terms

~scratches head~ that's not what it is??

well..... ~whistles like he knows anyway~
by villeballa89
Sat Nov 08, 2008 11:16 pm
Forum: Programming Discussion
Topic: Pointer Question..... C++
Replies: 23
Views: 3511

Re: Pointer Question..... C++

okay I think you answered my question. To clarify, I was basically asking if the user could select which variable to store their answer in, depending on their input. Say,(in the case of tictactoe) if they put 1 then square1 would be the variable that is changed or if they say 2 then square2 and so o...
by villeballa89
Sat Nov 08, 2008 7:14 pm
Forum: Game Development
Topic: aprentice looking for someone....
Replies: 1
Views: 744

aprentice looking for someone....

Okay, I'm trying to get into game development and I learn best by watching and seeing how something is done. I was wondering if anyone is working on a project that needs some gruntwork that would be easy to learn, just time consuming and therefor their current team doesn't want to do it. here's my q...
by villeballa89
Sat Nov 08, 2008 7:03 pm
Forum: Programming Discussion
Topic: Pointer Question..... C++
Replies: 23
Views: 3511

Pointer Question..... C++

Just wondering if I can use a pointer to take the input of a user and point to a different variable? Like if cin is 1 then the pointer goes to x and if its 2 it goes to y. If it's not pointers that I can do that with can someone tell me how?