/*-*/
/********************************************************
* Question: *
* This program is supposed to count the number *
* of threes and sevens in ourdata, but it gives *
* wrong answers. Why? *
********************************************************/
/*+*/
#include <stdio.h>
char line[100]; /* line of input */
int seven_count; /* number of sevens in the data */
int data[5]; /* the data to count 3 and 7 in */
int three_count; /* the number of threes in the data */
int index; /* index into the data */
#-----------------------------------------------#
# Makefile for unix systems #
# using a GNU C compiler #
#-----------------------------------------------#
CC=gcc
CFLAGS=-g -Wall -D__USE_FIXED_PROTOTYPES__ -ansi
#
# Compiler flags:
# -g -- Enable debugging
# -Wall -- Turn on all warnings
# -D__USE_FIXED_PROTOTYPES__
# -- Force the compiler to use the correct headers
# -ansi -- Don't use GNU extensions. Stick to ANSI C.
面倒な基礎知識はwiki先生にお任せするということで(てか、最初からこちらを紹介すべきだったかな)
C https://ja.wikipedia.org/wiki/C%E8%A8%80%E8%AA%9E
C++ https://ja.wikipedia.org/wiki/C%2B%2B
C# https://ja.wikipedia.org/wiki/C_Sharp
上記を一通り読んでみれば、歴史とか用途とかもわかるかとおもいます。