49,761 Topics
| |
A program that can sort a list of names and telephone numbers alphabetically. Persons are sorted alphabetically by their first names. Persons with the same first name are sorted by their last names. Plz give me its code,I tried a lot but failed. | |
{ #include "stdafx.h" #include <iostream.h> #include <stdio.h> #include <string.h> class inventory { private: int prodID; char prodDescription[20]; int qtyInStock; public: inventory()//default constructor { prodID=0; strcpy(prodDescription,"-"); qtyInStock=0; } inventory(int a,char *b,int c) //constructor that initializes a new Inventoryobjects with the values passed as arguments { prodID=a; strcpy(prodDescription,b); qtyInStock=c; } }; int … | |
I am having a little trouble with my class Person program. It runs and builds without error...Yay....except I am getting 0 output. Anyone have any advice? #include <iostream> #include <string> #include <vector> #include <stdlib.h> using namespace std; class Person{ private: string name; int age; public: Person (string n, int a); … | |
In my windows8 system conio.h header file is not working.Can any body tell me any idea about working of this header file. | |
Hi! I have just started on c++ and have encountered Expression: (unsigned)(c+1) <=256 Error when I am trying to run the program. The program is suppose to generate an array of letters (lowercase and uppercase) of size from 15 to 25. After the generation, using ONLY one while-loop, try to … | |
A program that can sort a list of names and telephone numbers alphabetically. Persons are sorted alphabetically by their first names. Persons with the same first name are sorted by their last names. Following are the guidelines for program,program must include these things. Input: names and telephone numbers, Output: list … | |
write a program to take decimal number and to print equivalent character? | |
Hey guyz. It's my task to write a code in C++ which indents a pre-written code. Can any one here help me writing this ? | |
Hi everyones! I have explore and development on many programming languages as C++, python, perl, java(a little bit) and Assembly (a little bit),and web languages like html, javascript(a little bit) and PHP. Now I'm wanna create my own OS. My OS will have a simple boot file as starting up … | |
1- implement a double linked list (node contains data and left pointer to the previous node and right pointer to the next node) | |
I try copy a string to another string, but it has error with "_ps->copy(_pt,_beg,_end);". This is my code( but it is not full code): string* find_The_Longest_Word(string* _ps, int _beg, int_end) { string* _pt; _pt =new string(); _ps->copy(_pt,_beg,_end); return _pt; } | |
hello again, so i want to make a programme where the file saved is saved with different names at every loop.. like at first loop it will save as file1.txt, 2nd loop file2.txt, so on... so this is my code... #include <iostream> #include <fstream> using namespace std; int main() { … | |
This is a program..to create and search for Binary Tree.. An error is occoured for class tree ..as " Too many types in declaration". I would be glad if anyone can tell me to solve this problem. Thanks for all the support. #include<iostream.h> #include<conio.h> struct node { int data; node … | |
hello guys, i found a piece of code in the net.. this code is a progress bar loop programme. I am new to programming, and i am not able to understand this code. PLEASE can anyone explain it or tell a simpler version of it. thanks(sorry for my english) #include … | |
error: [Click Here](http://s27.postimg.org/syfgdiagz/New_Bitmap_Image.png) snippet from main.cpp: std::ifstream inFile; inFile.open ("in.txt"); TextQuery(inFile); inFile.close(); snippet from TextQuery.cpp: TextQuery::TextQuery(std::ifstream &in) { std::size_t countLine = 0; std::set<std::size_t> bucket; std::string line; while (in >> line) { m_wordStore.push_back(line); ++countLine; bucket.insert(countLine); m_queryMap[bucket] = m_wordStore; } } been trying to use std::cin to replace it as input feature … | |
Hi to all! I decided to make project about cars and their makes. Can anyone suggest some interesting functions that it might have,to make it interesting Thank you,i opned for ideas 24/7 | |
please i need help with my work.. write a program in c++ that accepts a real number with two decimal places and output the vallue in words.. [assume that no amount will exceed 999999999999.99 | |
#include<iostream.h> #include<conio.h> #include<dos.h> void main() #include<iostream.h> #include<conio.h> #include<dos.h> void main() { clrscr(); char un[4]="123",pw[4]="123",unn[3],upw[3]; for(int x=2;x<=79;x++) { gotoxy(x,2);cout<<"Û"; gotoxy(x,24);cout<<"Û"; } for(int y=2;y<=24;y++) { gotoxy(2,y);cout<<"Û"; gotoxy(79,y);cout<<"Û"; } gotoxy(5,3);cout<<"fly aboard system"; gotoxy(3,4);cout<<"username";cin>>unn; gotoxy(3,5);cout<<"password";cin>>upw; if(un[3]==unn[3] && pw[3]==upw[3]) { for(int a=1;a<30;a++) { delay(100); sound(555); cout<<"Û"; } nosound(); } else { gotoxy(3,6);cout<<"wrong"; } getch(); } | |
i just want to know how can i start to code my private GUI in c++ what libraries can i use? and is there any book or bdf can help me ? | |
I'm having a great trouble in compiling a custom header file in my project, with Visual C++ 6.0, when I open my source files and click builds, every thing goes fine, but when I try to compile header file, I receive following error, " Cannot compile 'D:\Programs\SalesP.h'; no compile tool … | |
related on the first question...which is getting the commission,,, let me correct it..if you run this code the sample output will be like below; the problem is I dont know which one will be first to make a code. the output will be like this; sample output monthly sale=15250 commission=610 … | |
I have created a class with few public and private functions to create an sqlite database and related operations.consists of 2 private member variables **A & B**. **Public functions:** to check whether database exists ,if exists open and read data A & B else call the 3 functions from private. … | |
Hi, I'm developing a software in C++/Qt5 and I would like to create a button, which when u click on it, a "status" is posted on the user own wall. So I created a facebook app on https://developers.facebook.com/ but I don't know how to configure it. Also I tried to … | |
tell me a different program in which function,array,loops and structure are used? i present it on tuesday | |
I have this program Define a function hypotenuse that calculates the length of the hypotenuse of a right triangle when the other two sides are given (22__hsideasideb=+). Use this function in a program to determine the length of the hypotenuse for each of the triangles shown below. The function should … | |
isnt this the shortest method [code=c]#include<iostream.h> #include<conio.h> void main() { clrscr(); int a,i=0; cout<<"enter a number"; cin>>a; while(a>0) { int b=a%10; a=a/10; i=i+b; } cout<<"sum="<<i; getch(); }[/code] | |
You will write a program that uses a multidimensional array having 3 rows and 8 columns and sorts each of the rows using both a bubble sort and a selection sort. You must declare the array inside of main. You will have a for loop containing the calls to bubbleSort … |
The End.