[ create a new paste ] login | about

Recent Pastes:

C++, pasted 2 minutes ago:
1
2
3
4
5
#include <stdio.h>

int main(int argc, char** argv){
    printf("Hello world");
    return 0;
...
view (6 lines, 1 line of output)
C++, pasted 10 minutes ago:
1
2
3
4
5
#include
using namespace std;

int main()
(
...
view (8 lines, 3 lines of output)
Lua, pasted 10 minutes ago:
1
2
3
4
5
function NPC_QUEST_1998(cnum,reqNumber) -- Âí³ÇGMͼ´«ËÍÓÃ

  local resultmsg, req, name, type = nil
  req = reqNumber
  name = GetHeroName(cnum)
...
view (40 lines)
Lua, pasted 11 minutes ago:
1
2
3
4
5
function NPC_QUEST_1998(cnum,reqNumber) -- Âí³ÇGMͼ´«ËÍÓÃ

  local resultmsg, req, name, type = nil
  req = reqNumber
  name = GetHeroName(cnum)
...
view (40 lines, 1 line of output)
Lua, pasted 11 minutes ago:
1
2
3
4
5
function NPC_QUEST_1998(cnum,reqNumber) -- Âí³ÇGMͼ´«ËÍÓÃ

  local resultmsg, req, name, type = nil
  req = reqNumber
  name = GetHeroName(cnum)
...
view (40 lines, 1 line of output)
C++, pasted 13 minutes ago:
1
2
3
4
5
#include<isotream>
using namespace std;

int main()
(
...
view (8 lines, 3 lines of output)
chaumoon - C++, pasted 13 minutes ago:
1
2
3
4
5
//bai 53 khai niem va cach su dung ham
	/*ham la mot khoi lenh thuc hien mot cong viec hoan chinh (module), dc dat ten va dc goi thuc thi nh lan tai nh vi tri trong chuong trinh
	ham dc goi la chuong trinh con (subroutine)
	ham co the dc goi tu chuong trinh chinh (ham main) hoac tu mot ham khac
	ham co gia tri tra ve hoac ko. neu ham ko co gia tri tra ve goi la thu tuc (procedure)
...
view (64 lines, 1 line of output)
C++, pasted 14 minutes ago:
1
2
3
4
5
#include<isotream>
using namespace std;

int main()
(
...
view (6 lines, 3 lines of output)
C, pasted 20 minutes ago:
1
2
3
4
   void main(){                /*Line 1 */
    int I, N;               /*Line 2 */
    fro(I=0, I<N, I++);	/*Line 3 */
}
view (4 lines, 2 lines of output)
C, pasted 20 minutes ago:
1
2
3
4
   void main(){                /*Line 1 */
    int I, N;               /*Line 2 */
    fro(I=0, I<N, I++);	/*Line 3 */
}
view (4 lines, 2 lines of output)
C, pasted 20 minutes ago:
1
2
3
4
   void main(){                /*Line 1 */
    int I, N;               /*Line 2 */
    fro (I=0, I<N, I++);	/*Line 3 */
}
view (4 lines, 2 lines of output)
C, pasted 20 minutes ago:
1
2
3
4
   void main() {                /*Line 1 */
    int I, N;               /*Line 2 */
    fro (I=0, I<N, I++);	/*Line 3 */
}
view (4 lines, 2 lines of output)
C, pasted 20 minutes ago:
1
2
3
4
void main() {                /*Line 1 */
    int I, N;               /*Line 2 */
    fro (I=0, I<N, I++);	/*Line 3 */
}
view (4 lines, 2 lines of output)
C, pasted 21 minutes ago:
1
2
3
4
void main() {                /*Line 1 */
    int I, N;               /*Line 2 */
    fro (I=0, I<N, I++);	/*Line 3 */
}
view (4 lines, 2 lines of output)
C, pasted 21 minutes ago:
1
2
3
4
void main() {                /*Line 1 */
    int I, N;               /*Line 2 */
    fro (I=0, I<N, I++);	/*Line 3 */
}
view (4 lines, 2 lines of output)
C, pasted 21 minutes ago:
1
2
3
4
int main() {                /*Line 1 */
    int I, N;               /*Line 2 */
    fro (I=0, I<N, I++);	/*Line 3 */
}
view (4 lines, 2 lines of output)
Python, pasted 26 minutes ago:
1
2
3
4
5
def tong(h):
    tong = 0
    while ( h > 0):
        tong += h % 10
        h  = h // 10
...
view (26 lines, 4 lines of output)
C, pasted 32 minutes ago:
1
2
3
4
5
010010111010101110101110100111010100101110101010100010111101010111111010101011001110100001010101
110101010010110
010101
101010101010101010101
010
...
view (18 lines, 6 lines of output)
Ruby, pasted 34 minutes ago:
1
2
3
4
5
# You will be given an array of numbers. You have to sort the odd numbers 
# in ascending order while leaving the even numbers at their original positions.
# 
# Examples
# [7, 1]  =>  [1, 7]
...
view (21 lines, 3 lines of output)
C++, pasted 38 minutes ago:
1
2
3
4
5
#include <iostream>
#include <iomanip.h>
using namespace std;

void MENU(){
...
view (163 lines, 3 lines of output)