Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

kein #include <iostream>

Empfohlene Antworten

Veröffentlicht

Hallo! Ich bin ziemlich neu in Sachen c/c++ und habe folgendes Problem:

#include <iostream>

using namespace std;

int main()

{

cout <<"hallo";

return 0;

}

beim Kompilieren steht da:

iostream:no such file or directory

aber ich benutze code::blocks und den gnu gcc compiler.

iostream ist doch eigentlich standardmäßig dabei oder nicht? Liegts vielleicht an der Einstellung? Wäre nett, wenn mir jemand Schritt für Schritt erklären könnte, wie ichs einstellen kann. Bin schon am verzweifeln. :(

Ach ja, mit #include <stdio.h> ist überhaupt kein Problem, aber ich möchte mal cout benutzen. Bitte helft mir!! Dankeschön!!

ah!!daran liegs...habs jetzt als cpp abgespeichert!!

es funktioniert. :D

wusste net, dass es ne auswirkung hat!

super!! jetzt klappts, vielen vielen dank

mfg, Lancey :)

Hallo! Ich bin ziemlich neu in Sachen c/c++ und habe folgendes Problem:

#include <iostream>

using namespace std;

int main()

{

cout <<"hallo";

return 0;

}

beim Kompilieren steht da:

iostream:no such file or directory

aber ich benutze code::blocks und den gnu gcc compiler.

iostream ist doch eigentlich standardmäßig dabei oder nicht? Liegts vielleicht an der Einstellung? Wäre nett, wenn mir jemand Schritt für Schritt erklären könnte, wie ichs einstellen kann. Bin schon am verzweifeln. :(

Ach ja, mit #include <stdio.h> ist überhaupt kein Problem, aber ich möchte mal cout benutzen. Bitte helft mir!! Dankeschön!!

1) Alles auch richtig installiert?

2) Schon mit conio probiert?

3) Welchen Namen hat die Datei?

4) Die Codeblöcke hier im Forum sind gratis also bitte diese für Quellcode nutzen!

Gruß

Hamster

@hamstor

das wars ja, was mir fast den Verstand gekostet hat :)

aber klotzkopp hat soeben geschrieben: die datei als cpp. das wars :)

@hamstor

das wars ja, was mir fast den Verstand gekostet hat :)

aber klotzkopp hat soeben geschrieben: die datei als cpp. das wars :)

Ja... das kommt davon wenn man vorm tippen noch etwas anderes macht...

1:0 Klotzkopp

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.