49,761 Topics

Member Avatar for
Member Avatar for gsgikgsgik

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.

Member Avatar for Schol-R-LEA
0
154
Member Avatar for Arizal

{ #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 …

Member Avatar for Schol-R-LEA
0
172
Member Avatar for mell.mattingly

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); …

Member Avatar for rubberman
0
177
Member Avatar for SivaKing

In my windows8 system conio.h header file is not working.Can any body tell me any idea about working of this header file.

Member Avatar for rubberman
0
307
Member Avatar for Isabella Angeliese

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 …

Member Avatar for Ancient Dragon
0
808
Member Avatar for gsgikgsgik

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 …

Member Avatar for WenLiang
0
142
Member Avatar for sykopwinx

write a program to take decimal number and to print equivalent character?

Member Avatar for Ancient Dragon
0
102
Member Avatar for Mazi007

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 ?

Member Avatar for Moschops
0
77
Member Avatar for emorjon2

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 …

Member Avatar for muazzamalikazmi5
0
395
Member Avatar for man.chester.581

1- implement a double linked list (node contains data and left pointer to the previous node and right pointer to the next node)

Member Avatar for rubberman
0
170
Member Avatar for Dang_1

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; }

Member Avatar for Dang_1
0
106
Member Avatar for prince777
Member Avatar for Vikram Sehgal

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() { …

Member Avatar for deceptikon
0
512
Member Avatar for Abdul_23

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 …

Member Avatar for Abdul_23
0
200
Member Avatar for Vikram Sehgal

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 …

Member Avatar for Vikram Sehgal
0
201
Member Avatar for Vasthor

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 …

Member Avatar for Vasthor
0
356
Member Avatar for PulsarScript

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

Member Avatar for vmanes
0
102
Member Avatar for fortranlover

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

Member Avatar for vmanes
0
230
Member Avatar for alaa ashraf
Member Avatar for tharindu123

#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(); }

Member Avatar for Ancient Dragon
-1
145
Member Avatar for man.chester.581

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 ?

Member Avatar for glenwill101
0
297
Member Avatar for xidike

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 …

Member Avatar for xidike
0
190
Member Avatar for jainasamiento

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 …

Member Avatar for pritaeas
0
94
Member Avatar for amzz

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. …

Member Avatar for amzz
0
856
Member Avatar for Amir_6

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 …

Member Avatar for Amir_6
0
430
Member Avatar for mirchi mirchi

tell me a different program in which function,array,loops and structure are used? i present it on tuesday

Member Avatar for mirchi mirchi
0
114
Member Avatar for andreas.petrou.967

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 …

Member Avatar for andreas.petrou.967
0
2K
Member Avatar for ashishkadam0220
Member Avatar for biljith

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]

Member Avatar for ReaseySo
0
268
Member Avatar for acmarshall

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 …

Member Avatar for vmanes
0
204

The End.