Labdabeta 182 Posting Pro in Training Featured Poster

(-1)^k = 1 if k is even, -1 if k is odd so:

for (i=1; i<=N; i++)
{
    if (i%2==0)//if it is even
    {
        sum+=1.0/(i+1);//since i is your k, you just divide by i+1
    }
    else
    {
        sum-=1.0/(i+1);
    }
}

The rest is simply multiplying, then taking the square root.

Labdabeta 182 Posting Pro in Training Featured Poster

Hello, I was partaking in the global game jam (where you have to try to make a game in 48 hours). I got my game pseudo-finished, but I cannot get it to render the scene properly. Here is the code related to the rendering:

Code for opengl initialization:

glClearColor(0.5f,0.5f,0.5f,1.0f);
float ambLight[]={0.5f,0.5f,0.5f,1.0f};
glLightfv(GL_LIGHT1,GL_AMBIENT,ambLight);
glEnable(GL_LIGHT1);
LoadTextures();
glEnable(GL_TEXTURE_2D);
glShadeModel(GL_SMOOTH);
glClearDepth(1.0f);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
glHint(GL_PERSPECTIVE_CORRECTION_HINT,GL_NICEST);

Code for opengl drawing (called every frame):

glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(FOV,(double)winWidth/(double)winHeight,NEAR_RENDER,FAR_RENDER);
glMatrixMode(GL_MODELVIEW);
glViewport(0,0,winWidth,winHeight);
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
glRotatef(dty,1.0f,0.0f,0.0f);
glRotatef(dtx,0.0f,1.0f,0.0f);
glTranslatef(-x,PLAYER_HEIGHT_STAND, -y);
glBindTexture(GL_TEXTURE_2D,wall[level]);
glColor3f(1.0f,1.0f,1.0f);
//...
glBindTexture(GL_TEXTURE_2D,ground);
for (int yy=0; yy<mazeDimy; ++yy)
{
    for (int xx=0; xx<mazeDimx; ++xx)
    {
        glBegin(GL_QUADS);
            glTexCoord2f(0.0f,0.0f);
            glVertex3f(xx*WALL_LENGTH,FLOOR_HEIGHT,yy*WALL_LENGTH);
            glTexCoord2f(0.0f,1.0f);
            glVertex3f(xx*WALL_LENGTH,FLOOR_HEIGHT,(yy+1)*WALL_LENGTH);
            glTexCoord2f(1.0f,1.0f);
            glVertex3f((xx+1)*WALL_LENGTH,FLOOR_HEIGHT,(yy+1)*WALL_LENGTH);
            glTexCoord2f(1.0f,0.0f);
            glVertex3f((xx+1)*WALL_LENGTH,FLOOR_HEIGHT,yy*WALL_LENGTH);
        glEnd();
    }
}

I have a window showing a gray background (my clear colour) so I know that it set up properly, but for some reason I can't seem to get it to draw any of my quads. Any ideas?

Labdabeta 182 Posting Pro in Training Featured Poster

rand() does not have the range necessary. It only generates a random number between 0 and RAND_MAX (just output that number to see the necessary range). As such you have three options:

1) Write your own pseudo random number generator (wikipedia has some good articlos on them)

2) Download a better (than the standard library) random number library

3) Combine multiple calls to rand() (you could add them to a larger data type then do your standard operations, or come up with a less biased technique)

Just an aside, rand() is fairly random, but using modulo (%) to limit it will cause it to tend towards lower numbers. This is because while % works fine for most of the range, unless you % it by a number that it is perfectly divisible by, there will be a higher chance of it generating the lower numbers than the higher ones. EG if it generates a number from 1-10 then %2 works fine (5 chances to return 1, 5 to return 0), but %3 doesnt (3 chances to return 2, 3 chances to return 0, but 4 chances to return 1 :O)

Labdabeta 182 Posting Pro in Training Featured Poster

Yes, usually at the end of a line. It seems that when I hit enter sometimes it prints '\302' '\206' '\n' instead of just the newline.

Labdabeta 182 Posting Pro in Training Featured Poster

Hello, I am using Code::Blocks, and recently any time I try to compile any program I get the errors "stray '\302' in program" and "stray '\206' in program" about every 20-30 lines. I know how to fix these (by deleting the non printing character(s) in the line in question) but I don't know how to prevent them. Does anybody know what is causing this issue? I am using the dvorak keyboard layout which is being emulated by my OS (IE using the language tools rather than a hard wired keyboard), but this never used to happen with that. It is really annoying to have to go back through my code and delete the '\302' and '\206' instances (and by the way, deleting them takes me just 1 backspace per pair). I have a large project due in a couple of weeks with multiple files each with multiple thousands of lines of code, and I would like to know what is causing these strays before I start the project. Any help will be greatly appreciated. Thank you.

Labdabeta 182 Posting Pro in Training Featured Poster

Firstly, I notice a very obvious problem in your if-else-if statements in that you end with

else
    Code Statement 1;
    Code Statement 2;

Remembering that C++ doesn't care about whitespace you can rewrite that to be more clear on its function like this:

else
    Code Statement 1;
Code Statement 2;

Note that even if one of the if statements triggers, the last line will still be executed.

As for the search algorithm, all you really need to define is getAllMoves(array) and isDone(array), the rest is taken care of in the algorithm. Using an std::vector may help deal with getAllMoves.

Labdabeta 182 Posting Pro in Training Featured Poster

Line 113 of your header file does not match its declaration. You have an extraneous array parameter.

Labdabeta 182 Posting Pro in Training Featured Poster

Hello, I was wondering how to make the windows explorer popups that many programs use. I want the one that browses files to either open or save a file rather than requiring the user to blindly type the filename.

Labdabeta 182 Posting Pro in Training Featured Poster

Perfect! :)

Labdabeta 182 Posting Pro in Training Featured Poster

Ok, I read the links and I understand how to identify a window and how to copy the output of its device context. What I still do not understand is how to send virtual keysyms/mouse clicks/mouse movements?

Labdabeta 182 Posting Pro in Training Featured Poster

That is great for keyboard input... but what about mouse... I have clarified in my mind what I want a little more now. I want the following self explanatory functions:

WINDOW_HANDLE_TYPE getWindowBasedOnTitle(const char *title);
COLOUR_TYPE **getWindowOutput(WINDOW_HANDLE_TYPE wnd);
void sendKeySym(char key, WINDOW_HANDLE_TYPE wnd);
void setMouseXY(int x, int y, WINDOW_HANDLE_TYPE wnd);
void simClick(bool left, WINDOW_HANDLE_TYPE wnd);
Labdabeta 182 Posting Pro in Training Featured Poster

I looked through that, and it seemed to have what I was looking for in terms of reading the info of the window (I can get its coordinates on the screen then use getPixel on the area?) but it had nothing on how to send fake input to a window. Perhaps the broken link contained the info?

Labdabeta 182 Posting Pro in Training Featured Poster

I want to be able to make a program that emulates what a human at a computer can do. IE: I want to be able to read the visual information of a window (a 2d array of colour would be perfect) and be able to send virtual key syms and mouse movements to the window. Is this at all possible, and if so how is it done?

Labdabeta 182 Posting Pro in Training Featured Poster

Perfect, thank you!

Labdabeta 182 Posting Pro in Training Featured Poster

Hi, I am wondering if there is a somewhat simple way to output extended ascii values in c. Basically I am thinking actually about unicode characters, stored in ints. Is there an easy way to do this, or would it require a custom gui console?

Labdabeta 182 Posting Pro in Training Featured Poster

There are a lot of those primes out there, but generating them will undoubtedly be slow... especially if you want the really big ones. I would suggest A) looking into an arbitrary arithmetic library (so that you can handle epicly large numbers) then B) google for lists of large numbers, there are tons of them. You could then store them in an array and randomly pick one from it. Another option is to store an array of ints representing valid exponents for Mersenne Primes, then just generate the corresponding prime.

Labdabeta 182 Posting Pro in Training Featured Poster

I did some boolean logic and came up with what seems like a faster solution (and simpler):

bool x_in_range=(m1.min.x<=m2.max.x)&&(m1.max.x>=m2.min.x);
//now using good old boolean logic:
bool x_not_in_range=(m1.min.x>m2.max.x)||(m1.max.x<m2.min.x);//later to be rearranged to use > on both sides
//this can be done to all of the values leading to this:
if (x_not_in_range||y_not_in_range||z_not_in_range)
    return false
//since all not_in_range's are composed entirely of || and the final concatenation is done entirely by use of || a statement can be made entirely out of ||
if ((m1.min.x>m2.max.x)||(m2.min.x>m1.max.x)||
(m1.min.y>m2.max.y)||(m2.min.y>m1.max.y)||
(m1.min.z>m2.max.z)||(m2.min.z>m1.max.z))
    return false;//no collision
else
    return true;//collision

I just want a double-check of my work at this point, but it seems like my original solution works, only backwards :P

Labdabeta 182 Posting Pro in Training Featured Poster

Does this work... it seems far too simple:

 if ((m1.min.x>m2.max.x)||(m2.min.x>m1.max.x)||
    (m1.min.y>m2.max.y)||(m2.min.y>m1.max.y)||
    (m1.min.z>m2.max.z)||(m2.min.z>m1.max.z))
        return true;//there was a collision
 else
        return false;//there was no collision
Labdabeta 182 Posting Pro in Training Featured Poster

That is my problem, I have no idea where to start, I just can't figure out how to approach it. So far my idea has been to check the four corners and see if any of the corners is within the other box. I also thought about maybe checking for collision across two dimensions at once... I am just lost in the dealing with the third dimension part.

Labdabeta 182 Posting Pro in Training Featured Poster

I have two bounding boxes defined by the following values:

m1.min.x;//the min x value of model 1
m1.min.y;// "   "  y   "    "   "   "
m1.min.z;// "   "  z   "    "   "   "
m1.max.x;// "  max x   "    "   "   "
m1.max.y;// "   "  y   "    "   "   "
m1.max.z;// "   "  z   "    "   "   "
m2.min.x;// "  min x   "    "   "   2
m2.min.y;// "   "  y   "    "   "   "
m2.min.z;// "   "  z   "    "   "   "
m2.max.x;// "  max x   "    "   "   "
m2.max.y;// "   "  y   "    "   "   "
m2.max.z;// "   "  z   "    "   "   "

I know that the form is gonna look something like this:

if (a&&
    b&&
    c&&
    //...
    )
{
    //there is a collision
}

I did this in 2d without a problem at all, but now I am in 3d and I am completely out of my element. Any point in the right direction would be helpful.

Labdabeta 182 Posting Pro in Training Featured Poster

I think that if you break this problem down it will be much easier. You want the median of one row, so you can isolate it, and possibly pass it to a median function. Then all you need to write is this:

float calculateMedian(float data[], int datalen);

This function will be easier to write then trying to muttle around multiple dimensions.

Labdabeta 182 Posting Pro in Training Featured Poster

You are probably right, you might need to use both... luckily c++ provides fstream.h which is a combination of ifstream and ofstream. If you are just outputting to the screen though you can just use the ofstream object cout provided in iostream.

Labdabeta 182 Posting Pro in Training Featured Poster

How do you intend to compare a string to a single character? An overloaded operator does not seem valid there. Perhaps create some kind of areEqual function instead. My guess is that you have made a logic error in that you are trying to compare two variables of different types (very different types).

111100/11000 commented: I changed from "string plaintext" to "char plaintext" and it works.Thnx +0
Labdabeta 182 Posting Pro in Training Featured Poster

I like what triumphost said. Basically he understands that the only way to 'wow' my friends is to do something neat that they would consider a hack (IE: the %0|%0 trick). Normally I wouldn't care what they think, in fact I still don't. But they tell their parents about me a lot. Some of their parents include the finance minister of canada, the owner of molson canadian breweries, the owner of some large software firm (don't know what its called). When these kids go home to these important people and say that I can't program well (because the only thing they consider to be good programming is remotely hacking onto somebody's computer and doing something to it) it reflects poorly on me. I don't care what my friends think, but what their parents think is often important to me. Most things I know how to do are in batch EG:

The trekky prank. Create a file in the system (system32 or sysWow64) and name it self.bat then fill it with this code:

@echo off
IF NOT "%1"=="sequence" GOTO QUIT
IF NOT "%2"=="1" GOTO QUIT
IF NOT "%3"=="code" GOTO QUIT
IF NOT "%4"=="1-1-A" GOTO QUIT
ECHO SELFDESTRUCT SEQUENCE INITIATED. SELFDESTRUCT IN T-60 SECONDS!
FOR %%I IN (55 50 45 40 35 30 25 20 15 10) DO CALL wait.bat 10000 ECHO. ECHO ONLY %%I SECONDS REMAINING...
FOR %%I IN (9 8 7 6 5 4 3 2 1) DO wait 1 ECHO. ECHO %%I SECONDS REMAINING!
ECHO TIMEOUT
shutdown /s …
Labdabeta 182 Posting Pro in Training Featured Poster

Whenever I tell anybody under the age of 20 that I am a programmer, they always ask the same question sooner or later: "Can you hack my computer." I tell them that even if I could I wouldn't. They follow up by telling me to just make a pop-up or something. When I tell them that I can't because I don't know how they tend to think that I am a bad programmer. I don't care too much about that, but now I am getting ready to get a job (going into co-op at waterloo) and since I went to a private school that was more expensive than university, a lot of my friends' parents may very well become my future bosses (I am not kidding, if you need proof I can give it). Basically I want to be able to prove my 'programming prowess' by at least maybe launching a pop-up window, or running a dll command (like shutdown with a long time delay, followed by a deactivation [something I know how to write in batch]) When I started doing research into it I found that most people only offer 'hacking tools', preprogrammed software that merely gives you control over other's computers and then you can play with their mind. This is not what I want. I want to be able to do what I think best suits my needs (usually that would be a pop-up window with a clever message). I want to be able to program a …

Labdabeta 182 Posting Pro in Training Featured Poster

There are a number of issues with your code. The first one is merely for clarity and speed. Basically the isValidCharacter function can be 1 line:
state

return ((c>='A' && c<= 'Z') || (c>='a' && c<='z') || (c>='0' && c<='9') || (c=='.') || (c=='-') || (c=='+'));

Thus removing the if statement.

Your problem though lies in your loops. For example the following loop:

for (s; s<=emails.length; s--)

Unless s is greater than the emails.length this loop will not work as expected. Instead of counting down to 0 (for (s;s>=0;s--) 543210) it counts down to a number greater than it: 543210-1-2-3-4-5...-n+n... basically, until the int type wraps around to be greater than emails.length your loop will not terminate! You correct this using a break statement, but that is considered very poor programming practice!

I have no idea what you are getting at in lines 68 to 72, but I would definately suggest that it is your problem. You should usually not change the iterator character in a loop. If needed make a temporary copy of it instead.

line 78 is redundant, and another bad usage of the break statement. Put it this way, the break statement is only truly valid is switch statements (at least as far as I can think of off the top of my head, I love to be proven wrong).

I would suggest making your code confirm to proper programming pratices and then reposting if you can't solve the problem yourself. You …

Labdabeta 182 Posting Pro in Training Featured Poster

I find that nobody really uses preprocessor properly (aside from include statements of course). In fact they can almost always be removed completely since most IDEs have solid search/replace functionality (which is basically all that the define statement is). It is a lot faster to notice that you are typing a few things repeatedly, plug in an identifier for it (I usually use invalid C++ syntax) then find and replace. Here is an example for a char by char hello world program:

source:

int main()
{
    //~1~~2~//copy and paste this 12 times!
    ~1~h~2~
    ~1~e~2~
    ~1~l~2~
    ~1~l~2~
    ~1~o~2~
    ~1~ ~2~
    ~1~w~2~
    ~1~o~2~
    ~1~r~2~
    ~1~l~2~
    ~1~d~2~
    return 0;
}

Then you just hit CTRL-R (typical short-cut for replace) and type in replace ~1~ with cout<<' and replace ~2~ with '; These are even more versatile in many ways than a preprocessor because they have no ties to syntax at all!

I do notice that find-replace lacks that functional ability of macros however... but MS Word has a sick find and replace (it can be function and self modifying!) it should not be too long before such search capabilies are made standard on most IDEs.

Labdabeta 182 Posting Pro in Training Featured Poster

Also it didn't work because it was an example, it just so happens that you type is called Type, but you should have noticed that I was making an example by the variable names. You need to think to program. It is always tempting to copy and paste, but don't do it. Learn the concept, understand it, then apply it. Even if you find a section of useful code that you can copy and paste and it works, you will find yourself constantly searching for the example every time you need it. If you learnt what the example was trying to say then you could recreate it in seconds flat.

Labdabeta 182 Posting Pro in Training Featured Poster

I will help you out with what I can see from a quick glance. #1: Your vector stores generic 'Type' variables, so unless all of your vectors are vector<int> then you need your push_back function to take a Type value. Also you make a critical error that I used to make all the time with dynamic memory allocation. Here is how to do it properly:

Type *tempArray=new Type[arraySize];
for (size_t i=0; i<arraySize; ++i)
    tempArray[i]=sourceArray[i];//up until here we did the same thing
tempArray[arraySize++]=newValue;//this is pretty simple, you increase the array size, but return the old size to the [] operator, basically appending the value AND updating the size variable.
delete[]sourceArray;//we don't need it anymore
//here you re-allocated sourceArray and copied tempArray to it. You do not have to do it
sourceArray=tempArray;//now since the pointers are equal sourceArray will contain the contents tempArray.

You would think that since tempArray is about to go out of scope sourceArray will be invalid... you would be right if it was sourceArray=&tempArray because it is true tempArray will be deleted. The thing is that tempArray stores 1 int, corresponding to the location in memory of the array. That int is also in sourceArray. As such it still holds the same data as before!

Labdabeta 182 Posting Pro in Training Featured Poster

To make anything rotate from upright to on its side just flip column/row values.

Labdabeta 182 Posting Pro in Training Featured Poster

I have tried other IDE's before (including VS/VBC++/Eclipse/Notepad++) and I just don't like them, I find I cannot properly program in them. I would however be agreeable to a change in compiler/debugger .exes. Is there any debugger program that just understands that a vector is an array and we don't care about the internal pointers, or for that matter that a string containing "Hello, World" should be displayed as "Hello, World", not as <internal_data_pointer> <no entries> or whatever it says.

Labdabeta 182 Posting Pro in Training Featured Poster

I wrote this program because I often am asked by people that know that I like to make games to make just a quick simple game for some reason or another. I always make a simple text based adventure game (like Zork, but simpler) and they are usually happy with it. Well, about 7 hours ago I was asked to make a game for somebody's birthday tomorrow, so naturally I started making yet another text based adventure game. Suddenly I realized that I basically had the code to make one of these games memorized... so I decided that enough is enough. That is how this program came to be. Here is a test file I wrote that displays how to make text based adventure games super quick:

MENU
This is a test!
Goto Win
WIN
Goto Lose
LOSE
~~~~~~~~~~~~~~~~~~~
WIN
You win! Play Again?
Yes!
MENU
No...
END
~~~~~~~~~~~~~~~~~~~
LOSE
You lose... play again?
Yes!
MENU
No...
END
~~~~~~~~~~~~~~~~~~~
END
-------------------

I will post any games that I make here (those that are not personal that is) and you can do the same. Also if you want me to make any improvements to my code, or add any features, just ask. This is one of the best kept projects I have made so far since it is basically the first one that I was able to just write, top-down, without having to make any corrections. Enjoy.

Labdabeta 182 Posting Pro in Training Featured Poster

I have been having this problem since I started using stl containers awhile ago. Basically, when I debug them with the default Code::Blocks MinGW debugger I find that it gives far too much irrelevant information such as iterators and other 'behind-the-scenes' stuff. I can make it better by telling it to watch it as an array, then t just shows the data. But now I have a vector of vectors of decent sizes, and right clicking each one and telling code::blocks to watch them as an array is just not something that I am going to do. Anybody know how to make the default Code::Blocks MinGW debugger treat stl containers like normal arrays/strings?

Labdabeta 182 Posting Pro in Training Featured Poster

I like that last suggestion, thanks!

Labdabeta 182 Posting Pro in Training Featured Poster

Hello, It has been awhile since I have posted here since I have been horribly without computer for awhile now. Anyways, I was wondering if anybody knew where to find, or could make up, a lorem ipsum in C++. What I mean is that Lorem Ipsum makes a good filler text for websites and brochures, but what if you wanted filler C++ code instead? Does anybody know where I could find such a thing?

Labdabeta 182 Posting Pro in Training Featured Poster

Ok, I finally have my laptop in my hands, but there is one slight issue... the intel 4000 graphics card is very poor. Do you know any way to improve the graphics capabilities of a laptop?

Labdabeta 182 Posting Pro in Training Featured Poster

I never thought of doing that! That is very clever! Thank you!

PS: I will not mark this thread as solved until the problem is solved, IE: until my computer is up and running, but thank you for all your help!

Labdabeta 182 Posting Pro in Training Featured Poster

I don't see why you configured two hard drives

The dual hard drives thing is just something I am used to. My school made a dual-partition on our drives at the network (IE: we would have to be on the school network to change it) I got used to the idea of a C:\ drive for programs and a D:\ drive for files.

As for your parts, I assume they'd work (specwise they work)

Specwise is all I need for now. A friend of my father's puts computers together for a living, he will tell me if my computer will be fully compatible (my main concern is whether it will fit properly into the chasis).

don't necessarily dislike XPS's altogether

I won't

Thank you so much for your help. I will now prepare to buy the parts I need and put them together. Unless my father's friend points out some serious flaw in my parts I should be good to go.

Labdabeta 182 Posting Pro in Training Featured Poster

I am mostly worried that I will get all of the parts that I listed for the desktop, I'll try to put them together and they won't work, or I will be missing something. Would those parts work to make a fully functional computer?

Also, here is what I interpreted as your laptop suggestion, with some slight modifications, is it good?

Thinkpad T430:

  • Intel Core i5-3320M
  • Windows 7 Professional
  • XP Mode english
  • 1600x900 LED Monitor
  • Intel HD Graphics 4000
  • 4GB RAM
  • Camera + Microphone (my parents want to be able to skype me)
  • 500 GB 7200 RPM HDD
  • 320 GB 7200 RPM 2HDD
  • 9 Cell Battery
  • Intel Centrino Ultimate Wireless Card (for poor internet speeds speckled throughout most schools)
  • MS Office Home & Student
  • Kensington Twin Head Cable Lock

Thank you so much for your help!

Labdabeta 182 Posting Pro in Training Featured Poster

Here is the issue, at least what I understand of it based on a preliminary review of your code. Basically, in the handle_input function, you declare a new event, but you do not set it to anything. It is going to be filled with whatever is left on the stack, or 0 depending on your compiler. What you need to do is somehow send it the same event object that recieved the call to SDLPollEvents. Judging by your style of code, I would suggest making a global sdl event.

While I am on your style of code, I feel inclined to tell you that your extensive use of globals is not generally considered good practice. Instead of a bunch of globals, maybe create a control object like this:

class Control
{
    private:
    //your globals here
    int exampleInt;
    SDL_Event exampleEvent;
    public:
    Control();//here you could set up SDL?
    ~Control();//here you could clean up your mess (close SDL, free surfaces, delete memory, whatever)
    int getInt(){return exampleInt;}
    void setInt(int val){exampleInt=val;}
    SDL_Event getEvent(){return exampleEvent;}
    void pollEvent(){SDL_PollEvent(&exampleEvent);}
};

Hope this helps!

claywin commented: Thanks! This was very helpful! +0
Labdabeta 182 Posting Pro in Training Featured Poster

I am going to be near a Canada Computers store shortly... can you at least post back telling me if that desktop will be the sweet spot gaming performance machine that I was aiming for?

Labdabeta 182 Posting Pro in Training Featured Poster
Labdabeta 182 Posting Pro in Training Featured Poster

Thank you very much. I told my father about what you suggested and he had some good ideas for cheaper computing that would still make me happy. Basically, he pointed out that all the 'new, sweet, awesome' games I would only need to play on the desktop. The laptop only needs to run the simple games that I like. Basically I have modified my view such that I am looking at likely getting a gaming desktop, like the one you suggested as well as a simple laptop, probably a dell since I trust and like dell. I will reply back with specs as soon as I find them.

Labdabeta 182 Posting Pro in Training Featured Poster

I understand what you are saying, my only concern is the lack of support that I would get with a desktop, though I do know how to fix most computer issues. I guess my biggest concern is that I am not very knowledgeable with where/what to buy. Basically I want to be able to play all the latest games if I wish. At school all I want to be able to do is play games from now on low settings without lag. Writing/compiling code should not be a major problem once my computer is capable of gaming, right? I would like to have access to my 'home' computer files from school. As such is there anything in particular that you would suggest for my computer? (A cheat sheet like the one in your 4th post would be excellent, links to specific parts would be even better, anything would be helpful)

Another thing that I have to keep in mind is time. I need this computer before I go to school, but more importantly I am going to france in about a month, and I would like to have this computer by then. As such a laptop seemed ideal since it would arrive quickly and be perfectly portable (I can easily take a 7 pound weight, just to test it out I put one in my backpack over the last few days, barely noticed it!) Thank you for your help!

Labdabeta 182 Posting Pro in Training Featured Poster

I took your advice and made a new list, it is attached. A few things that I did not change were:

  • I did not get rid of MSOffice suite. This is because my program is a co-op program and while I am on the job I may very well need/wish to use MSWord/Excel. Also my e-mail is compatible with MSOutlook, which is familiar.

  • I kept the Professional version of windows, since it has XP mode. I do not need ultimate since it really doesn't provide anything extra that I would use.

  • I also was not sure if I perfectly understood what you said about the OS Drive. I took what you said to mean chose the default option "None"

Thank you for your help!

PS: My old Dell Latitude D630 is just about dead! Its hard drive is shot and its CPU is dying because its fan is broken. I have no warranty on it either since it is 4 years old. Basically, the sooner I get my new laptop the better!

Labdabeta 182 Posting Pro in Training Featured Poster

Print June 2012 to screen would be this, no?

cout<<"June 2012";
Labdabeta 182 Posting Pro in Training Featured Poster

I like my code compact, and consistent without too many files and well aligned code. I also gravitate to c-style code like this:

MyGoodHeader.h:

#ifndef MGH_H
#define MGH_H

///@brief Puts the drawing cursor at a specific point in two dimensional space.
/**
    This sets the raster position to the specified coordinates.
    @param x The x-coordinate
    @param y The y-coordinate
    @return 0 unless an error occured.
*/
myErrorEnum goToXY(int x, int y);//X and Y are related, so they go on the same line
TODO document this function!
myErrorEnum drawModel(myModelStruct model,
                      myWindowStruct wnd,
                      myDrawingModeEnum mode);//I hope this ligned up correctly. A monospace font is a must!

 #endif

That should give you an idea. I also cannot stand lines over 80 characters long unless they are absolutely necessary.

PS: What font is used in the code section. I like it.

Labdabeta 182 Posting Pro in Training Featured Poster

Ok, I was bored so I put together what I was going to make and put it into a nice little ASCII table. It is attached. What do you think? My only concern is that Adobe CS6 is going to be super expensive, but I hope that as a student I can get one of their student deals?

Labdabeta 182 Posting Pro in Training Featured Poster

I have a question. I have a pretty good understanding of just how big files are, but I do not know how fast I make files. How much total memory storage would you suggest?

Labdabeta 182 Posting Pro in Training Featured Poster

Thank you for your input. I am now seriously considering a sager notebook over a remote desktop (though remote desktop is still in my mind). When it comes to mouse and keyboard I am good to go, I have modified a nice slim logitech keyboard to have the dvorak layout along with a QIDO to use it with and I have a razer naga epic gaming mouse. I want to be able to both play games and make games, as well as whatever I need to do in my software engineering class. I will post back if I make up my mind on exactly what to buy.