senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Notices tagged with include

  1. zunda (zundan@mastodon.zunda.ninja)'s status on Wednesday, 03-Aug-2022 11:56:18 JST zunda zunda

    ドドスコ投稿したいのでT-Mobileにテザリングしましたよ。Cでの配列の書き方を忘れてたw

    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>

    int main(void)
    {
    time_t t;
    unsigned int h = 0;
    char *ds[] = {"スコ", "ドド"};
    char *love = "ラブ注入♡";

    srand((unsigned) time(&t));
    while(h != 0x888)
    {
    h = rand() % 2 + (h * 2) & 0xFFF;
    printf("%s", ds[h & 1]);
    }
    puts(love);
    return EXIT_SUCCESS;
    }

    In conversation Wednesday, 03-Aug-2022 11:56:18 JST from mastodon.zunda.ninja permalink
  2. がくかんせつしょう (heislandmine@heislandmine.work)'s status on Thursday, 17-Mar-2022 13:19:30 JST がくかんせつしょう がくかんせつしょう

    #include<tintin.h>

    In conversation Thursday, 17-Mar-2022 13:19:30 JST from heislandmine.work permalink
  3. のえる (noellabo@fedibird.com)'s status on Monday, 21-Feb-2022 19:07:48 JST のえる のえる

    #include <misskey.io>

    In conversation Monday, 21-Feb-2022 19:07:48 JST from fedibird.com permalink
  4. やきたまちゃんはおしまい! (yakitama@mstdn.yakitamago.info)'s status on Thursday, 17-Feb-2022 11:06:23 JST やきたまちゃんはおしまい! やきたまちゃんはおしまい!

    #include<stdio.h>

    In conversation Thursday, 17-Feb-2022 11:06:23 JST from mstdn.yakitamago.info permalink
  5. zunda (zundan@mastodon.zunda.ninja)'s status on Friday, 28-Jan-2022 11:47:51 JST zunda zunda

    $ cat shuffle.c #include <stdlib.h>#include <stdio.h>#include <ctype.h>#include <time.h>

    #define utf8_head(c) (((c) & 0xC0) != 0x80)

    intmain(void){ char input[BUFSIZ], *runes[BUFSIZ]; char output[BUFSIZ]; size_t len, i, j; char *ptr;

    fgets(input, sizeof(input), stdin); fclose(stdin);

    ptr = input; while(*ptr) { if (utf8_head(*ptr) && *ptr != '\n') { runes[len] = ptr; len++; } ptr++; }

    srand((unsigned)time(NULL)); for(i = 0; i < len - 1; i++) { j = i + rand() % (len - i); ptr = runes[j]; runes[j] = runes[i]; runes[i] = ptr; }

    ptr = output; for(i = 0, ptr = output; i < len; i++) { j = 0; do { *ptr = *(runes[i] + j); j++; ptr++; } while(!utf8_head(*(runes[i] + j))); } *ptr = '\n'; *(ptr + 1) = '\0';

    fputs(output, stdout); return EXIT_SUCCESS;}$ gcc -Wall shuffle.c && echo ねむいね | ./a.outいむねね

    むっちゃ長くなったw

    In conversation Friday, 28-Jan-2022 11:47:51 JST from mastodon.zunda.ninja permalink
  6. 酸性雨 (acid_rain@amefur.asia)'s status on Wednesday, 26-Jan-2022 18:50:33 JST 酸性雨 酸性雨

    #include <stdio.h> // おまじない

    In conversation Wednesday, 26-Jan-2022 18:50:33 JST from amefur.asia permalink
  7. らりお・ザ・何らかの🈗然㊌ソムリエ (lo48576@mastodon.cardina1.red)'s status on Monday, 16-Aug-2021 21:07:28 JST らりお・ザ・何らかの🈗然㊌ソムリエ らりお・ザ・何らかの🈗然㊌ソムリエ

    #include <io.h>

    In conversation Monday, 16-Aug-2021 21:07:28 JST from mastodon.cardina1.red permalink
  8. ゆめぴょい伝説🍚 (ym@fedibird.com)'s status on Tuesday, 13-Jul-2021 15:50:33 JST ゆめぴょい伝説🍚 ゆめぴょい伝説🍚

    #include<stdio.h>int main(void){

    printf("ちんぽ");

    }

    In conversation Tuesday, 13-Jul-2021 15:50:33 JST from fedibird.com permalink
  9. せのお (妹尾 賢) (senooken@social.senooken.jp)'s status on Tuesday, 22-Jun-2021 10:48:29 JST せのお (妹尾 賢) せのお (妹尾 賢)
    C言語の構造体がわからない。
    #include <time.h>
    struct tm t = {0};
    構造体変数はアドレスなのか?tと&tは違うの?配列だと、変数名はアドレスなんだけど、構造体はどうだったけ。
    In conversation Tuesday, 22-Jun-2021 10:48:29 JST from web permalink
  10. 白林檎美和@一般丼。 (whtapple@ippandon.hopto.org)'s status on Monday, 17-May-2021 20:13:18 JST 白林檎美和@一般丼。 白林檎美和@一般丼。
    in reply to

    work/ruby-3.0.1/internal/bits.h が #include <x86intrin.h> してないせいと判明。

    #if defined(HAVE_X86INTRIN_H) && ! defined(MJIT_HEADER)# /* Rule out MJIT_HEADER, which does not interface well with <immintrin.h> */# include <x86intrin.h> /* for _lzcnt_u64 */#elif MSC_VERSION_SINCE(1310)# include <intrin.h> /* for the following intrinsics */#endif

    条件つきで #include するやう書かれてるけど, FreeBSD 13.0R標準のclang 11.0.1だと,この条件に合わずスルーしてまった。

    In conversation Monday, 17-May-2021 20:13:18 JST from ippandon.hopto.org permalink
  11. sonota88@qiitadon.com's status on Wednesday, 03-Feb-2021 08:17:56 JST sonota88 sonota88
    in reply to

    グローバル定数はこれでよいので、プリプロセッサでは #include 相当の処理だけやれば良さそう

    In conversation Wednesday, 03-Feb-2021 08:17:56 JST from qiitadon.com permalink
  12. らりお・ザ・何らかの🈗然㊌ソムリエ (lo48576@mastodon.cardina1.red)'s status on Thursday, 23-Jul-2020 18:10:49 JST らりお・ザ・何らかの🈗然㊌ソムリエ らりお・ザ・何らかの🈗然㊌ソムリエ
    in reply to

    Sudo Stable Releasehttps://www.sudo.ws/stable.html#1.9.1

    > The @ include and @ includedir directives can be used in sudoers instead of #include and #includedir. In addition, include paths may now have embedded white space by either using a double-quoted string or escaping the space characters with a backslash.

    1.9.1 で入った変更らしい

    In conversation Thursday, 23-Jul-2020 18:10:49 JST from mastodon.cardina1.red permalink
  13. RHEL (hswugbhxwsz@best-friends.chat)'s status on Thursday, 23-Jul-2020 11:33:49 JST RHEL RHEL

    #include とか #define で検索するとC言語の学習できるのでおすすめ(?)

    In conversation Thursday, 23-Jul-2020 11:33:49 JST from best-friends.chat permalink
  14. p (p@freespeechextremist.com)'s status on Saturday, 21-Sep-2019 06:32:22 JST p p
    • p
    @TerminalState File sizes just got bigger.

    The true future is bytebeat, though. A song of arbitrary length in a paltry 256 bytes of C that generates a raw 16-bit PCM stream, stereo, 44.1kHz, right to standard output.

    #include <unistd.h>

    short nx(long t) {
    return
    ((t<<2)|((~(t>>1)&0x1ff)*(0x1ff&(0xb494afeba585585aL)>>(((t>>14)^(t>>21))%56))))
    /**/;
    }

    int main(int argc, char **argv) {
    long t;
    short r;
    for(t=0;;t++) {
    r = nx(t);
    write(1, &r, sizeof(r));
    }
    }
    In conversation Saturday, 21-Sep-2019 06:32:22 JST from freespeechextremist.com permalink
  15. jorty (jordyd@octodon.social)'s status on Thursday, 02-May-2019 09:27:30 JST jorty jorty
    • jorty

    trending among C programmers:
    - #include
    - #ifdef
    - #endif

    In conversation Thursday, 02-May-2019 09:27:30 JST from octodon.social permalink
  16. sumiyaki (sumiyaki@plr.ph3j.com@plr.ph3j.com)'s status on Wednesday, 20-Feb-2019 04:31:20 JST sumiyaki sumiyaki
    in reply to
    • sumiyaki
    以下、元の文のつもり。
    Markdownのテスト。
    # があると、hashtagになってしまうか?
    改行はどうなるか?

    [Twitterの使い勝手の悪さ、TwitterのCEOも認める](https://it.srad.jp/story/19/02/15/0730231/)
    ストーリー by hylom 2019年02月16日 7時00分いまさら 部門より

    ```
    #include <stdio.h>
    int main(int argc, char *args[])
    {
    printf("Hello, world!\n");
    }
    ```
    In conversation Wednesday, 20-Feb-2019 04:31:20 JST from plr.ph3j.com permalink

    Attachments

    1. Twitterの使い勝手の悪さ、TwitterのCEOも認める | スラド IT
      あるAnonymous Coward曰く、Twitterの最高経営責任者(CEO)で共同創業者のJack Dorsey氏が、Recodeの共同創業者であるKara Swisher氏とのツイートを通じたインタビューを行った。しかし、この試みは失敗に終わったようだ(Recode、CNET Japan、Slashdot)。このインタビューは「#Karajack」というハッシュタグを使って行...
  17. sumiyaki (sumiyaki@plr.ph3j.com@plr.ph3j.com)'s status on Wednesday, 20-Feb-2019 04:28:37 JST sumiyaki sumiyaki
    • sumiyaki

    Markdownのテスト。

    があると、hashtagになってしまうか?

    改行はどうなるか?

    Twitterの使い勝手の悪さ、TwitterのCEOも認めるストーリー by hylom 2019年02月16日 7時00分いまさら 部門より

    #include <stdio.h>int main(int argc, char *args[]){    printf("Hello, world!\n");}
    In conversation Wednesday, 20-Feb-2019 04:28:37 JST from plr.ph3j.com permalink
  18. zunda ? nはおまけ :green_dango: (zundan@mastodon.zunda.ninja@mastodon.zunda.ninja)'s status on Tuesday, 22-Jan-2019 10:16:15 JST zunda ? nはおまけ :green_dango: zunda ? nはおまけ :green_dango:

    やっぱりfork爆弾になりそう

    $ cat bumb.c
    #include <unistd.h>
    #include <stdio.h>

    int main(void)
    {
    int n;
    int pid;
    while (pid == 0 && n < 3) {
    n++;
    pid = fork();
    }
    printf("pid=%d\n", pid);
    return 0;
    }
    $ gcc bumb.c && ./a.out
    pid=26320
    pid=26321
    pid=26322
    pid=0

    In conversation Tuesday, 22-Jan-2019 10:16:15 JST from mastodon.zunda.ninja permalink
  19. tsumiki :blabcatverified: (ivesen@miniwa.moe)'s status on Friday, 28-Dec-2018 10:21:21 JST tsumiki :blabcatverified: tsumiki :blabcatverified:
    • Fence
    @fence shouldn't it just do that when you use #include <> ?
    In conversation Friday, 28-Dec-2018 10:21:21 JST from miniwa.moe permalink
  20. S.H. (sh@gamelinks007.net@gamelinks007.net)'s status on Friday, 07-Dec-2018 23:47:09 JST S.H. S.H.

    お、templateにラムダ式渡してthreadでよしなにできた?

    #include <iostream>
    #include <future>
    #include <array>
    #include <functional>

    template <typename T, typename F>
    void func(const T& t, F&& f) {
    f(t);
    }

    int main() {
    std::array<std::thread, 9> th_array;

    std::function<void(int)> f = [](int i){std::cout << i;};

    for(int i =0; i < 9; i++)
    th_array[i] = std::thread(func<int, decltype(f)>, i, f);

    for(auto&& t : th_array)
    t.join();

    return 0;
    }

    In conversation Friday, 07-Dec-2018 23:47:09 JST from gamelinks007.net permalink
  • Before

Feeds

  • Activity Streams
  • RSS 1.0
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.