Hi i want to create a program that examines the content of a file just a text file.
My problem is i want to search for a pattern and remove then in my file for example the content of a file is:...
Type: Posts; User: sick
Hi i want to create a program that examines the content of a file just a text file.
My problem is i want to search for a pattern and remove then in my file for example the content of a file is:...
then what should be fill inorder to be completed?
#include <windows.h>
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)...
typdef int arr5[5];
typedef arr5 * p_arr5;
typedef p_arr5 arrp10[10];
arr5 togs;
p_arr5 p2;
thanks zlatko...i missed that part
1 void multiplication()
2 {
3 int i,j;
4
5 memset(temp,0,sizeof(temp));
6
7 for(i=5;i>=1;i--)
8 {
9 for(j=155;j>155-len();j--)
10 {
#include<stdio.h>
#include<string.h>
char r[6];
unsigned result[156];
unsigned temp[156];
int len()
{
int i;
for(i=0;i<=156;i++)
{
thanks
umm guys i think 0 and '\0' is the same...correct me if i am wrong
here's the proof:
#include <stdio.h>
int main(void)
{
char ar[5]="1234";
short b;
ohh thanks a lot salem for the hint....
umm there's other alternative solution than having that library??
hey my question is i have a program that computers the power and the source code is like
this:
#include <stdio.h>
int main(void)
{
int exp,c;
double pow=1,bse;
scanf("%lf...
umm btw what is the new keyword??
umm how about i use that function in input?? umm i think it couldn't be use right?? or it can be? thanks for enlightening me.......
umm just want to ask about the basic data types....
cause in c the declaration of string is like this
char str[size];
and in c++
just want to ask if there's a good tutorial in programming dll or a good book for starting dll...Thanks
thanks spidey and elysia!!! i've forgot the difference between the '\0' and the NULL pointer... :D
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
int main(void)
{
char ar[20],*p;
int a;
gets(ar);
if(a=atoi(ar))
while(*ptr)
{
while(*ptr!=' '&&*ptr)
ptr++;
if(*ptr==' ')
ptr++;
printf("%s\n",ptr);
}
i think this is...
i've rewrite the inner loop as this...and it is okay..thanks guys!!
while(*ptr)
{
while(*ptr!=' '&&*ptr++);
if(*ptr==' ')
ptr++;
...
Thank you all guys!!! laserlight,ben10,spidey...thank you all...
wait a minute guys....let me explain my function
#include <stdio.h>
#include <strings.h>
void split(const char *);
int main(void)
{
thank you all!!!! i learn a lot from you guys!!!thanks
#include <stdio.h>
#include <strings.h>
void split(const char *);
int main(void)
{
char ar[30];
gets(ar);
split(ar);
thanks guys!!!!!