c++ scanf
C++
/* scanf example */
#include <stdio.h>
int main ()
{
char str [80];
int i;
printf ("Enter your family name: ");
scanf ("%79s",str);
printf ("Enter your age: ");
scanf ("%d",&i);
printf ("Mr. %s , %d years old.\n",str,i);
printf ("Enter a hexadecimal number: ");
scanf ("%x",&i);
printf ("You have entered %#x (%d).\n",i,i);
return 0;
}
Also in C++:
- Title
- jump to case label c++
- Category
- C++
- Title
- compare function in sort c++ stl
- Category
- C++
- Title
- c++ while true
- Category
- C++
- Title
- count a character in a string c++
- Category
- C++
- Title
- maximum subarray sum in c++
- Category
- C++
- Title
- c++ transform
- Category
- C++
- Title
- calling by reference and pointers c++
- Category
- C++
- Title
- how to find the mode of a vector c++
- Category
- C++
- Title
- unsorted array to bst
- Category
- C++
- Title
- c++ menu selection with arrow keys
- Category
- C++
- Title
- appending a double to a string c++
- Category
- C++
- Title
- c++ get last element in vector
- Category
- C++
- Title
- pionter in c++
- Category
- C++
- Title
- how to include seld declared header file in c++
- Category
- C++
- Title
- c++ wait for user input
- Category
- C++
- Title
- sqrt in c++
- Category
- C++
- Title
- bool function in c++
- Category
- C++
- Title
- pair in c++
- Category
- C++
- Title
- assegnare valori in c++
- Category
- C++
- Title
- Convert binary tree to a doubly linked list
- Category
- C++
- Title
- log base 10 c+_+
- Category
- C++
- Title
- making random numbers in c++
- Category
- C++
- Title
- clear console c++
- Category
- C++
- Title
- ue4 c++ struct
- Category
- C++
- Title
- c++ functions
- Category
- C++
- Title
- how to check type in c++
- Category
- C++
- Title
- generate random double c++
- Category
- C++
- Title
- queue stl c++
- Category
- C++
- Title
- c++ set add element
- Category
- C++
- Title
- fmod c++
- Category
- C++
- Title
- c++ print one line to console instead of multiple
- Category
- C++
- Title
- c++ string to vector int
- Category
- C++
- Title
- maximum subarray sum equal with K in c++
- Category
- C++
- Title
- % operator in c++
- Category
- C++
- Title
- opencv compile c++
- Category
- C++
- Title
- getch c++ library
- Category
- C++
- Title
- how to check datatype of a variable in c++
- Category
- C++
- Title
- delete 2d dynamic array c++
- Category
- C++
- Title
- solve linear equations geeksforgeeks
- Category
- C++
- Title
- variabvles in c++
- Category
- C++
- Title
- body parser
- Category
- C++
- Title
- binary tree search
- Category
- C++
- Title
- syntax c++
- Category
- C++
- Title
- how to make a n*n 2d dynamic array in c++
- Category
- C++
- Title
- how to output to console c++
- Category
- C++
- Title
- transpose matrix eigen c++
- Category
- C++
- Title
- cin.ignore
- Category
- C++
- Title
- array<string, 7> c++
- Category
- C++
- Title
- expected initializer before 'isdigit'|
- Category
- C++
- Title
- initialize int c++
- Category
- C++
- Title
- how to append one vector to another c++
- Category
- C++
- Title
- bitset c++
- Category
- C++
- Title
- pow c++
- Category
- C++
- Title
- COnvert string to char * C++
- Category
- C++
- Title
- ceil in c++
- Category
- C++
- Title
- how to compare two strings lexicographically in c++
- Category
- C++
- Title
- compile c++ linux
- Category
- C++
- Title
- c++ switch case statement
- Category
- C++
- Title
- comparing strings c++
- Category
- C++
- Title
- passing reference in c++
- Category
- C++
- Title
- Temporary file using MSFT API in cpp
- Category
- C++
- Title
- change int to string cpp
- Category
- C++
- Title
- cs1955 unity vector3
- Category
- C++
- Title
- create a dictionary cpp
- Category
- C++
- Title
- how to get input from the console in c++
- Category
- C++
- Title
- c++ code for polynomial addition
- Category
- C++
- Title
- set of vectors c++
- Category
- C++
- Title
- c++ client service ros
- Category
- C++
- Title
- C++ string format ctime
- Category
- C++
- Title
- c++ find object in vector by attribute
- Category
- C++
- Title
- check if intent has extras
- Category
- C++
- Title
- queue c++
- Category
- C++
- Title
- reverse in vector c++
- Category
- C++
- Title
- c++ crash windows
- Category
- C++
- Title
- how to ensure the user inouts a int and not anything else c++
- Category
- C++
- Title
- find in vector in c++
- Category
- C++
- Title
- matrix transpose tiling
- Category
- C++
- Title
- subarray sum in c++
- Category
- C++
- Title
- how to get a letter from the user c++ string
- Category
- C++
- Title
- list conda environments
- Category
- C++
- Title
- how to iterate over unordered_map c++
- Category
- C++
- Title
- 2927260.eps 2927262.jpg 2927263.ai License free.txt License premium.txt
- Category
- C++
- Title
- euler phi gfg
- Category
- C++
- Title
- constant variables in c++
- Category
- C++
- Title
- trovare il valore massimo in un array c++ w3
- Category
- C++
- Title
- c++ vector add element
- Category
- C++
- Title
- c++ how to skip the last element of vector
- Category
- C++
- Title
- c++ do you not inherit constructor
- Category
- C++
- Title
- namespaces c++
- Category
- C++
- Title
- c++ triple
- Category
- C++
- Title
- c++ dereference a pointer
- Category
- C++
- Title
- & in xml
- Category
- C++
- Title
- prefix sum array
- Category
- C++
- Title
- how to convert n space separated integers in c++
- Category
- C++
- Title
- maximum possible number atmost k swaps
- Category
- C++
- Title
- self in c++
- Category
- C++
- Title
- compare values within within a vector c++
- Category
- C++
- Title
- dynamic 2d array c++
- Category
- C++
- Title
- cpp create lambda with recursion
- Category
- C++
- Title
- Arrays hackerrank solution in c++
- Category
- C++