I am new to Objective C. But I know C/C++. I want to accept inputs from keyboard, let assume that its a program for adding 2 numbers.
So can I use scanf("%d %d",&a,&b); ?
I am new to Objective C. But I know C/C++. I want to accept inputs from keyboard, let assume that its a program for adding 2 numbers.
So can I use scanf("%d %d",&a,&b); ?
objective C is a superset of regular C , so you can use all the C functions like scanf() or getchar() and similar!
Yes you can. You can also rename yours file to .mm and write:
#include <iostream>
using namespace std;
cin>>a>>b;