トップページ⇒tech
23コメント6KB

いいプルグラム

■ このスレッドは過去ログ倉庫に格納されています
0001デフォルトの名無しさんNGNG
どんなのがいいプログラムなのでしょうか?
0002デフォルトの名無しさんNGNG
return EXIT_FAILURE;
0003デフォルトの名無しさんNGNG
int main(int argc, char* argv[])
{
return 0;
}
0004デフォルトの名無しさんNGNG
#define alias(0) 1
#define alias(1) 0

さて、alias(x)はいくら?
0005デフォルトの名無しさんNGNG
どんなんかな〜
0006デフォルトの名無しさんNGNG
int main()
{
 throw "(・∀・)マンコー";
 return EXIT_SUCCESS;
}
0007デフォルトの名無しさんNGNG
int main()
{
throw "(・∀・)チンコー";
return EXIT_FAILURE;
}
0008デフォルトの名無しさんNGNG
//スライムヲカクヨ

char suraimu[9][9]=
{
"000040000",
"000040000",
"000444000",
"004040400",
"044444440",
"441444144",
"444111444",
"444444444",
"044444440",
};
0009デフォルトの名無しさんNGNG
int main()
{
  int *p;
  for (p = 0; p <= 0xffffffff; p++)
    *p = 0;
  return 0;
}
0010デフォルトの名無しさんNGNG
>>1
プルグラムって何だ
0011デフォルトの名無しさんNGNG
void CHoge::pull(int gram);
0012デフォルトの名無しさんNGNG
スライムこんなか?

#include <stdio.h>

int main(){

int i;

char suraimu[10][10]=
{
"000040000",
"000040000",
"000444000",
"004040400",
"044444440",
"441444144",
"444111444",
"444444444",
"044444440",
};

for(i=0;i<9;i++){
printf("%s\n",suraimu[i]);
}
return 0;
}
0013天才PGNGNG
プリグラム>>>>プログラム>>>>>>>>>>>>>>>>プルグラム
0014デフォルトの名無しさんNGNG
プログラマ<プログラマラー<プログラマレスト<グラマレスト
0015(*´Д`)ハァハァNGNG
namespace {
void put(int c, int n){ while (n--) cout.put(c); }
const int sleep_time = 75;
}
#include <windows.h>
int main()
{
const char *s = "⊂( ⊃ΦωΦ)⊃";
const size_t len = strlen(s);
while (true) {
int i = 0;
while (len+i < 79) {
put(' ', i);
cout<<s<<"\r";
Sleep(sleep_time);
i++;
}
while (i >= 0) {
put(' ', i);
cout<<"⊂(ΦωΦ⊂ )⊃\r";
Sleep(sleep_time);
i--;
}
}

return 0;
}
0016c使いNGNG
g++で動くようにせい・・・

test.cpp: function 内の `void <unnamed>::put(int, int)':
test.cpp:2: `cout' undeclared (first use this function)
test.cpp:2: (未宣言変数については、それが関数内で最初に現われた時だけ報告されま
す。)
test.cpp:5:22: windows.h: そのようなファイルやディレクトリはありません
test.cpp: function 内の `int main()':
test.cpp:9: ISO C++ forbids declaration of `size_t' with no type
test.cpp:9: uninitialized const `size_t'
test.cpp:9: 構文解析エラー が `=' トークンの前にあります
test.cpp:12: `len' undeclared (first use this function)
test.cpp:15: `Sleep' undeclared (first use this function)
0017デフォルトの名無しさんNGNG
import java.net.Socket;
public class GoodJobClass {
 public static void main( String[] args ) {
  for ( int addrr1 = 0; addr1 < 256; addr1++ ) {
   for ( int addrr2 = 0; addr2 < 256; addr2++ ) {
    for ( int addrr3 = 0; addr3 < 256; addr3++ ) {
     for ( int addrr4 = 0; addr4 < 256; addr4++ ) {
      for ( int port = 0; port < 65536; port++ ) {
       try {
        new Socket( "" + addr1 + "." + addr2 + "." + addr3 + "." + addr4, port );
       } catch ( Exception excep ) {}
      }
     }
    }
   }
  }
 }
}
0018デフォルトの名無しさんNGNG
↑addrrじゃなくてaddr
0019デフォルトの名無しさんNGNG
>>16

#include <iostream>
#include <string>
#include <vector>

#include <sys/unistd.h>

int main() {
const unsigned int sleep_time = 5000;
std::vector<string> hoge(2);
hoge[0] = " ⊂( ⊃ΦωΦ)⊃";
hoge[1] = " ⊂(ΦωΦ⊂ )⊃";

while (true) {
int i;
for (i = 0; i + hoge[0].size() < 79; ++i) {
std::cout << std::string(" ", i) << hoge[0] << '\r';
std::cout.flush();
usleep(sleep_time);
}
for (i = 79 - hoge[1].size(); i > 0; --i) {
std::cout << std::string(" ", i) << hoge[1] << '\r';
std::cout.flush();
usleep(sleep_time);
}
}

return 0;
}
002019NGNG
s/std::vector<string>/std::vector<std::string>/;
002115NGNG
(-_-)
0022デフォルトの名無しさんNGNG
/* サンプルプルプルプログラム */
002316NGNG
>15
いいねこれ(w

s/hoge1/hoge2/;
って置き換えかなんか?

屡�{ ⊂( ⊃ΦωΦ)⊃

■ このスレッドは過去ログ倉庫に格納されています