Forum: C++ Jan 8th, 2004 |
| Replies: 8 Views: 6,740 MoveToEx(startoffilex+4,startoffiley+4);
LineTo(endoffilex-4,startoffiley+4);
LineTo(endoffilex-4,endoffiley-4);
LineTo(startoffilex+4,endoffiley-4);
LineTo(startoffilex+4,startoffiley+4);
... |
Forum: C++ Dec 23rd, 2003 |
| Replies: 8 Views: 6,740 Well, do you want to change the pictures themselves to have frames, or add frames around the pictures on your web page?
In the first case, you can create a bigger bitmap, and draw a frame around... |
Forum: C++ Dec 20th, 2003 |
| Replies: 5 Views: 8,147 Well, I prefer printf() to cout. If the guy wants, he can change printf() to cout, and scanf() to cin.
But they do the same thing, so it doesn't really matter. |
Forum: C++ Dec 20th, 2003 |
| Replies: 8 Views: 6,740 Let me get this straight:
You want a program that will take a picture, and output a new picture with frames?
If so, it should be fairly easy, I think. Just make a bitmap with a little space on... |
Forum: C++ Nov 3rd, 2003 |
| Replies: 5 Views: 8,147 What do you mean 3 users using your program? You're only going to have 1 user to your program, unless it's internet based.
If ya' mean 3 different inputs to teh program:
#include <stdio.h>... |
Forum: C++ Oct 14th, 2003 |
| Replies: 6 Views: 7,371 You only make something const(constant) if it's , well, constant. If you're going to change anything about it, or any sorts of funky errors pop up, you're better off not const-ing it.
I personally... |
Forum: C++ Oct 7th, 2003 |
| Replies: 4 Views: 9,374 I believe it's fflush(). I could be wrong, though.
If all else fails, I do something similar to this:
while ((input = getche()) != '\n' && length <= max_length) {
buffer[length] = input;... |
Forum: C++ Oct 7th, 2003 |
| Replies: 9 Views: 9,207 How bout' something like this:
int length(char *string) {
int blah = 0;
char *pointer = string;
while (*pointer++!=NULL) blah++;
return blah;
} |
Forum: C++ Sep 16th, 2003 |
| Replies: 11 Views: 48,823 It does strings, as in the character arrays. It doesn't do objects.
To get it to work, you have to do something like this:
char *string = "Hello. I am a string";
cout << right(string);
... |
Forum: C++ Sep 16th, 2003 |
| Replies: 4 Views: 3,058 No. You can't pick up programming skills from books, and games(especially 3D) require lots of programming skills. |
Forum: C++ Sep 15th, 2003 |
| Replies: 4 Views: 3,058 Well, if you want, I could cook up a console game, and you could learn from that. |
Forum: C++ Sep 15th, 2003 |
| Replies: 11 Views: 48,823 Left could be done by going:
char left(char *string) {
return string[0];
}
Right could be done like this: |
Forum: C++ Sep 15th, 2003 |
| Replies: 1 Views: 4,635 From my understanding of your post, it sounds like you want to get a 2D array of seats, add passengers, and sort em'.
A 2D array will be done something like this:
bool **array = new... |
Forum: C++ Sep 11th, 2003 |
| Replies: 2 Views: 3,309 Your first program is too big.
Something like:
#include <stdio.h>
void Swap(int *first,int *second) {
*first ^= second;
*second ^= first; |