BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan Right Header

Register FAQ Community Calendar New Posts Navbar Right Corner
HOME BZU Mail Box Online Games Radio and TV Cricket All Albums
Go Back   BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan > Institute of Computing > Bachelor of Science in Information Technology > BsIT 3rd Semester > Object Oriented Programming

Object Oriented Programming By Mam Sidra Malik


Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #1  
Old 13-10-2008, 09:53 PM
BSIT07-01's Avatar
Addicted to Computer


 
Join Date: Sep 2007
Location: ------------
Age: 34
Posts: 1,309
Contact Number: ---------------
Program / Discipline: BSIT
Class Roll Number: 07-01
BSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant future
Default Append Function of String In C++ Programming

Execute tu nai ho raha ...
But i think that it is correct,...
Fatal errors day raha hay...
But Madam nay kaha tha sahi hay program..

Code:
#include <iostream>
#include <string>

using namespace std;





string myappend(string c,int a,char b)
{
string characters;
int n=0;
while(n<=a)
{
    characters[n]=b;
    n++;
}
c=c+characters;

return c;
}





void main()
{
string one="My string";
int n=4;
char ch='w';

one=myappend(one,n,ch);
cout<<one;

}

Reply With Quote
  #2  
Old 13-10-2008, 11:46 PM
Danish Hussain's Avatar
Teenager

 
Join Date: Oct 2007
Location: Multan
Posts: 89
Contact Number: 061-111-11-9393
Program / Discipline: ------
Class Roll Number: 07-09
Danish Hussain will become famous soon enough
Send a message via Yahoo to Danish Hussain Send a message via Skype™ to Danish Hussain
Default Re: Append Function

o thnkx bro.


__________________
DanishHussain.NET
Reply With Quote
Reply

Tags
append, function, lectures, programming, string


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Najanay Kiyoun By String; mp3 download song with lyrics .BZU. Pakistani Audio Songs 0 02-04-2010 02:46 PM
Introduction to Visual Basic Programming - Chapter number 3 Visual Programming by Deitel BSIT07-01 Visual Programming 0 20-10-2009 12:45 AM
Structured programming Chapter number 4 Visual Programming by Deitel .BZU. Visual Programming 0 11-10-2009 10:07 PM
Insert function of String in C++ BSIT07-01 Object Oriented Programming 1 13-10-2008 11:50 PM
Function BSIT07-01 Math for IT-I 1 16-11-2007 11:42 PM

Best view in Firefox
Almuslimeen.info | BZU Multan | Dedicated server hosting
Note: All trademarks and copyrights held by respective owners. We will take action against any copyright violation if it is proved to us.

All times are GMT +5. The time now is 03:05 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.