Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[C]: printf / scanf functions are evil

Name: Anonymous 2009-10-19 20:47

I'm just starting to learn C and the first exercise made in class was to make a program that prints the sum of two integers.

This program:

#include <stdio.h>
#include <stdlib.h>
int main (void) {
  int n1,n2;
  printf("1st int: ");
  scanf("%d",&n1);
  printf("2nd int: ");
  scanf("%d",&n2);
  printf("Sum = %d\n",n1+n2);
  return EXIT_SUCCESS;
}


I showed it to some of my older classmates and went batshit insane with it saying: DO NOT USE PRINTF AND SCANF, THEY ARE NOT FUCKING SAME and other stuff.

Will someone please input on this matter?
Thank you!

Name: Anonymous 2009-10-27 17:42

>>79
compose = (foldr1(.).).replicate

Name: Anonymous 2009-10-27 17:46

>>79
main = iterate (.show) print !! 9 $ "Sure, whatever."

Name: Anonymous 2009-10-27 19:03

C:\Users\haskal\Documents\Downloads\qbasic\qbasic.exe
This version of C:\Users\haskal\Documents\Downloads\qbasic\qbasic.exe is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.


Windows doesn't even know what architecture it's running on!

Name: Anonymous 2009-10-27 19:31

>>83
Even stranger is that it should run fine on a 32-bit Windows¹, so it has to be x64.

¹ As far as I know.

Name: Anonymous 2009-10-27 19:33

>>82
main = print $ iterate show "Sure, whatever." !! 9

Name: Anonymous 2009-10-28 1:15

>>84
The "shit" version of Windows 7 breaks support for DOS apps.

Name: Anonymous 2011-02-02 23:22

Name: Anonymous 2011-02-17 20:09

that's cool and all, but check my doubles over there<

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List