Author Topic: More C++ help plz  (Read 3367 times)

0 Members and 1 Guest are viewing this topic.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
More C++ help plz
« on: October 23, 2011, 12:29:25 pm »
nvm. i might be stupid :P
why doesn't this work...

#ifdef __cplusplus
    #include <cstdlib>
#else
    #include <stdlib.h>
#endif
#ifdef __APPLE__
#include <SDL/SDL.h>
#else
#include <SDL.h>
#endif
#include <iostream>
#include "SDL.h"
using namespace std;
int main ()
{

  int A=5;
  cout << "Hello World!" << "\n" << A;
  return 0;
}
« Last Edit: October 23, 2011, 12:31:38 pm by Happybobjr »
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________