c++ program to swap the objects of two different classes
No Answer is Posted For this Question
Be the First to Post Answer
#include <string.h> #include <stdio.h> #include <stdlib.h> #include<conio.h> void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort
1. Define a class.
i have to create a view in SQL as like in ORACLE DATA EXPRESS EDITION
A file pointer always contains the __________ of the file
what is inline function?
Can you name some types of inheritance?
What is the outcome of the line of code "cout<<abs(- 16.5);"? 1) 16 2) 17 3) 16.5
Why many objects can working together? How objects working togetherM I want to see example code.
What is encapsulation process?
Program to check whether a word is the first word of the sentence.
How to overload new operator in c++
Why do we use oop?