What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-11-18 14:41:15
increase the speed of cin and cout in c++
#include <iostream> int main(int argc, char **argv) { int parity = 0; int x; //you can use scanf , printf alternatively for speed std::ios::sync_with_stdio(false);// this increases the speed of i/o while (std::cin >> x) parity ^... Add solution -
C 2021-10-12 10:17:05
how to stop scanf from adding a new line in c
For a simple solution, you could add a space before the format specifier when you use scanf(), for example: scanf(" %c", &ch); The leading space tells scanf() to skip any whitespace characters (including newline) before reading the next char... Add solution
Best helpers
JohnDoe
+5
Moo-Juice
+5
Jeff Ava
+5
RichVel
+5
Pharma
+5
Seige
+5
Parallax
+5
PixelZerg
+5
Akiman Barwa
+5
A. Pettit
+5
Andrew Lowe
+5
Meaning
+5
Mahnaz
+5
Ben Kennett
+5
Silver Rain
+5
Tralston
+5
Rahul Ramesh
+5
Jcjr
+5
Thruston
+5
Alec Cook
+5
Machisuji
+5
Catimann
+5
PeterBocan
+5