Problem Visual Studio / C++

Problem Visual Studio / C++
Skorpion124 Pl
  • Rejestracja:ponad 5 lat
  • Ostatnio:ponad 5 lat
  • Postów:1
0

Witam mam problem, zainstalowałem sobie Visual Studio i nie moge nic na nim programowac, bo wyswietla mi sie komunikat taki, jak w zalaczniku nizej. Prosze o pomoc !!

Chodzi o to, że w oknie konsoli nie wyswietla mi sie ten tekts ktory powinien, odpalam ten projekt ktory powinienem wiec nie wiem o co chodzi ...

_13th_Dragon
  • Rejestracja:ponad 19 lat
  • Ostatnio:4 dni
1

Spróbuj Clean oraz Rebuild


Wykonuję programy na zamówienie, pisać na Priv.
Asm/C/C++/Pascal/Delphi/Java/C#/PHP/JS oraz inne języki.
Codedemens
  • Rejestracja:około 6 lat
  • Ostatnio:prawie 5 lat
  • Lokalizacja:Yuri' Command Center
  • Postów:92
1

dodatkowo: zwracasz w main() inta, więc dodaj na koniec (po std::cout << (...))

return 0;

jeżeli nie zgłaszasz błędów w main...


Kiedy pieć zmysłów i rozum są trzeźwe,
A powód samoistnie leży w ciszy,
Wtedy rozpocznie się lepsza ścieżka.
-Katha Upanishad
edytowany 2x, ostatnio: Codedemens
tajny_agent
  • Rejestracja:ponad 11 lat
  • Ostatnio:ponad rok
  • Postów:1340
0

Nie jest to obowiązkowe

§ 6.6.1.5

A return statement in main has the effect of leaving the main function (destroying any objects with automatic
storage duration) and calling std::exit with the return value as the argument. If control flows off the end
of the compound-statement of main, the effect is equivalent to a return with operand 0 (see also 18.3)


"I love C++. It's the best language in the world right now for me to write the code that i need and want to write"
~ Herb Sutter
Codedemens
Codedemens
nie wiedziałem, thx.

Zarejestruj się i dołącz do największej społeczności programistów w Polsce.

Otrzymaj wsparcie, dziel się wiedzą i rozwijaj swoje umiejętności z najlepszymi.