I tried to build really basic associative array but it turned out I don't have enough knowledge, so I tried something less, and less, and less, because I kept failing at it. Finally I just tried to set variables and print them in the command-line. But I can't even do that, and this is like ridiculous begin of all the programming and that even failed. I can't precisely understand what error means and Googling refers to other programming languages or errors that don't match mine. The code I have:
#include <string>
#include "stdafx.h"
#include <limits>
#include <iostream>
int main() {
const System::Int64 TheNumbah = 1844674407370955161;
const std::string MarcoPolo = "Yupikayay!";
System::Console::WriteLine(MarcoPolo);
System::Console::WriteLine(TheNumbah);
std::string s;
std::getline(std::cin, s);
}
Where did I go wrong? The first System::
line, especially System::Console::WriteLine has red underline, most likely related (and the only) error is:
IntelliSense: no instance of overloaded function "System::Console::WriteLine" matches the argument list argument types are: (const std::string)
Error doesn't say anything to me, and the syntax for this basic task is so simple I'm surprized I failed at it.
Could anybody help me solve this issue?
The operating system I tried it on is Windows 7 x64, codes from C++11 work in my IDE (so I expect that onward versions will work as well) which is Microsoft Visual Studio Community 2013, Update 4.