Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 05:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C++ Error

Discussion on C++ Error within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2012
Posts: 1,284
Received Thanks: 115
C++ Error

Hey, ich fange grad an mit C++

Und bitte mal um Error hilfe,

error C2065: 'cout': nichtdeklarierter Bezeichner
error C2065: 'endl': nichtdeklarierter Bezeichner
error C3861: "system": Bezeichner wurde nicht gefunden.

danke im vorraus c;
DerB0ss is offline  
Old 09/03/2012, 17:42   #2
 
elite*gold: 224
Join Date: Dec 2010
Posts: 2,766
Received Thanks: 931
der ganze Code wäre evtl. hilfreich
Havelock_Vetinari is offline  
Old 09/03/2012, 17:43   #3
 
elite*gold: 0
Join Date: Apr 2012
Posts: 1,284
Received Thanks: 115
Quote:
Originally Posted by Alex_II View Post
der ganze Code wäre evtl. hilfreich
mkay,

Code:
#include "iostream"
#include "cmath"
#include "stdAfx.h"

using namespace std;

int main()
{
     int x = 0;

	 while( x <= 2000)
	 {
		 cout << x << endl;
		 x = x + 1;             //x++;
	 }

	system("PAUSE");
	return 0;
}
DerB0ss is offline  
Old 09/03/2012, 17:49   #4
 
elite*gold: 224
Join Date: Dec 2010
Posts: 2,766
Received Thanks: 931
In VisualC++ muss man die includes wohl in stdafx.h ablegen... zumindest funktioniert das programm dann
Havelock_Vetinari is offline  
Old 09/03/2012, 18:18   #5
 
elite*gold: 0
Join Date: Aug 2007
Posts: 4,043
Received Thanks: 2,551
Code:
#include <iostream>
#include <cmath>

using namespace std;

int main()
{
     int x = 0;

	 while( x <= 2000)
	 {
		 cout << x << endl;
		 x = x + 1;             //x++;
	 }

	return 0;
}

So geht es und system("PAUSE"); ist böse.
Rainvair is offline  
Old 09/03/2012, 18:23   #6
 
elite*gold: 0
Join Date: Apr 2012
Posts: 1,284
Received Thanks: 115
Okay, allerdings hab ich jetzt das problem
C++ sagt mir, das cout & endl, nicht deklariert sei,

was kann ich tuhen :c
DerB0ss is offline  
Old 09/03/2012, 18:24   #7
 
elite*gold: 224
Join Date: Dec 2010
Posts: 2,766
Received Thanks: 931
entweder fehlt das namespace oder der iostream include....
Havelock_Vetinari is offline  
Old 09/03/2012, 18:26   #8
 
elite*gold: 0
Join Date: Apr 2012
Posts: 1,284
Received Thanks: 115
Quote:
Originally Posted by Alex_II View Post
entweder fehlt das namespace oder der iostream include....
Code:
#include <iostream>
#include <cmath>

using namespace std;

int main()
{
     int x = 0;

	 while( x <= 2000)
	 {
		 cout << x << endl;
		 x = x + 1;             //x++;
	 }

	return 0;
}
Da ist aber Namespace, sowie Das iostream include drin c;
DerB0ss is offline  
Old 09/03/2012, 18:34   #9
 
elite*gold: 224
Join Date: Dec 2010
Posts: 2,766
Received Thanks: 931
ich weiß nicht wo dein problem liegt ^^ . Gerademit Dev C++ getestet : läuft wunderbar .... benutzt du denn C++ oder Visual C ++?
Havelock_Vetinari is offline  
Old 09/03/2012, 18:37   #10
 
elite*gold: 0
Join Date: Apr 2012
Posts: 1,284
Received Thanks: 115
Visual C++.

// Soll ich auf das normale C++ umsteigen c; ?
DerB0ss is offline  
Old 09/03/2012, 19:09   #11
 
elite*gold: 224
Join Date: Dec 2010
Posts: 2,766
Received Thanks: 931
Quote:
Originally Posted by DerB0ss View Post
Visual C++.

// Soll ich auf das normale C++ umsteigen c; ?
Das ist mir eig. egal musst du entscheiden ....

Hab doch vorhin schon gesagt wies mit visual c++ geht.... zumindest bei mir...
Havelock_Vetinari is offline  
Old 09/03/2012, 19:23   #12
 
elite*gold: 0
Join Date: Apr 2012
Posts: 1,284
Received Thanks: 115
Quote:
Originally Posted by Alex_II View Post
Das ist mir eig. egal musst du entscheiden ....

Hab doch vorhin schon gesagt wies mit visual c++ geht.... zumindest bei mir...
mkay
DerB0ss is offline  
Old 09/03/2012, 19:41   #13
 
elite*gold: 224
Join Date: Dec 2010
Posts: 2,766
Received Thanks: 931
Quote:
Originally Posted by DerB0ss View Post
mkay
Hinbekommen? oder brauchste noch weitere hilfe?...
Havelock_Vetinari is offline  
Old 09/03/2012, 19:47   #14
 
elite*gold: 0
Join Date: Apr 2012
Posts: 1,284
Received Thanks: 115
Quote:
Originally Posted by Alex_II View Post
Hinbekommen? oder brauchste noch weitere hilfe?...
Ich feier grad voll habs grad hinbekommen,

hatte ein ' . ' Fehler ~

fail!

---------

Darf ich mal fragen,

Was ist der Unterschied zwischen C++ Visual C++ & Dev C++ ?
DerB0ss is offline  
Old 09/03/2012, 19:55   #15
 
elite*gold: 224
Join Date: Dec 2010
Posts: 2,766
Received Thanks: 931
Quote:
Originally Posted by DerB0ss View Post
Ich feier grad voll habs grad hinbekommen,

hatte ein ' . ' Fehler ~

fail!

---------

Darf ich mal fragen,

Was ist der Unterschied zwischen C++ Visual C++ & Dev C++ ?
Hab michwohl vorhinfalsch ausgedrückt Dev C++ ist keine Sprache sondern eine Entwicklungsumgebung für C++ . Visual C++ ist von Microsoft, liefertgleich eine sehr gute IDE mit . C++ ist halt der Standart
Havelock_Vetinari is offline  
Reply


Similar Threads Similar Threads
ERROR: GAME DB INIT ERROR : [DBNETLIB][ConnectionOpen (Connect()).]Specified SQL serv
08/06/2013 - Rappelz Private Server - 5 Replies
Hallo :D:D ich habe ein Problem, und zwar kommt bei mir immer diese Fehlermeldung wenn ich den CaptainHerlockServer starte ,,ERROR: GAME DB INIT ERROR : Ungültige Autorisierungsangab." Ich habe zwar schon etwas darüber gelesen, doch nur auf englisch und die meinte etwas über die DB files :confused::confused::confused: doch ich habe keine ahnung wo ich diese Files herbekomme, bitte um schnelle Hilfe Danke! :):)
İbot Error-Error Video- Error İmages-HELP
04/10/2012 - DarkOrbit - 11 Replies
SORRY, MY ENGLİSH VERY BAD.I USE TO GOOGLE TRANSLATE :) Most people trying to ibot but in my computer İbot not working. Declared out this error everywhere but I do not get answers Here's the error Video http://youtu.be/q0fK09v-K3c
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_
04/08/2012 - elite*gold Trading - 2 Replies
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_uri URL is not properly formatted Das bekomme ich wenn ich ne App installiere... ich habe schon 3 Apps richtig installiert, danach kam immer das bei anderen Apps die ich installiert habe.. was heisst das? redirect_uri URL is not properly formatted



All times are GMT +1. The time now is 05:22.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.