We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>
+ Link For Assignments, GDBs & Online Quizzes Solution
+ Link For Past Papers, Solved MCQs, Short Notes & More
Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion
How to Add New Discussion in Study Group ? Step By Step Guide Click Here.
As Salamu Alykum,
I Want To Discuss Here About How To Delete Some Characters From A String.
char text = "Hello World";
So Here What I Want To Do Is To Delete The Characters 'o' and 'r' From The String Text.
So It Will Looks Like > "Hello Wld"
Anyone Know How To Make It Work ???
I Actually Created A Function That Will Delete Some Characters In Range Like
string_delete( <string to delete> , <start point> , <end point> );
And FUnction Is Defined Like This
char string_delete( char *str, const int x1Pos, const int x2Pos )
for ( int i=x1Pos; i<=x2Pos; i++ )
str[i] = '\0';
But This Doesn't Work. Anyone Expert In It ?
.+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)
Thanks For The Reply,
You Are Right For Deleting A Single Char Or May Be 5 to 10 Char's
We Can Use Your Method And Will Work Perfectly But
What If I Want To Delete A Whole Sentence Or Whole Paragraph And Also In A Specific Range ? Will This Not Slow The Program ? Mean Setting A Loop For Every Char Will Slow The Program I Think.
There Will be A Easy Way To Do That ?
I Am In First Semester And I Didn't Reached The Classes Yet.
So Then I Have To Wait For That.......
Another Question Here
How Can I Declare And Array In A Way That The Array Automatically Get His Length According To The Value That I Gave To That Array ?
Char array = "This Is A Paragraph";
Here What I Want To Do Is That The Array Get Length 19 According To The Value That Is given To That Array.
I Don't Wan't To Give Limited Elements To That Array.
Thank You Again.
It will Still Limit The Array.
I Don't Want To Give Size For The Array.
The Array Just Automatically Get His Length According To the Value That Is Given To That Array.
Anyway Thanks For The Help & May Call You For The Help Again.