Mirki, takiego oto Hello Worlda popełnilem http://pastebin.com/27dA5RPj(tak wiem goto) jak się podoba? Testowany tylko na Win 8.1, na innych mogą być problemy.
#programowanie #cpp #ansic #c
#programowanie #cpp #ansic #c
Wszystko
Wszystkie
Archiwum
#include
#include
#include
int main(void)
{
char str1[100], str2[100];
int cmp;
for (;;)
{
printf("Podaj dwa ciagi znakow.\n\n");
printf("Podaj 1
printf("%c[%d;%d;%dm", 0x1B, 0, 31, 47);
8
Dziś jest rocznica śmierci współtwórcy systemu UNIX, twórcy języka C i zdobywcy nagrody Turinga. Bez niego świat programistyczny, cały rynek IT byłby inny. Warto poznać i pamiętać.
zlong code;
scanf("%ld", &code);
#include < stdio.h >
main()
{
int name;
char age;
printf("Enter your name\n");
scanf("%d", &name);
printf("Enter your age\n");
scanf("%c", &age);
printf("\nYou entered that data :\n");
printf("You entered that name : %d\n", name);
printf("You entered that age : %c\n", age);
}
$ gcc dataD.C -o dataD1.c
dataD.C:1:21: fatal error: stdio.h : No such file or directory
compilation terminated.
wrzuciłem stdio.h do folderu z programem
Wykop.pl
a tutaj koles pokazuje implementacje takiego mechanizmu: http://nullprogram.com/blog/2016/03/31/ (co prawda linuks ale zasada ta sama)
#programowanie #ansic #jezykc #linux