- HeaderFiles
- raylib
- cpp
- problemsinCPP
- mysys
-
i installed g++ using mysys/mingw
-
installed libraries via mysys
-
used those libraries
-
solved problem of manually installing libraries.
-
-
The following directory, contains, code relevant to c language, and cpp (code with harry)
-
Typically, header files have an include guard or a #pragma once directive to ensure that they are not inserted multiple times into a single .cpp file.
-
// my_class.h
#ifndef MY_CLASS_H // include guard
#define MY_CLASS_H
namespace N
{
class my_class
{
public:
void do_something();
};
}
#endif /* MY_CLASS_H */#include<stdio.h>
#include<conio.h>
#include<windows.h>
void gotoxy(short x,short y);
void gotoxy(short x,short y)
{
COORD pos={x,y};
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);
}
int main()
{
int x,y;
x=10;
y=19;
goto(x,y);
}