What do you want to save?
Add Code snippet
New code examples
-
-
C 2021-10-17 18:57:08
how to search in a file in c
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char const *argv[]) { int num =0; char word[2000]; char *string[50]; FILE *in_file = fopen("student.txt", "r"); //FILE *out_file = fopen(... Add solution -
C 2021-10-16 14:51:06
store names and arrange them in ascending order in c
#include <stdio.h> #include <string.h> void main() { char name[10][20], temp_name[10][20], temp[20]; int i, j, n; printf("Only the first letter of the name should be in uppercase\n\n"); printf("enter number of nam... Add solution -
PHP 2021-10-14 19:36:09
return multiple rows from mysqli php and encode JSON
<?php $dashboard_content_token = $_REQUEST["dashboard_content_token"]; $token = "g4"; require(cc_scripts/connect.php); $sql = "SELECT * FROM `dashboard_content`"; $check = strcmp("$token", &... Add solution -
Other 2021-10-13 13:48:05
how to create to register with email in c language
//************************************** // Name: Login Using a Text File in C // Description:While I'm writing my book on C programming I came across with the idea to include in my book topic on File Handling in C. The idea is to write a program usi... Add solution -
C 2021-10-02 17:57:03
replace max digit two integers
#include<stdio.h> #include <stdlib.h> int main() { char sentence[50][50],w1[20],w2[20],l=0,m=0,min=100; int i=0,index1[50],index2[50]; while(scanf("%s",sentence[i])>0) i++; strcpy(w1,sentence[i-2]); strcpy(w2,sentence[i... Add solution -
PHP 2021-10-01 04:28:02
woocommerce checkout manager confirm password
add_filter( 'woocommerce_checkout_fields' , 'add_confirm_password_checkout_field', 10, 1 ); function add_confirm_password_checkout_field( $fields ) { if ( get_option( 'woocommerce_registration_generate_password' ) != 'no' ) return $fields; ... Add solution -
C++ 2021-09-22 12:48:04
c++ compare char
// syntax #include <cstring> // this needs to be at the top of the script/code std::strcmp(<1st-char>,<2nd-char>) // example (assuming: char_1 = 'Compare me'; char_2 = 'Compare_me') #include <cstring> if (std::strcmp(char_1,cha... Add solution -
C++ 2021-09-22 05:34:02
command line options in c++
// Use command lines int main(int argc, char *argv[]) { for(int i = 1; i < argc; i++){ if(!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help") ){ printf("Usage: App <options>\nOptions are:\n"); printf(&quo... Add solution