Computing.Net > Forums > Programming > c code

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

c code

Reply to Message Icon

Name: moreham
Date: June 21, 2009 at 00:17:13 Pacific
OS: Linux
Subcategory: C/C++
Comment:

how can i replace a string with signs for example :
john to ####



Sponsored Link
Ads by Google

Response Number 1
Name: lucas999
Date: June 21, 2009 at 23:22:46 Pacific
Reply:

And why could not you replace it ?!!!!
what's the problem with such a simple task ?


0

Response Number 2
Name: shutat
Date: June 23, 2009 at 03:03:36 Pacific
Reply:

A really basic method *may be* something like

char s[] = "john";
int i, j;

for(i=0, j=0; s[i] != '\0'; i++) {
   s[j++] = '#';
}


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: c code

Programming a proxy in C code www.computing.net/answers/programming/programming-a-proxy-in-c-code/6551.html

what does this C++ code do???!!?? www.computing.net/answers/programming/what-does-this-c-code-do/3230.html

c++ code !! www.computing.net/answers/programming/c-code-/4808.html