はじめに 先日ツイッターで見かけた呟き pic.twitter.com/33Yk02hu1U — TOMO (@tomozh) October 14, 2020 そういうこともあるのか的な反応もあるようなので具体例を挙げてみることにする。 例1 所謂FizzBuzz問題。 #include <stdio.h> void fizzbuzz(int n) { int next; int i = 1; do { printf(i % 15 ? i % 5 ? i % 3 ? "%d\n" : "Fizz\n" : "Buzz\n" : "FizzBuzz\n", i); if (i++ >= n) next = 0; } while (next); } int main(void) { printf((char[]){""}); // この位置にprintfが無いとなぜか動かない fizzbuz
VisualC++6.0で、拡張子CPPとCの混在方法を教えて下さい。 a.cpp b.c を作って、コンパイルすると b.c VisualC++6.0で、拡張子CPPとCの混在方法を教えて下さい。 a.cpp b.c を作って、コンパイルすると b.c VisualC++6.0で、拡張子CPPとCの混在方法を教えて下さい。 a.cpp b.c を作って、コンパイルすると b.c のコンパイル時に fatal error C1010: プリコンパイル済みヘッダーの検索中に予期しない EOF を検出しました。 となります。 そこで b.c に #include "stdafx.h" を追加したのですが、 fatal error C1853: 'Debug/a.pch' プリコンパイルされたヘッダーファイルは、 このバージョンのコンパイラと互換性がありません。 やはりエラーとなってしまいます。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く