What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-04 18:10:04
gotoxy function in c in code blocks
#include <windows.h> // header file for gotoxy // Gotoxy function COORD coord= {0,0}; // this is global variable void gotoxy(int x,int y) { coord.X=x; coord.Y=y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),coord); } Add solution -
C++ 2021-09-28 00:51:02
sleep not declared in this scope c++
Solution: #include <unistd.h> Include unistd.h header file will solve the error. Explanation: "sleep" function in c++ context, include in header file "unistd.h" . otherwise we can see compilation error like below. prashad@ubu... Add solution -
Other 2021-09-25 09:52:03
multiple definition c++
you are defining a non-overloaded function more than once (same name and parameter) in the case you don't, most likely you should declare the function in a header file and include it, make sure not to #include "file.cpp" and instead to #includ... Add solution -
Other 2021-09-23 07:32:02
install swoole
## 下载 tioncico@tioncico-PC:/tmp$ wget https://github.com/swoole/swoole-src/archive/v4.4.23.tar.gz # 如果使用 github 下载慢,请到 pecl 进行下载 # tioncico@tioncico-PC:/tmp$ wget https://pecl.php.net/get/swoole-4.4.23.tgz ## 解压到当前目录 tioncico@tioncico-PC:/tmp$ tar -zvx... Add solution -
Javascript 2021-09-22 02:38:02
Module not found: Can't resolve './components/SearchBar/SearchBar' in 'E:\UsamaComputer\frontend\src\components\navbar'
. and .. are similar to how we use to navigate in terminal like cd .. to go out of directory and mv ~/file . to move a file to current directory. my-app/ node_modules/ package.json src/ containers/card.js components/header.js App.js ... Add solution -
C++ 2021-09-14 23:41:03
eigenvalue of matrix c++ using Eigen
#include <eigen3/Eigen/Eigenvalues> // header file #include <iostream> int main(){ Eigen::Matrix<double, 2, 2> A; // declare a real (double) 2x2 matrix A << 0, 2, 1, 0; // defined the matrix A Eigen::EigenSolver<Ei... Add solution -
Other 2021-09-13 18:58:03
Bitap Algorithm in c
/*****Please include following header files*****/ // string.h // limits.h /***********************************************/ int SearchString(const char *text, const char *pattern) { int m = strlen(pattern); unsigned long R; unsigned long patt... Add solution