49,761 Topics

Member Avatar for
Member Avatar for zandiago

Write a c++ program that will read in, from a file entitled "word.txt", an unknown number of single words (no spaces ). The program will then print out the word, move 2 tabs to the right, display the word with the first letter removed, move 2 tabs to the right, …

Member Avatar for zandiago
0
404
Member Avatar for vincent551987vn

I must do an assignment, so it's so hard for me to do. Now, the deadline is coming sooner and sooner, i can't finish and don't know how to do it. I need someone here can help me, i give the best regard first. Here is the assignment; please send …

Member Avatar for Narue
0
241
Member Avatar for jerdawg89

trying to make a program to say the change due back after a purchase is made. this is what i have so far but it doesn't want to work so i really could use some help please. [code=cplusplus] #include <iostream> #include <string> // do not remove /******************************************************************** * User Include …

Member Avatar for Narue
0
116
Member Avatar for amorphis_gr

i hace a class in c++ bcw [code] class Student { public: private: unsigned int sIdNum; char sSurname[20]; char sFirstname[20]; char mathid[10]; };//Student [/code] i need a function that fills a Student type dynamic array from a bin file called binfile1.dta the array starts with size[30]. And then do the …

Member Avatar for Ancient Dragon
0
125
Member Avatar for frozenflame2

[code]#include <iostream.h> int main(void){ int a; int b; int c; cin >> a; cin >> b; c = a+b; cout << c; return 0; } [/code] I am trying to create an "addition machine". As of now, after I run the program, I can input a number and then another …

Member Avatar for GreenDay2001
0
94
Member Avatar for zandiago

Good day. I recently purchased a TI-84 calculator and realized that it has some programming commands as a c++ compiler would. Is it possible to load a c++ program on a ti-84 calculator...thx

Member Avatar for zandiago
0
96
Member Avatar for jumar01

i ned elp in using do while loop.. the program must be in like the username and the password.. when the pasword is incorect that you have already assigned it is backing into the beginning.. when the password is correct it ends.. the username is kulot the pasword is 1234 …

Member Avatar for iamthwee
0
100
Member Avatar for eddy518

I have to ge t the result using call by reference. I'm receiving 4 errors??? from my understanding, I have 'declared' total before main. Quite frankly, I'm not getting why not declared it on display_output nonetheless?? and why total is still not being recognized?? Thanks in advance for the help! …

Member Avatar for ChaseVoid
0
129
Member Avatar for gaggu82

can anybody pls tell me the full examples of address operator overloading,assignment operator overloading stream insertion operator overloading and stream extraction operator overloading?

Member Avatar for cerf_machine
0
75
Member Avatar for Heleo~18

I'm just a second year college student in Computer Science so please be nice..:) I have this course requirement where we were asked to make a program about any hashing technique. I chose Division because it's easier. Anyways, I'm having a hard time in getting the "highest prime number". When …

Member Avatar for cerf_machine
0
87
Member Avatar for eranga262154

Hi all, In my MFC application I've create two buttons, OPEN and CLOSE, used to open a text file and close it. I do it as follows. [CODE=cplusplus] void CSRFToolDlg::OnBnClickedOpen() { char* ReadFileName = "G:\\Work On\\CPP\\SRFTool\\text_file.txt" ; if(openFile.Open(ReadFileName, CFile::modeCreate | CFile::modeReadWrite)) { AfxMessageBox("File creates successfully", MB_OK) ; } else { …

Member Avatar for eranga262154
0
121
Member Avatar for geekychick

I'm attempting to write a function that scans a number from the user as a string and converts the string to an array of int type, then reverses the order of the array and puts zeroes where no scanned data exists (eg. program says "Enter a number up to 5 …

Member Avatar for hollystyles
0
116
Member Avatar for HoldenCfld

I have to take in a list of song names. When the user types in "mmm" then it stops, and it spits out the first and last song titles in a sorted list (alphabetically). This is what I came up with, and there's many an error, all seemingly bool errors. …

Member Avatar for HoldenCfld
0
97
Member Avatar for amt_muk

Hi friends, Can you pls tell me about "[B]explicit template instantiation[/B]". Suppose I have a simple program : 1. File : TClass.h [code] #ifndef CTCLASS_H #define CTCLASS_H template<class T> class CTClass { public: CTClass(T t1, T t2); ~CTClass(); T add(); private: T cm_T1; T cm_T2; }; template<class T> CTClass<T>::CTClass(T t1,T …

Member Avatar for amt_muk
0
176
Member Avatar for penty

I am mingle with my CS labs to find the solution of how to find the maximum and minimum number of a entered numbers,can anyoe help me note "no function and array required to manipulate data in our lab";

Member Avatar for vmanes
0
81
Member Avatar for Ashu@sym

Hi, I am a newbie, can someone please clarify the difference between "\0" and '\0' and 0 as far as C++ is concerned?? Why can't they be used inter-changeably ??

Member Avatar for Ashu@sym
-1
7K
Member Avatar for Sembhi

Could someone please give me an idea on how to do this? Suppose you have a group of people that needs to be transported on buses and vans. You can charter a bus only if you can fill it. Each bus holds 50 people. You must provide cans for the …

Member Avatar for Sembhi
0
169
Member Avatar for splash47

a) A large city has a number of colleges which offer a number of courses. A course may be offered by a number of colleges but the course fee varies between them. In order to help a user to make a decision, a program is needed to provide the following …

Member Avatar for Ancient Dragon
0
74
Member Avatar for toko

Okay i am trying to make a lock this is my code: [CODE]#include <iostream> using namespace std; int main () { char key [10]="abcd"; char answer[10]; cout<< "password:"; cin >> answer; if( key == answer) cout << "correct"; else cout << "incorrect"; return main(); }[/CODE] when ever i try to …

Member Avatar for toko
0
123
Member Avatar for Robin_Dragon

I wish to a write a program that creates an array of 100 random integers in the range for just argument sake from 1 to 200 and, then use a sequential search to search the array 100 times using randomly generated targets in the same range. Can anybody please help …

Member Avatar for Narue
0
2K
Member Avatar for nquaoser

Help! I need to copy a char array initialized as a string from one array to another, using a function containing one line of code. Here is the code: [code]#include <iostream> using namespace std; void cpystr(char *instr, char *outstr); void cpystr(char *instr, char *outstr) { [COLOR=red]//Insert line of code here[/COLOR] …

Member Avatar for n.aggel
0
336
Member Avatar for anga08628

Write a C++ program that will read user's full name into a C-string. User will enter first name followed by one or more spaces and then the last name. Also, obtain user's student ID also into a C-string. Pass the name and ID obtained along with another C-string to a …

Member Avatar for Ancient Dragon
0
163
Member Avatar for eddy518

I'm new to C++.. and killing my brain to find this 1 error and cannot figure it out!! I don't understand why square cannot equal true??? or false?? this is my 3rd program for my class to turn in!! Any help would be appreciated!! Eddy //This program allow the user …

Member Avatar for twomers
0
280
Member Avatar for rghai6

Hi, i've been trying to create a program for implementing high/low pass filters on images. I get the data from a 24 bit .bmp file using the old file handling techniques. The file handling portion of my program works like a breeze, it is the arrays that are giving me …

Member Avatar for rghai6
0
120
Member Avatar for kamlesh_ag07

i am new with c++ and as i was going through all the post i found a reserved word i.e. namespace. i am unable to know what do u mean by this and as i was trying to run the program there was a error telling "namespace name required". i …

Member Avatar for ChaseVoid
0
95
Member Avatar for berty_xx

Hi, I write program whitch read data from more industrial PC by SNMP. In program I use functions SnmpMgrOpen(agent, community, timeout, retries); SnmpMgrRequest(*session, requestType, &variableBindings,&errorStatus, &errorIndex) and SnmpMgrClose(*session). Problem is in read data. From first 3 pc data is readed correctly, but from next pc no. Function return no error, …

0
53
Member Avatar for cowboys111

Hi i am writing a program to calculate the area of a shape using functions. I got the program to work fine when there was only one function and one shape however when i added the second one the program will still run both functions. That is even when i …

Member Avatar for ChaseVoid
0
101
Member Avatar for n.aggel

hi, i am reading the book "The c++ standard library -- a tutorial and reference"{N.M.Josuttis} in the beggining of the 6th chapter it says{in regard to container initialization}:: [CODE=c++] std::deque<int> c( (std::istream_iterator<int>(std::cin)), (std::istream_iterator<int>()) );[/CODE]{the weird indentation is on purpose} instead of:: [CODE=c++]std::deque<int> c(std::istream_iterator<int>(std::cin), std::istream_iterator<int>());[/CODE] because [QUOTE="N.M.Josuttis"]In this case, c declares …

Member Avatar for n.aggel
0
112
Member Avatar for conan19870619

>>>is there any limit/constraint on the maximum number of nodes that a linked list can have? >>>a linked list does not have to be implmented with a pointer. what else can be implementeation of linked lists? >>>how can a singly linked list be implemented so that insertion requires no test …

Member Avatar for conan19870619
0
131
Member Avatar for gaming_geek

Just for notes, I'm using VisualStudio 2003. I'm working on a program that's supposed to make the Muller-Lyer illusion. I've got all of the coding done, but now when I try to run it all I get is a load of errors. First, it starts to compile the program and …

Member Avatar for Sturm
0
113

The End.