Tag Info

New answers tagged

1

It's a warning not an error - you don't need to do anything. You (or rather, the package maintainers) would fix it by modifying the code so that it uses the return value of the fscanf function: ideally by checking that it has the expected value (i.e that the expected number of items was successfully matched and assigned). See the RETURN VALUE section of ...


0

here you have written : if ( stromp(pass, passsword) == 0 ) which is incorrect...it is strcmp function correct code is here below #include <stdio.h> #include <stdlib.h> #include <string.h> #define password "Please enter your password" int main(int args, char *argv[]) { char pass[100]; printf("Please enter your password\n\n"); ...


0

It's a bit appalling to watch. Use only uppercase alphabetical characters, underscores or numbers to define constants or macros, in order to not mix them with other symbols int main(int argc, char *argv[]) Compound statements must be grouped with {}, not with () stromp() is not a function, strcmp() is ptintf() is not a function, printf() is Use whitespace ...


2

Add the path to the header (snap-core, snap-adv, glib-core, snap-exp) and the object file Snap.o Example for: examples/graphgen/graphgen.cpp: g++ graphgen.cpp ../../snap-core/Snap.o -I../../snap-core -I../../snap-adv -I../../glib-core -I../../snap-exp


0

Add .gdbinit file to your home directory. Gdb sources this file when it starts. In this file you can define a macros for gdb and you can execute normal shell commands as well. #gdb implementation of the linux lsmod define gdblsmod set $current = modules.next set $offset = ((int)&((struct module *)0).list) printf ...


1

Using system("x-terminal-emulator -e \"/home/salman/find_location/start_yarp.sh\"")



Top 50 recent answers are included