Notices tagged with include
-
#include <stdlib.h>
int main(int argc, const char ** argv) {
char * m = (char *)&main;
m = "";
main(0, NULL);
return 0;
} -
@thefaico @liberadalinux @victorhck esto en C se puede hacer de forma sencilla:
include <termios.h>
struct termios term, termorig;
tcgetattr(STDINFILENO, &term);
termorig = term;term.clflag &= ~ECHO;
tcsetattr(STDINFILENO, TCSANOW, &term);
scanf("%49s",password);
tcsetattr(STDINFILENO, TCSANOW, &term_orig); -
well you see theres a handy little thing called #include where you can take someone elses wheel and use it in your project.
it acts as a copy/paste function because thats literally the simplest and most efficient way to do it.
gets() is deprecated and not in the C standard as of 2k11
there are many ways of safely putting user input into a string and all of them rely on the programmer not being a total retard and blindly batcaveting User Input into a fixed size box of memory.
C asks you to supply your own wheels, vectors, lists, etc... because thats the most barebones and simple thing it can do. this is why C will always be faster then any more abstract language like Rust or Go and why it is the best non assembly for embedded projects. -
well you see theres a handy little thing called #include where you can take someone elses wheel and use it in your project.
it acts as a copy/paste function because thats literally the simplest and most efficient way to do it.
gets() is deprecated and not in the C standard as of 2k11
there are many ways of safely putting user input into a string and all of them rely on the programmer not being a total retard and blindly batcaveting User Input into a fixed size box of memory.
C asks you to supply your own wheels, vectors, lists, etc... because thats the most barebones and simple thing it can do. this is why C will always be faster then any more abstract language like Rust or Go and why it is the best non assembly for embedded projects. -
//This is how you even: !nolife
#include<stdio.h>
int main(void){
int x;
printf("\n This is how you \"even\":\n Please enter a number: ");
scanf("%d", &x);
while (getchar() != '\n');
if ((x & 1) == 0) {
printf(" Even.\n ");
} else {
printf(" Odd.\n ");
}
getchar();
return 0;
}Monday, 27-Oct-14 19:05:24 UTC from web -
#include <stdio.h>
int main(void) {
printf("\n Y'all are tools.");
return 0;
}Saturday, 27-Sep-14 00:31:06 UTC from web -
#include <stdio. h>
-
Thursday, 05-May-11 12:17:52 UTC from web
-
@administrator #include <iostream> int main(){std::cout<<"hello world"<<std::endl; return 0;}