I think you meant rerversing words in a string.
If words are split only by spaces the function would look like this:
Check out my function to find longest common substrings:
int LCS(const char *str1, const char *str2)...
What is the size of your array for input string? 65? :)
Show us your code (remember to use CODE tags and indentations).
Functions like clrscr or getch are very old and not recommended to use.
change_val function requires address to int, not int value:
#define PROCESS_NAME "syslog"
#define TEMP_FILE_NAME "temp.txt"
Try to overload or modify this operator definition with const char *ch parameter.
1. C++ source files should have .cpp extension, not .c .
2. Include files for C++ standard library don't require .h extension:
I don't quite get why p,p,p,p,p should be the result. I'm giving you the algorithm to calculate sum and difference for each pair,...
sprintf doesn't handle b format specifier
Read more about printf
const char *p;
int i, j, a;
p = "(0,1)";
p = "(0,5)";
'mysql_real_connect' : too few arguments for call
Which part of this error message you don't understand?
mysql_real_connect function requires...
This is what you get when you explicitly cast pointer returned by malloc. To call this function an appropriate header needs to be included -...
typedef struct solution_s
while ((ch = getchar()) != '\n' && ch != EOF);
1. Every programming language has its specific syntax. You cannot simply write mathematical expression, it is required to use some symbols called...
Replace your for loop with this do...while
int seconds = 30;
time_t timeout = time(NULL) + seconds;
Separate names with a comma.