#1

I'm trying to learn C++ but all i found online is like 10 year old tutorials that doesn't work, I got Visual studio 2017
Reply
#2

https://www.udemy.com/courses/develo...lus-tutorials/

****** is your friend.
Reply
#3

I can make the simple "Hello world" thing but i wanna dig deep like, what's this what's that you know what i mean?
Reply
#4

Also i'm getting this error every fucking time wtf
http://imgur.com/a/5OU0O
http://imgur.com/a/ObzPX
Reply
#5

whats that: https://ctrlv.cz/shots/2017/04/24/oXe8.png
Reply
#6

If you want to learn it in deep there are many good books available on the internet. For example this book by Steve Oualline is a wonderful book about improving the c++ skills (most of the parts can also be applied in all programming languages too) and it helped me a lot in those days.
Reply
#7

You should try this website,alot of tutorials about programming:https://thenewboston.com
Reply
#8

Thanks everyone but what about this error i don't get it i looked it up online but no luck
Reply
#9

Paste the full statement of error here
Reply
#10

Here's the code
PHP код:
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include <iostream>
using namespace std;
int main()
{
    
cout << "Fuck me daddy" << endl;
    
cout << "I eat ass" << endl;
    return 
0;

And here's the error
PHP код:
1>------ Build startedProjectConsoleApplication1ConfigurationDebug Win32 ------
1>stdafx.cpp
1
>ConsoleApplication1.cpp
1
>c:\users\gamerz.exe\documents\visual studio 2017\projects\consoleapplication1\consoleapplication1\consoleapplication1.cpp(16): fatal error C1010unexpected end of file while looking for precompiled headerDid you forget to add '#include "stdafx.h"' to your source?
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(358,5): error MSB6006"CL.exe" exited with code 2.
1
>Done building project "ConsoleApplication1.vcxproj" -- FAILED.
========== 
Build0 succeeded1 failed0 up-to-date0 skipped ========== 
EDIT: I added #include "stdafx.h" to the top of the code and then it worked for exactly half a second and then the CMD box closed here's what i got

PHP код:
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\GamerZ.Exe\Documents\Visual Studio 2017\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe'Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp140d.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-timezone-l1-1-0.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-file-l2-1-0.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-localization-l1-2-0.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-synch-l1-2-0.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-processthreads-l1-1-1.dll'Cannot find or open the PDB file.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\api-ms-win-core-file-l1-2-0.dll'Cannot find or open the PDB file.
The program '[5548] ConsoleApplication1.exe' has exited with code 0 (0x0). 
Reply
#11

When creating a project, make sure that "use precompiled header" or something like that is not checked, you can also change that somewhere in project settings but i am not sure where it is
Reply
#12

Quote:
Originally Posted by ]Kurence[
Посмотреть сообщение
When creating a project, make sure that "use precompiled header" or something like that is not checked, you can also change that somewhere in project settings but i am not sure where it is
same thing no difference
Reply
#13

When application finishes the codes it close auto so add a line reader code to keep it open ( I don't really remeber what was the function of it but maybe getline(cin, var); )

Edit:
http://stackoverflow.com/a/454684
Reply
#14

Quote:
Originally Posted by jlalt
Посмотреть сообщение
When application finishes the codes it close auto so add a line reader code to keep it open ( I don't really remeber what was the function of it but maybe getline(cin, var); )

Edit:
http://stackoverflow.com/a/454684
I love you
Reply
#15

Okay now how can i fix this thing it's going on since i installed this it always says project out of date wtf?
http://imgur.com/a/ITL4t
Reply
#16

Quote:
Originally Posted by XBrianX
Посмотреть сообщение
Okay now how can i fix this thing it's going on since i installed this it always says project out of date wtf?
http://imgur.com/a/ITL4t
Its a crapy error, click on don't show again and press Yes button
Reply
#17

Quote:
Originally Posted by jlalt
Посмотреть сообщение
Its a crapy error, click on don't show again and press Yes button
Thanks again!
Reply
#18

Just wanted to say that http://www.learncpp.com/ is a good site to learn the language and gets updated frequently.
Reply
#19

The BEST EVER WAY my brother, is SOLOLEARN.com! I Have 25 YO and just now i got the "code magic", and i only get it, with SOLO LEARN, it's a VERY EASY to learn!! try it!


And you can download de SoloLearn APP for your smartphone too... it's the best way bro! try!!!
Reply
#20

You can try out this very simple software for making c++ scripts
https://sourceforge.net/projects/orwelldevcpp/
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)