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


 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 13-10-2008, 10:37 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 Insert function of String in C++

Here is what I had done in class for Insert Function..
Madam Nay Kaha tha Sahi hay..
But Not Executing here..


Code:
#include <iostream>
using namespace std;


void myinsert(char ar1[], char ar2[], int pos)
{
    int n=0;
    char temp[20];

    while(pos<=20)
    {
    
        temp[n]=ar1[pos];
        ar1[pos]=ar2[n];
        pos++;
        n++;
    }
    
    for(int m=0; m<=n; m++)
    {
        ar1[pos]=temp[m];
    }

}


void main()
{
    char myarray1[5]={'1','2','3','4','5'};
    char myarray2[5]={'6','7','8','9','0'};
    int pos=2;

    char newar[20];
    newar=myinsert(myarray1,myarray2,pos);

}

Reply With Quote
 

Tags
function, insert, lectures, 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
what is formal& informal function shmsa ETC 0 23-10-2008 02:25 PM
Append Function of String In C++ Programming BSIT07-01 Object Oriented Programming 1 13-10-2008 11:46 PM
Use of Function in C++ 1st lecture by Mam... .BZU. Object Oriented Programming 0 05-09-2008 02:53 AM
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 09:14 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.