0

I'm facing this issue at line no 3 'System/' file not found and on line 5 Expected ';' after top level declarator while debugging this c++ program on Xcode. This is my first time on Xcode

#include <stdio.h>
#include <stdarg.h>
#include <System>
using namespace System;
int main(array<System::String ^> ^args){
    Console::Clearc();
    Console::SetCursorPosition(5,5);
    putchar('*');
    Console::ReadLine();
    return 0;
}
Lundin
  • 195,001
  • 40
  • 254
  • 396
Hardik Patil
  • 515
  • 1
  • 4
  • 16
  • 2
    That looks like managed [C++-CLI](https://en.wikipedia.org/wiki/C%2B%2B/CLI) which is a Microsoft extension of C++ for the [.NET framework](https://en.wikipedia.org/wiki/.NET_Framework). If you want to learn plain standard C++, then I suggest you [find a good beginners book to read](http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list). – Some programmer dude Jul 03 '17 at 08:55
  • C or C++? Why both the tags? – Ajay Brahmakshatriya Jul 03 '17 at 08:57
  • @Someprogrammerdude So now do I need to change Xcode to another IDE? – Hardik Patil Jul 03 '17 at 09:07
  • No, you need to learn plain simple C++. – Some programmer dude Jul 03 '17 at 09:13
  • The problem is that `C++` and `C++/CLI` are different languages. Just like `Java` and `JavaScript` they only have half their name in common. The code is totally different. – Bo Persson Jul 03 '17 at 11:01

0 Answers0