Forum: C++
May 19th, 2005, 4:22 PM
|
|
Replies: 24
Views: 736
|
Forum: C++
May 17th, 2005, 6:29 PM
|
|
Replies: 18
Views: 418
|
Forum: C++
May 17th, 2005, 11:57 AM
|
|
Replies: 18
Views: 418
|
Forum: C++
May 16th, 2005, 5:28 PM
|
|
Replies: 24
Views: 736
|
Forum: C++
May 16th, 2005, 11:49 AM
|
|
Replies: 18
Views: 418
at the university of california, the dietels'...
at the university of california, the dietels' book is used for c++.
it's a good, and very complete book, but a lot of stuff is not in the best order for learning. when i took c++ at the uni, we...
|
Forum: C++
May 12th, 2005, 8:09 PM
|
|
Replies: 11
Views: 402
|
Forum: C++
May 12th, 2005, 5:06 PM
|
|
Replies: 11
Views: 402
how about:
byte...
how about:
byte something=0;
do{cout<<char(something++);}while(something);
that should end when 11111111 gets incremented, i think.
anyone have a more optimized way?
|
Forum: C++
May 12th, 2005, 3:48 PM
|
|
Replies: 11
Views: 402
you can also do this using bytes, iterating the...
you can also do this using bytes, iterating the bytes, and outputing them by casting them as chars. something like this
byte someThing=0;
for(int x=0; x<256; x++)
{
cout <<char(byte);
byte++;
}
of...
|
Forum: C++
May 10th, 2005, 1:21 AM
|
|
Replies: 27
Views: 571
|
Forum: C++
May 7th, 2005, 4:44 PM
|
|
Replies: 27
Views: 571
|
Forum: C++
May 2nd, 2005, 4:36 PM
|
|
Replies: 4
Views: 204
do it d&d style
if you ever played, you would...
do it d&d style
if you ever played, you would remember how they'd have weighted probabilities based on using several dice at once. for example, using a certain weapon might de 2d4 damage, meaning...
|
Forum: Community Introductions
Apr 26th, 2005, 6:46 PM
|
|
Replies: 13
Views: 240
|
Forum: C
Apr 25th, 2005, 12:09 PM
|
|
Replies: 22
Views: 469
when i was taking c++ in school, i was taught...
when i was taking c++ in school, i was taught that c++, by design, is a superset of c, which is to say that it contains ALL of c, plus more. and that any valid c code will compile as c++.
is this...
|
Forum: C
Apr 22nd, 2005, 1:46 PM
|
|
Replies: 10
Views: 357
|
Forum: C
Apr 22nd, 2005, 1:43 PM
|
|
Replies: 10
Views: 357
2^16=65536
65536/2= 32768
since ints can be...
2^16=65536
65536/2= 32768
since ints can be negative, the range is -32767 to 32768, apparently, on your compiler.
it's weird that an int on your system is only 2 bytes, but there is your problem....
|
Forum: C++
Apr 21st, 2005, 11:15 AM
|
|
Replies: 5
Views: 199
|
Forum: C++
Apr 21st, 2005, 11:03 AM
|
|
Replies: 6
Views: 310
|
Forum: C++
Apr 20th, 2005, 6:28 PM
|
|
Replies: 21
Views: 397
i like char*, myself. it makes more sense to...
i like char*, myself. it makes more sense to me.
i like to think of a char* as a separate data type.
but then again, i put my opening braces on the next line for symmetry, which we can also...
|
Forum: C++
Apr 20th, 2005, 1:28 PM
|
|
Replies: 6
Views: 310
|
Forum: C++
Apr 19th, 2005, 6:55 PM
|
|
Replies: 6
Views: 310
malloc and new
i was wondering how you all feel about using malloc in C++ coding.
let's say i ask the user how many people there are in his neighborhood, and input int numberofNeighbors, for use with some neighbor...
|
Forum: C++
Apr 19th, 2005, 6:30 PM
|
|
Replies: 4
Views: 219
i don't have time to help you much, but let me...
i don't have time to help you much, but let me suggest the following.
every once in a while, write a status line to a flat text file. then, execute the program. read the output file to figure out...
|
Forum: C++
Apr 19th, 2005, 6:26 PM
|
|
Replies: 12
Views: 243
|
Forum: C++
Apr 19th, 2005, 6:21 PM
|
|
Replies: 12
Views: 243
i'm sorry i don't understand exactly what you...
i'm sorry i don't understand exactly what you mean, but is there a problem with just following this pseudocode:
float p(float, float);/ /function prototype
float a=0;// initial value of a
float...
|
Forum: C++
Apr 18th, 2005, 3:31 PM
|
|
Replies: 6
Views: 226
|
Forum: C++
Apr 18th, 2005, 1:37 PM
|
|
Replies: 6
Views: 246
|
Forum: C++
Apr 18th, 2005, 11:18 AM
|
|
Replies: 31
Views: 775
|
Forum: C++
Apr 17th, 2005, 5:50 PM
|
|
Replies: 11
Views: 249
|
Forum: C++
Apr 16th, 2005, 12:38 PM
|
|
Replies: 8
Views: 227
here's some simple code for the structure. it...
here's some simple code for the structure. it will accept any type of two-argument, one-operator math, separate it into its tokens, and then math the hell out of them.
hope it comes out alright...
|
Forum: C++
Apr 16th, 2005, 12:56 AM
|
|
Replies: 8
Views: 227
|
Forum: Coder's Corner Lounge
Apr 14th, 2005, 6:17 PM
|
|
Replies: 637
Views: 18,451
|
Forum: C++
Apr 13th, 2005, 11:27 AM
|
|
Replies: 14
Views: 628
ahhh, i misunderstood you.
i thought you were...
ahhh, i misunderstood you.
i thought you were building an actual machine type thing. like with a video camera and robotic arm. you're actually building a software bot. sounds like a cool project...
|
Forum: C++
Apr 12th, 2005, 4:00 PM
|
|
Replies: 14
Views: 628
|
Forum: C
Apr 12th, 2005, 2:10 PM
|
|
Replies: 1
Views: 310
|
Forum: C++
Apr 12th, 2005, 1:46 PM
|
|
Replies: 14
Views: 628
#include "robotVision.h"
#include...
#include "robotVision.h"
#include "pushButtons.h"
#include "poker.h"
while (gameStatus)
{
new Cards thisHand= readcards();
thisHand.getstrategy();
thisHand.strategy.pushbuttons();
check (gameStatus);
|
Forum: C++
Apr 11th, 2005, 4:08 PM
|
|
Replies: 14
Views: 769
|
Forum: C++
Apr 11th, 2005, 3:49 PM
|
|
Replies: 57
Views: 1,484
one other thing:
no one ever made a php...
one other thing:
no one ever made a php interpreter for MacOS. :(
That's probably the main reason I never got into it. Maybe now that I'm getting an OS X box, i might re-enter the php world. i...
|
Forum: C++
Apr 11th, 2005, 3:28 PM
|
|
Replies: 57
Views: 1,484
i love perl, for some things. here's one of...
i love perl, for some things. here's one of them:
#!/usr/bin/perl
use LWP::Simple;
getstore ($source, $destination);
voila! you snatched a web page in three lines.
also, it's capacity for ugly...
|
Forum: C++
Apr 11th, 2005, 11:38 AM
|
|
Replies: 4
Views: 134
abstraction refers to a process of making your...
abstraction refers to a process of making your code more like thought and less like assembly language.
a typical example would be overloading your operators and object methods so that your main()...
|
Forum: C++
Apr 9th, 2005, 3:27 PM
|
|
Replies: 3
Views: 158
|
Forum: C++
Apr 8th, 2005, 12:55 PM
|
|
Replies: 57
Views: 1,484
|