So i started to code c++ for the first time but i took this error "c++ system cannot find specified file" what can i do ? some people saying problem is my code well here it is:
// ConsoleApplication2.cpp : main project file.
#include "stdafx.h"
#include <studio.h>
#include <stdlib.h>
#include <string.h>
using namespace System;
int main(array<System::String ^> ^args)
{
struct element
{
char isim[20];
char sembol[5];
float agirlik;
float kutle;
};
struct element X;
X.agirlik = 3.0;
X.kutle = 1.0;
strcpy(X.isim, "Hidrojen");
strcpy(X.sembol"H");
prinf("Element:\n");
prinf("%s\n",X.isim);
prinf("%s\n",X.sembol);
prinf("%2f\n",X.agilirlik);
prinf("%2f\n",X.kutle);
getchar()
Console::WriteLine(L"Hello World");
return 0;
}
i did what they said but im still taking that error
// ConsoleApplication2.cpp : main project file.
#include "stdafx.h"
#include <studio.h>
#include <stdlib.h>
#include <string.h>
using namespace System;
int main(array<System::String ^> ^args)
{
struct element
{
char isim[20];
char sembol[5];
float agirlik;
float kutle;
};
struct element X;
X.agirlik = 3.0;
X.kutle = 1.0;
strcpy(X.isim, "Hidrojen");
strcpy(X.sembol"H");
prinf("Element:\n");
prinf("%s\n",X.isim);
prinf("%s\n",X.sembol);
prinf("%2f\n",X.agilirlik);
prinf("%2f\n",X.kutle);
getchar()
Console::WriteLine(L"Hello World");
return 0;
}
i did what they said but im still taking that error