Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-programming and CPP

Index:

  • HeaderFiles
  • raylib
  • cpp
  • problemsinCPP
  • mysys

MYSYS:

  • i installed g++ using mysys/mingw

  • installed libraries via mysys

  • used those libraries

  • solved problem of manually installing libraries.

  • Header Files:

    • 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 */
  • goto() function in C:

#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);
         }

About

Code in c, cpp, and competitive coding

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages