Go Down

Topic: exit status 1 (Read 117457 times) previous topic - next topic

apeandrefan

#include <Adafruit_NeoPixel.h>
#include <avr/power.h>

#define PIN 6

/*
GLOWBOARD CODE

Achtung! Du musst die Anzahl der LEDs anpassen. Bei mir waren es 68. Ändere die Variable ledsGesamt.
*/

int ledsGesamt = 60;



// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
//   NEO_KHZ800  800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
//   NEO_KHZ400  400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
//   NEO_GRB     Pixels are wired for GRB bitstream (most NeoPixel products)
//   NEO_RGB     Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(ledsGesamt, PIN, NEO_GRB + NEO_KHZ800);

// IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uF capacitor across
// pixel power leads, add 300 - 500 Ohm resistor on first pixel's data input
// and minimize distance between Arduino and first pixel.  Avoid connecting
// on a live circuit...if you must, connect GND first.

void setup() {
  // This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket
#if defined (__AVR_ATtiny85__)
  if (F_CPU == 16000000) clock_prescale_set(clock_div_1);
#endif
  // End of trinket special code


  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
}

void loop() {
  // Some example procedures showing how to display to the pixels:
  colorWipe(strip.Color(255, 0, 0), 30); // Red
  colorWipe(strip.Color(0, 255, 0), 30); // Green
  colorWipe(strip.Color(0, 0, 255), 30); // Blue
  // Send a theater pixel chase in...
  theaterChase(strip.Color(127, 127, 127), 50); // White
  /*theaterChase(strip.Color(127,   0,   0), 50); // Red
  theaterChase(strip.Color(  0,   0, 127), 50); // Blue*/

/*  rainbow(10);*/
  rainbowCycle(5);
  theaterChaseRainbow(40);
}

// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
  for(uint16_t i=0; i<strip.numPixels()/2; i++) {
      strip.setPixelColor(i, c);
      strip.setPixelColor(strip.numPixels()-i, c);     
      strip.show();
      delay(wait);
  }
}

void rainbow(uint8_t wait) {
  uint16_t i, j;

  for(j=0; j<256; j++) {
    for(i=0; i<strip.numPixels()/2; i++) {
      strip.setPixelColor(i, Wheel((i+j) & 255));
      strip.setPixelColor(strip.numPixels()-i, Wheel((i+j) & 255));     
    }
    strip.show();
    delay(wait);
  }
}

// Slightly different, this makes the rainbow equally distributed throughout
void rainbowCycle(uint8_t wait) {
  uint16_t i, j;

  for(j=0; j<256*5; j++) { // 5 cycles of all colors on wheel
    for(i=0; i< strip.numPixels()/2; i++) {
      strip.setPixelColor(strip.numPixels()/2-i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
      strip.setPixelColor(strip.numPixels()/2+i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));     
    }
    strip.show();
    delay(wait);
  }
}

//Theatre-style crawling lights.
void theaterChase(uint32_t c, uint8_t wait) {
  for (int j=0; j<40; j++) {  //do 10 cycles of chasing
    for (int q=0; q < 3; q++) {
      for (int i=0; i < strip.numPixels()/2; i=i+3) {
        strip.setPixelColor(i+q, c);    //turn every third pixel on
        strip.setPixelColor(strip.numPixels()-(i+q), c);    //turn every third pixel on       
      }
      strip.show();
     
      delay(wait);
     
      for (int i=0; i < strip.numPixels()/2; i=i+3) {
        strip.setPixelColor(i+q, 0);        //turn every third pixel off
        strip.setPixelColor(strip.numPixels()-(i+q), 0);        //turn every third pixel off       
      }
    }
  }
}

//Theatre-style crawling lights with rainbow effect
void theaterChaseRainbow(uint8_t wait) {
  for (int j=0; j < 256; j++) {     // cycle all 256 colors in the wheel
    for (int q=0; q < 3; q++) {
        for (int i=0; i < strip.numPixels()/2; i=i+3) {
          strip.setPixelColor(i+q, Wheel( (i+j) % 255));    //turn every third pixel on
          strip.setPixelColor(strip.numPixels()-(i+q), Wheel( (i+j) % 255));    //turn every third pixel on         
        }
        strip.show();
       
        delay(wait);
       
        for (int i=0; i < strip.numPixels()/2; i=i+3) {
          strip.setPixelColor(i+q, 0);        //turn every third pixel off
          strip.setPixelColor(strip.numPixels()-(i+q), 0);        //turn every third pixel off         
        }
    }
  }
}

// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
uint32_t Wheel(byte WheelPos) {
  WheelPos = 255 - WheelPos;
  if(WheelPos < 85) {
   return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3);
  } else if(WheelPos < 170) {
    WheelPos -= 85;
   return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3);
  } else {
   WheelPos -= 170;
   return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0);
  }
}

who is the error?

pert

who is the error?
You are.

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. Using code tags and other important information is explained in the How to use this forum post. Please read it.

Please always do a Tools > Auto Format on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read.

When your code requires a library that's not included with the Arduino IDE please always post a link(using the chain link icon on the toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger(Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.

When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here using code tags.

And as always, "exit status 1" is the most generic possible error and there is absolutely no point in grouping a bunch of otherwise unrelated posts in one thread. I do appreciate that everyone here took the time to search for a related thread, rather than creating a duplicate one but using this one really doesn't make any sense. You need to look at the full error output but scrolling all the way up to the top of the black console window at the bottom of the Arduino IDE window. There is a lot more than the last couple lines that you happen to see at a glance. This should be obvious from the little scroll bar at the right side of the window, extremely basic computer knowledge that you should have if you're going to attempt to work with Arduino.

yashin_alappatt

I too had the same problem. Its an urgent project so please help me fast.

this is my error message:

Arduino: 1.8.1 (Windows 7), Board: "Arduino/Genuino Uno"

C:\Users\Vincent\Desktop\cnc plotter\arduino_code\arduino_code.ino:2:21: fatal error: AFMotor.h: No such file or directory

 #include <AFMotor.h>

                     ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

yashin_alappatt

I too had the same problem. Its an urgent project, please help me fast.

This is my error message :

Arduino: 1.8.1 (Windows 7), Board: "Arduino/Genuino Uno"

C:\Users\Vincent\Desktop\cnc plotter\arduino_code\arduino_code.ino:2:21: fatal error: AFMotor.h: No such file or directory

#include <AFMotor.h>

                    ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


Code is uploaded. Please download it:

pert

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. Using code tags and other important information is explained in the How to use this forum post. Please read it.

Code: [Select]

C:\Users\Vincent\Desktop\cnc plotter\arduino_code\arduino_code.ino:2:21: fatal error: AFMotor.h: No such file or directory

#include <AFMotor.h>

                    ^

You have to install the library:
https://github.com/adafruit/Adafruit-Motor-Shield-library

Sengar462001

#include <IRremote.h>
const int RECV_PIN=14;
IRrecv irrecv(RECV_PIN);
decode_results results;
#include<LiquidCrystal.h>
LiquidCrystal lcd(6,7,8,9,10,11);

#define Fan 3
#define Light 4
#define TV 5
void setup()
{
  Serial.begin(9600);
  lcd.begin(16,2);
  pinMode(Fan, OUTPUT);
  pinMode(Light, OUTPUT);
  pinMode(TV, OUTPUT);
  void loop()
{
  if (irrecv.decode(&results))
   {
     Serial.println(results.value,HEX);
     delay(100);
     lcd.setCursor(0,0);
     lcd.print("Fan   Light  TV");
     if(results.value==0x1FE00FF)
     {
        i++;
        int x=i%2;
        digitalWrite(Fan, x);
        #include<LiquidCrystal.h>
#include <IRremote.h>
const int RECV_PIN=14;
IRrecv irrecv(RECV_PIN);
decode_results results;
#include<LiquidCrystal.h>
LiquidCrystal lcd(6,7,8,9,10,11);
#define Fan 3
#define Light 4
#define TV 5
int i=0,j=0,k=0,n=0;
void setup()
{
  Serial.begin(9600);
  lcd.begin(16,2);
  pinMode(Fan, OUTPUT);
  pinMode(Light, OUTPUT);
  pinMode(TV, OUTPUT);
  //digitalWrite(13,HIGH);
  lcd.print("Remote Controlled");
  lcd.setCursor(0,1);
  lcd.print("Home Automation");
  delay(2000);
  lcd.clear();
  lcd.print("Circuit Digest");
  lcd.setCursor(0,1);
  delay(1000);
  lcd.print("System Ready...");
  delay(1000);
  irrecv.enableIRIn(); // Start the receiver
  irrecv.blink13(true);
  lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("Fan   Light  TV ");
  lcd.setCursor(0,1);
  lcd.print("OFF    OFF   OFF");
}
void loop()
{
  if (irrecv.decode(&results))
   {
     Serial.println(results.value,HEX);
     delay(100);
     lcd.setCursor(0,0);
     lcd.print("Fan   Light  TV");
     if(results.value==0x1FE00FF)
     {
        i++;
        int x=i%2;
        digitalWrite(Fan, x);
        lcd.setCursor(0,1);
        if(x)
        lcd.print("ON  ");
        else
        lcd.print("OFF ");
       // delay(200);
     }
   
     else if(results.value==0x1FEF00F)    //  key 1
     {
        j++;
        int x=j%2;
        digitalWrite(Light, x);
        lcd.setCursor(6,1);
        if(x)
        lcd.print("ON   ");
        else
        lcd.print("OFF  ");
       // delay(200);
     }
   
     if(results.value==0x1FE9867)
     {
        k++;
        int x=k%2;
        digitalWrite(TV, x);
        lcd.setCursor(13,1);
        if(x)
        lcd.print("ON ");
        else
        lcd.print("OFF");
       // delay(200);
       }
       
        if(results.value==0x1FE48B7)
       {
        n++;
        int x=n%2;
        digitalWrite(TV, x);
        digitalWrite(Fan,x);
        digitalWrite(Light,x);
        lcd.setCursor(0,1);
        if(x)
        lcd.print("ON     ON    ON ");
        else
        lcd.print("OFF    OFF   OFF");
        //delay(200);
       }
     irrecv.resume(); // Receive the next value
     //delay(100);
   }
}

pert

...
Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. Using code tags and other important information is explained in the How to use this forum post. Please read it.

Please always do a Tools > Auto Format on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read.

If you had done an Auto Format you would have been able to clearly see from the indentation that your cut and paste coding skills are severely lacking. You have duplicated the first 31 lines of code twice. Try this:

Code: [Select]
#include <IRremote.h>
const int RECV_PIN = 14;
IRrecv irrecv(RECV_PIN);
decode_results results;
#include<LiquidCrystal.h>
LiquidCrystal lcd(6, 7, 8, 9, 10, 11);
#define Fan 3
#define Light 4
#define TV 5
int i = 0, j = 0, k = 0, n = 0;
void setup()
{
  Serial.begin(9600);
  lcd.begin(16, 2);
  pinMode(Fan, OUTPUT);
  pinMode(Light, OUTPUT);
  pinMode(TV, OUTPUT);
  //digitalWrite(13,HIGH);
  lcd.print("Remote Controlled");
  lcd.setCursor(0, 1);
  lcd.print("Home Automation");
  delay(2000);
  lcd.clear();
  lcd.print("Circuit Digest");
  lcd.setCursor(0, 1);
  delay(1000);
  lcd.print("System Ready...");
  delay(1000);
  irrecv.enableIRIn(); // Start the receiver
  irrecv.blink13(true);
  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("Fan   Light  TV ");
  lcd.setCursor(0, 1);
  lcd.print("OFF    OFF   OFF");
}
void loop()
{
  if (irrecv.decode(&results))
  {
    Serial.println(results.value, HEX);
    delay(100);
    lcd.setCursor(0, 0);
    lcd.print("Fan   Light  TV");
    if (results.value == 0x1FE00FF)
    {
      i++;
      int x = i % 2;
      digitalWrite(Fan, x);
      lcd.setCursor(0, 1);
      if (x)
        lcd.print("ON  ");
      else
        lcd.print("OFF ");
      // delay(200);
    }

    else if (results.value == 0x1FEF00F) //  key 1
    {
      j++;
      int x = j % 2;
      digitalWrite(Light, x);
      lcd.setCursor(6, 1);
      if (x)
        lcd.print("ON   ");
      else
        lcd.print("OFF  ");
      // delay(200);
    }

    if (results.value == 0x1FE9867)
    {
      k++;
      int x = k % 2;
      digitalWrite(TV, x);
      lcd.setCursor(13, 1);
      if (x)
        lcd.print("ON ");
      else
        lcd.print("OFF");
      // delay(200);
    }

    if (results.value == 0x1FE48B7)
    {
      n++;
      int x = n % 2;
      digitalWrite(TV, x);
      digitalWrite(Fan, x);
      digitalWrite(Light, x);
      lcd.setCursor(0, 1);
      if (x)
        lcd.print("ON     ON    ON ");
      else
        lcd.print("OFF    OFF   OFF");
      //delay(200);
    }
    irrecv.resume(); // Receive the next value
    //delay(100);
  }
}

If that doesn't work then your problem is the IRremote/RobotIRremote thing and you need to do this:
Sketch > Include library > Manage Libraries > search for IRremote > Install IRremote library.

jeremyalfananda

exucese me , im jeremy
 
i want to ask this problem



the error is :

C:\Users\jerem\Desktop\ARDUINO\LCD_TEXT_JA\libraries\sketch_jun06a\sketch_jun06a.ino:5:28: fatal error: LiquidCrystal .h: No such file or directory

 #include <LiquidCrystal .h>

                            ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.
   






THIS IS THE CODE
whats wrong with this code?





//------------------------------------
// JEREMYALFANANDA LED SKETCH
//------------------------------------

#include <LiquidCrystal .h>

const int PIN_RS    = 12 ;

const int PIN_E     = 11 ;

const int PIN_DB_4  = 7 ;

const int PIN_DB_5  = 6 ;

const int PIN_DB_6  = 5 ;

const int PIN_DB_7  = 4 ;


// OBJEK LCD
LiquidCrystal lcd(PIN_RS, PIN_E, PIN_DB_4,
                  PIN_DB_5, PIN_DB_6, PIN_DB_7) ;

void setup ()  {
  //ukuran lcd
  lcd.begin (16, 2) ;
}

void loop ()  {
  lcd.clear () ;
  lcd.print ("jeremyalfananda LCD ") ;
  lcd.setCursor (0, 1) ;
  lcd.print (" UJI COBA LCD ") ;

  delay (5000) ;

  lcd.clear () ;
  lcd.print ("lcd text 2 ") ;
  lcd.setCursor (0, 1) ;
  lcd.print (" I GOT THIS YEAY ! ") ;
 
  delay (5000) ;
}






HOW DO I SOLVE THIS PROBLEM? ANYONE CAN HELP ME? THANKS

pert

HOW DO I SOLVE THIS PROBLEM? ANYONE CAN HELP ME? THANKS
Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. Using code tags and other important information is explained in the How to use this forum post. Please read it.

You have an incorrect space in the filename.
change:
Code: [Select]
#include <LiquidCrystal .h>
to:
Code: [Select]
#include <LiquidCrystal.h>

funhall

Fix the code. If you need help, print out a copy, and mail it to every forum member.

Or post it here.
And, of course, you've selected that robot from the Tools + Board menu. Or is that a silly assumption?
I have this code that I can not compile on the IDE 1.8.3 danish version but english version works fine......



#include <Wire.h>
#include "Adafruit_TCS34725.h"

// Pick analog outputs, for the UNO these three work well
// use ~560  ohm resistor between Red & Blue, ~1K for green (its brighter)
#define redpin 1
#define greenpin 2
#define bluepin 3
#define rodpin 5
#define blaapin 4
#define gronpin 6
#define gulpin 7

// for a common anode LED, connect the common pin to +5V
// for common cathode, connect the common to ground

// set to false if using a common cathode LED
#define commonAnode true

// our RGB -> eye-recognized gamma color
byte gammatable[256];

Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X);

void setup() {
  Serial.begin(9600);
  Serial.println("Color View Test!");
  pinMode(gronpin, OUTPUT);
  pinMode(blaapin, OUTPUT);
  pinMode(rodpin, OUTPUT);
  pinMode(gulpin, OUTPUT);

  if (tcs.begin()) {
    Serial.println("Found sensor");
  } else {
    Serial.println("No TCS34725 found ... check your connections");
    while (1); // halt!
  }
 
  // use these three pins to drive an LED
  pinMode(redpin, OUTPUT);
  pinMode(greenpin, OUTPUT);
  pinMode(bluepin, OUTPUT);
   
  // thanks PhilB for this gamma table!
  // it helps convert RGB colors to what humans see
  for (int i=0; i<256; i++) {
    float x = i;
    x /= 255;
    x = pow(x, 2.5);
    x *= 255;
     
    if (commonAnode) {
      gammatable = 255 - x;
    } else {
      gammatable = x;     
    }
    //Serial.println(gammatable);
  }
}


void loop() {
  uint16_t clear, red, green, blue;

  tcs.setInterrupt(false);      // turn on LED

  delay(50);  // takes 50ms to read-Har selv ændret til 30
 
  tcs.getRawData(&red, &green, &blue, &clear);

  tcs.setInterrupt(true);  // turn off LED
 
  Serial.print("C:\t"); Serial.print(clear);
  Serial.print("\tR:\t"); Serial.print(red);
  Serial.print("\tG:\t"); Serial.print(green);
  Serial.print("\tB:\t"); Serial.print(blue);

  // Figure out some basic hex code for visualization
  uint32_t sum = clear;
  float r, g, b;
  r = red; r /= sum;
  g = green; g /= sum;
  b = blue; b /= sum;
  r *= 256; g *= 256; b *= 256;
  Serial.print("\t");
//   Serial.print((int)r, HEX); Serial.print((int)g, HEX); Serial.print((int)b, HEX);
  Serial.print((int)r); Serial.print(",");Serial.print((int)g);Serial.print(",");Serial.print((int)b);
  Serial.println();

  //Serial.print((int)r ); Serial.print(" "); Serial.print((int)g);Serial.print(" ");  Serial.println((int)b );

  analogWrite(redpin, gammatable[(int)r]);
  analogWrite(greenpin, gammatable[(int)g]);
  analogWrite(bluepin, gammatable[(int)b]);

  if (green > 150 && green < 200 && blue > 60 && blue < 100 && red > 280 && red < 400)
 {
  digitalWrite(gulpin, low);
 }
 else
 {
 digitalWrite(gulpin, LOW);
}

  if (green > 100 && green < 200 && blue > 60 && blue < 100 && red > 150 && red < 300)
  {
  digitalWrite(gronpin, HIGH);
 }
 else
 {
 digitalWrite(gronpin, LOW);

 }
  if (green > 65 && green < 100 && blue > 60 && blue < 100 && red > 100 && red < 200)
  {
  digitalWrite(blaapin, HIGH);
 }
 else
 {
 digitalWrite(blaapin, LOW);
 }
 
  if (green > 70 && green < 100 && blue > 50 && blue < 90 && red > 200 && red < 300)
  {
  digitalWrite(rodpin, HIGH);
 }
 else
 {
 digitalWrite(rodpin, LOW);
 }
 }

AWOL

The compiler hates italics.
Please edit your post to add in code tags.
"Pete, it's a fool (who) looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

pert

I have this code that I can not compile on the IDE 1.8.3 danish version
When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).


What do you mean by "danish version"? Does that only mean that you have the standard IDE from http://www.arduino.cc/en/Main/Software but you have selected File > Preferences > Editor Language > Dansk (Denmark) (Danish (Denmark)) or System Default if your system default is Danish?

bubbles

It is highly possible that Arduino can't figure out which board you're using.  If the board you have selected to upload to and the board you actually have, do not match it will result in an error.

I_surf

HELP!!!

Arduino:1.8.5 (Windows 10), Kort:"Arduino Nano, ATmega328P"

C:\Users\robin\Documents\Arduino\vibrator_matare\vibrator_matare.ino: In function 'void loop()':

vibrator_matare:39: error: 'mystg' was not declared in this scope

   for(int i=0; i<strlen(mystg); i++)=""  ="" {="" lcd.print(mystg);="" } <="" p=""></strlen(mystg);>

                         ^

vibrator_matare:39: error: expected primary-expression before '=' token

   for(int i=0; i<strlen(mystg); i++)=""  ="" {="" lcd.print(mystg);="" } <="" p=""></strlen(mystg);>

                                     ^

vibrator_matare:39: error: assignment of read-only location '""'

   for(int i=0; i<strlen(mystg); i++)=""  ="" {="" lcd.print(mystg);="" } <="" p=""></strlen(mystg);>

                                          ^

vibrator_matare:39: error: invalid array assignment

vibrator_matare:39: error: expected primary-expression before '<=' token

   for(int i=0; i<strlen(mystg); i++)=""  ="" {="" lcd.print(mystg);="" } <="" p=""></strlen(mystg);>

                                                                             ^

vibrator_matare:39: error: expected primary-expression before '>' token

   for(int i=0; i<strlen(mystg); i++)=""  ="" {="" lcd.print(mystg);="" } <="" p=""></strlen(mystg);>

                                                                                                       ^

exit status 1
'mystg' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

pert

HELP!!!
Read every page listed here:
http://www.arduino.cc/reference/en
Now read every page listed here:
http://www.arduino.cc/en/Tutorial/HomePage
Then read this entire tutorial:
http://www.cplusplus.com/doc/tutorial/introduction/
After that you will understand what's wrong with your code.

Go Up