User Profile
Collapse
-
please reply urgently -
-
-
hi
may be this will help u out
/* rand example */
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main ()
{
/* initialize random generator */
srand ( time(NULL) );
/* generate some random numbers */
printf ("A number between 0 and RAND_MAX (%d): %d\n", RAND_MAX, rand());
printf ("A number...Leave a comment:
-
string manipulation-II:code problem
hi
m trying to write a code that would find an abusive word from a given a string and then compare this word with the list of abusive words, maintained in an array char abusive[20], and replace them with ####.
this is how m coding it.
firstly get the first word of the string and then compare this word with all the abusive words in abusive[], and if found then replace it by ####
void main()
{... -
-
-
"Emulating " unix commands
hi people
i want to work on a project that would "emulate" unix commands like ls,rm etc... by making use of uunix system calls .
by writing programs in c++ using system calls ,these programs would work exactly the same way as the unix commands would work.
but will the unix shell accept these commanands(whic h are defined by me) ?
where should i put all these commands ?which directory?
... -
i tried this :
the problem is if the input is (say)aaass
the output it shows is a3s4
the if loop is working fine but m not able to make the value of ct to back to 1 if a match doesn occur
#include<conio. h>
#include<string .h>
#include<stdio. h>
#include<iostre am.h>
void main()
{
clrscr();
int i,j,ct=1;
char c,a[100];
cout<<"Enter"<< "\n";...Leave a comment:
-
string manipulation
hi friends
m tryng to write a program that:
1)takes the string and returns the strings in alphabetical order,including the no. of times they appera in the string.
eg:
input:dolly
output:d1l2o1y1
2)related with the above is the other program that:
"compresses " the given string
eg
input:aaaabbbbc ccdddd
output:a4b4c3d4
...
No activity results to display
Show More
Leave a comment: