We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ 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.

For Example,

           char text[30] = "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 ?

Thanks

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 217

.

+ 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)

Replies to This Discussion

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 ?

Thanks

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 ?


For Example 
                    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.

RSS

Latest Activity

+ ! ! dAd's anGeL ❤️ liked + ! ! dAd's anGeL ❤️'s discussion -_-
1 hour ago
+ ! ! ! ! ! ! maho+++ replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
3 hours ago
+ ! ! ! ! ! ! maho+++ posted a discussion
4 hours ago
+ ! ! ! ! ! ! Sm!Le updated their profile
4 hours ago
+ Տɑíɾɑ Ƙհɑղ + replied to Asad's discussion ربا سچیا تُوں تے آکھیا سی
4 hours ago
+ ! ! ! ! ! ! maho+++ replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
4 hours ago
+ IUUOƆƎUT + replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
4 hours ago
+ ! ! S░!░N҉░G҉░E҉░R​⭐️ replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
4 hours ago
+ ! ! S░!░N҉░G҉░E҉░R​⭐️ liked + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
4 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH603 All Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MTH603 Numerical Analysis
4 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH603 All Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MTH603 Numerical Analysis
4 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH603 All Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MTH603 Numerical Analysis
4 hours ago

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.