# www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

// Yeh Full solution nai ha 2 parts ho gay hain last nai howa abe lecture 13 menay nai lia

#include <iostream>
#include <stdlib.h>
using namespace std;
void DisplayVUID();

void DisplayReverse(char[],int);
int main(){
DisplayVUID();
char VuidReverse = {'B','C','1','2','0','4','0','3','4','5','6'};
DisplayReverse(VuidReverse,11);

// Dignol wala abe lecture 13 nai lia abe loo ga aur soba solution baqi post kr do yeh bilkol theak solution ha
}
// Display Function
void DisplayVUID(){
char VUID = "BC120403456";
cout "My VUID is: ";
for(int i=0; i<12; i++){
cout VUID[i];
}
}
// Reverse Function
void DisplayReverse(char* VuidReverse, int arraysize){
cout "\nMy VUID in reverse order: ";
for(int i = arraysize - 1; i>=0; i--){
cout VuidReverse[i];
}
}

Views: 524

Attachments:

### Replies to This Discussion

#include <iostream>
#include <stdlib.h>
using namespace std;
void DisplayVUID();

void DisplayReverse(char[],int);
int main(){
DisplayVUID();
char VuidReverse = {'B','C','1','2','0','4','0','3','4','5','6'};
DisplayReverse(VuidReverse,11);

}
// Display Function
void DisplayVUID(){
char VUID = "BC120403456";
cout "My VUID is: ";
for(int i=0; i<12; i++){
cout VUID[i];
}
}
// Reverse Function
void DisplayReverse(char* VuidReverse, int arraysize){
cout "\nMy VUID in reverse order: ";
for(int i = arraysize - 1; i>=0; i--){
cout VuidReverse[i];
}
}

#include <iostream.h>
#include <conio.h>

void DisplayVUID(){
char myID={"MC123456789"};
cout "My VUID is: " myID endl;
}

void DisplayReverse(char myID){
cout "My VUID in reverse order: " ;
for(int i = 11; i>=0 ; i--){
cout myID[i];
}
cout endl endl;
}

void  StoreDiagonal(){
int  matrix={0};

matrix=1;
matrix=2;
matrix=3;
matrix=4;
matrix=5;
matrix=6;
matrix=7;
matrix=8;
matrix=9;

for(int k=0; k<9; k++){
for (int i=0; i<9; i++){
cout " " matrix[k][i];
}
cout endl;
}

}

main(){
DisplayVUID();
DisplayReverse("MC123456789");
StoreDiagonal();
getch();

}