Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

GOD DAMNIT

Name: Anonymous 2007-08-17 19:28 ID:mFw/616K

I believe I copied this code verbatim from my C++ book. I get "undeclared identifier" errors on lines 6 and 8. I will never learn the basic if this book has shitty code.

Please tell me whether I am idiot, Visual C++ sucks, or I need to throw this book in the garbage:

#include <iostream>
int main()
{
  int x = 5;
  int y = 7;
  std::cout << endl;
  std::cout << x + y << " " << x * y;
  std::cout << end;
  return 0;
}

Name: Anonymous 2007-08-17 19:36 ID:mFw/616K

Disregard those typos, I've been up all night sucking cocks.

Name: Anonymous 2007-08-17 19:36 ID:Heaven

NULLPO EXCEPTION GET

Protip: delete lines 6 and 8

Name: Anonymous 2007-08-17 19:40 ID:Heaven

std::endl
idiot

Name: Anonymous 2007-08-17 19:41 ID:Heaven

also, learn C instead of C++.

Name: Anonymous 2007-08-17 19:48 ID:mFw/616K

If the problem is not a typo but a fundamental problem in the code itself, I guess I'll throw this book in the garbage.

Name: Anonymous 2007-08-17 19:50 ID:Heaven

>>6
LOOK WHAT I WROTE IN >>4
YOU FUCKING IDIOT

std::cout << std::endl;

GETFOTGUCKF UKCUFKUCKUKFUKCUKFUKCUKUCKUFKUFKUCKUUCKFUKUFKUCKUCKUKFKCUKCFKFUKUCKUFKUCKU

Name: Anonymous 2007-08-17 19:54 ID:VKRPxEjT

>>1 C++
Thar's yer problem.

Name: Anonymous 2007-08-17 19:56 ID:mFw/616K

>>7

THANK YOU VERY MUCH, BUT THAT'S NOT EVEN IN CLOSE TO WHAT IT SAYS IN THE BOOK, SO I'M VERY WELL GOING TO BURN IT

Name: Anonymous 2007-08-17 20:01 ID:Heaven

>>9
MENTION YOUR FUCKING BOOK YOU GODAMN IDIOT
YOURE FUCKING ANGERING ME
IM GOING TO FUCKING EXPLODE
WORSE THANFUCK

Name: sage 2007-08-17 20:10 ID:mFw/616K

The book is Sams Teach Yourself C++ in 21 Days (5th Edition), the code is from Excercise 1 on page 23. I will provide you with a scan if you like. I copied it verbatim. VERBATIM.

Name: Anonymous 2007-08-17 20:14 ID:VKRPxEjT

>>11
THAT'S WHAT YOU GET FOR BUYING A "TEACH YOURSELF X IN N TIME-UNIT" BOOK.

Name: Anonymous 2007-08-17 20:15 ID:mFw/616K

>>12
FUCK YOU, I KNOW.

Name: Anonymous 2007-08-17 20:25 ID:3M8TgfKN

Name: Anonymous 2007-08-17 21:04 ID:VKRPxEjT

>>14
THATS NOT C DOUBLE PLUS

Name: Anonymous 2007-08-17 21:06 ID:3M8TgfKN

>>15
NO IT'S NOT IT'S SOMETHING BETTER.

Name: Anonymous 2007-08-17 21:16 ID:VKRPxEjT

>>16
How could (C++)-- be better?

Name: Anonymous 2007-08-17 21:20 ID:8PJL6KI8

>>17

Less is more

Name: Anonymous 2007-08-17 21:24 ID:VKRPxEjT

>>18
That doesn't sound correct. It may be better (which is why you're writing your programs with the front panel switches, amirite), but it's pretty clearly less. I think what you should have said was that less work is more better.

Name: Anonymous 2007-08-17 21:29 ID:8PJL6KI8

>>19

No, I was spouting a stupid catchphrase

Name: Anonymous 2007-08-17 22:11 ID:BRyejjg0

Everyone knows that less is more than more.

Name: Anonymous 2007-08-17 22:55 ID:vBefG23R

>>12
FUCK YOU, TEACH YOURSELF SCHEME IN FIXNUM DAYS IS GREAT

Name: Anonymous 2007-08-17 22:57 ID:YPBbVRpR

less is just more of the same, with more features.

Name: Anonymous 2007-08-18 0:40 ID:SWLKqBgE

>>22

AGLEED

Name: Anonymous 2007-08-18 3:22 ID:Llyy6Fop

>>11
is a pretty good book if you know another language, or the basics of c++.  thier teach yourself in 24 is better to get you started, then go get a good book, like http://en.wikipedia.org/wiki/The_C%2B%2B_Programming_Language or http://en.wikipedia.org/wiki/K&R

Name: Anonymous 2007-08-18 3:27 ID:GEXYjv7Q

>>25
This person cannot spell correctly, Don't listen to them. Instead read SICP.

Name: Anonymous 2007-08-18 7:07 ID:Heaven

std::cout << '\n';

Name: Anonymous 2007-08-18 12:32 ID:bJ5KPl2z

Missing a "using namespace std;"?

Name: Anonymous 2007-08-18 23:39 ID:ByStakTW

>>26
where see shit?

Name: Anonymous 2007-08-19 0:19 ID:opvoi7tC

Let's get this faggot to waste $25 on another book that he won't understand and then throw away.

Name: Anonymous 2007-08-19 0:26 ID:9LFAL91f

You should read "Optics of Quantum Dots and Wires". It covers most aspects of C++

Name: Anonymous 2007-08-19 3:02 ID:Heaven

>>29
By Stak TW

Name: Anonymous 2010-12-10 7:23

Don't change these.
Name: Email:
Entire Thread Thread List