51,593 Topics

Member Avatar for
Member Avatar for Ahmed Padela

After compiling the program, total 12 errors apreared. Please help me to resolve. All errors are shown in attachment. [code=cplusplus]#include<iostream.h> #include<conio.h> void Merge(int[],int,int[],int); void main() { int A[50],B[50],C[50],MN=0,M,N,z; clrscr(); cout<<"How many elements do U want to create first array with?(max.50)....."; cin>>M; cout<<"\n Enter first array's elememts[ascending].....\n"; for(int i=0;i<M;i++) { cin>>A[i]; …

Member Avatar for Ancient Dragon
0
71
Member Avatar for meiyantao

Hello,everybody! I'm writing a LAN communication programming,and I need to transport a file between different host computer. I know that the TCP is a kind of stream-oriented connection.But look at the fallowing codes: [code=cplusplus] void TripPlanner::sendRequest() { QByteArray block; QDataStream out(&block, QIODevice::WriteOnly); out.setVersion(QDataStream::Qt_4_1); out << quint16(0) << quint8('S') << fromComboBox->currentText() …

Member Avatar for meiyantao
0
187
Member Avatar for boyz

How many arguments can a return statement have Is this possible return(n-1,m+1) in this case what will it return and why

Member Avatar for vmanes
0
90
Member Avatar for chrisliando

Hi I am new in Visual C++ and I want to know how to get all the > information in the listView to textBox/String > variable/ to a binary file /Serialization maybe? > > So if on the listView is consists of: > > Company | Name | Address | …

0
70
Member Avatar for ganbree

I'm using Visual C++ 2005 Express. In my solution I have 2 projects, a static library project and a executable project. The problem starts because I need WinMain() inside the static library to remove almost all the platform specific code from the executable project. How you set the entry point …

Member Avatar for vijayan121
0
1K
Member Avatar for boyz

whats the output for this??? [code] var a; var b; for(a=1;a<=4;a++) { document.write(a +"<br>") for{b=3;b<=5;b++) { document.write(b +"<br>") } } [/code]

Member Avatar for joshua.tilson
0
76
Member Avatar for picass0

Is it posible to delete away a position from STL list? eg. myList have 2 4 6 8 10 1 3 9 If i want to delete away position 9 and position 9 got no value therefore it cant be deleted. so is there any way i can delete the …

Member Avatar for Ancient Dragon
0
57
Member Avatar for boyz

System Information Using C/C++ What would be the header files and the suitable codes required for generating system calls in C++ for the below mentioned purposes:- a. Number of Processes running in the system b. Number of Zombie Processes in the system c. Details of each of the processes: d. …

Member Avatar for Ancient Dragon
0
72
Member Avatar for boyz

what's the difference between: char *p[]={ "ron","is best", "harry","is good"' }; and char *p[][40]={ "ron","is best", "harry","is good"' }; as both are working quite similar for a particular program

Member Avatar for Jishnu
0
47
Member Avatar for black1
Member Avatar for joshua.tilson
0
133
Member Avatar for vigneshvh

hai viewers i am a new viciter of this site,i want to know how a c++ program will differ form a visual c++ program,in what way it will be different from each ther in oth program,pls give sujessions for it

Member Avatar for s69265
0
135
Member Avatar for boyz

Hi friends... i programmed a file handling utility in C. it works fine when compiled under TC++ with fopen() to open a file. but it crashes with error message "Page fault error" when compiled under VC++, Dev C++ etc. I need urgent resolution please help.

Member Avatar for Salem
0
51
Member Avatar for boyz

hey guys...can anyone write the code to clear the screen as clrscr() function does.... chk out this.... void main() { printf("\033[2J"); printf("\033[0;0f"); } but i couldn't able to undrstnd......can anyone xplain....

Member Avatar for Salem
0
40
Member Avatar for Blythe24

Hello- I am having trouble with a program that I have written in C++. My problem is that I can't put the name information into my structure. I am able to add in the "name" the first time around, however, on the second loop it simply skips it and goes …

Member Avatar for Blythe24
0
149
Member Avatar for boyz
Member Avatar for boyz

look at this code in c++ int main() { printf(" "); retrurn(0); } where does this 0 returns plz elaborate it completly

Member Avatar for vijayan121
0
96
Member Avatar for boyz
Member Avatar for iamthwee
0
34
Member Avatar for boyz

How to restrict cursor in crt mode window() fun is used for this purpose but when I press enter it return to next line but my commend is window(10,10,20,20); please help

0
61
Member Avatar for jbstin

hey i found out the vale of pie in a special way. i think it is interesting i am expecting some comments on this. [code=c++] #include<iostream.h> #include<conio.h> void main() { clrscr(); int n[10000]; int i,p=1,c=1; for (i=0;i<10000;i++) { if(p<7) p=p*10; n[i]=char(p/7); p=p%7; } cout<<3<<" . "; for (i=0;i<10000;i++,c++) { if(c==1800) …

Member Avatar for vijayan121
0
226
Member Avatar for boyz

hi...i m an engineering student. i have assigned a project of simulation of cpu scheduling algorithms. can u plz help me out. after calculaing all the time etc hw can i simulate the whole scheduling?

0
56
Member Avatar for towhoe260

This is my assignment. Write a program to convert between yards and meters. Your solution must utilize functions to perform the conversions. Your functions must meet these requirements: One of the functions must use pass-by-value, returning the converted measure One of the functions must use pass-by-reference to store its result …

Member Avatar for WaltP
0
755
Member Avatar for towhoe260

This is our assignmenWrite a program to convert between yards and meters. Your solution must utilize functions to perform the conversions. Your functions must meet these requirements: One of the functions must use pass-by-value, returning the converted measure One of the functions must use pass-by-reference to store its result (the …

Member Avatar for WaltP
0
202
Member Avatar for jray344

I need to write a recursive function reverseInput that until the user enters zero it keeps on accepting numbers, then when done, outputs them in reverse order. Only thing, i cannot use strings or arrays or anything of the like and it must be done in one recursive function. It …

Member Avatar for Ancient Dragon
0
117
Member Avatar for vigneshvh

hai i am a new user of this site , i want to know how can we develop a program that can be used in shops 4 billing,which should be more user friendly,having fine look,and more convienentpls tell how to do this program, tanku

Member Avatar for Ancient Dragon
0
132
Member Avatar for jray344

I don't understand functions that accept a variable number of arguments. I want to make a program with a max function taking any number of type double and returns the greatest of them

Member Avatar for jray344
0
269
Member Avatar for jbstin

Please help me to write a programme to add two matrices. The matrices should be o 3*4 and must have necessary commend lines so that i can catch it correctly. anyone help me pls?

Member Avatar for WaltP
0
115
Member Avatar for nemoo

[COLOR="Green"]here is my program i think that it's right[/COLOR] [code=c++] #include<iostream.h> int main(){ int n,i=3; cout<<"please enter number to see weither it is a prime one or not"<<endl; cin>>n; if(n==2||n==3){cout<<n<<"is prime number"<<endl;} else if(n%2==0) {cout<<n<<"\t is not prime"<<endl;} else{ for(i=3;i<n;i+=2) { if(n%i==0) {cout<<n<<"\t is not a prime number"<<endl;break;} else { …

Member Avatar for vmanes
0
107
Member Avatar for Brent.tc

I have newly made my bcstring class, and it is having some strange errors. I have given it the ability of dynamically allocating memory. If the memory to be allocated is already allocated, nothing happens (correct/non-problematic); If the memory to be allocated is greater than that that is allocated, and …

Member Avatar for Ancient Dragon
0
159
Member Avatar for Jacky1

Hi guys I wrote a c++ code but when I compile it I got some errors I couldn't figure it out course.cpp: In constructor `Course::Course(std::string, int)': course.cpp:7: error: initializer expression list treated as compound expression course.cpp:7: error: invalid conversion from `int' to `char*' main.cpp: In function `int main()': main.cpp:12: error: …

Member Avatar for zandiago
0
108
Member Avatar for Rick1980

Hello All, I know that there is a similar thread about my problem, but I can't find it anymore. Well basically I want 2 objects to know from each other. I know that in C++ I have to use pointers to do that. I wrote some sample code to show …

Member Avatar for Rick1980
0
2K
Member Avatar for sunrise2007

hi:: i back with small problem and i wish to help me. i have problem with getline() i search about the solution and i find it but the problem is still see the example [CODE]#include<iostream> #include<string> #include<iomanip> using namespace std; #include<ctype.h> void validate_name(string &name)//validate_name for each student { int i; …

Member Avatar for sunrise2007
0
89
Member Avatar for songbirdreg

pls help me i really need a program/ system that blocks call and sms messages. i has to work in nokia n70 phones. i has to work in symbian os. pls help me i really need it badly...

Member Avatar for joshua.tilson
0
72
Member Avatar for jbstin

please help me to find how to find the factorial of a number in a easy way? the methods i have seen are difficult to me .can any one heelp me to solve the problem?

Member Avatar for zandiago
0
103
Member Avatar for ace_joker_bt

I can make this program to copy diverse format wihout losts. example: C:\\animal.exe to D:\\animal.exe (The File location write in locale) [CODE=c++]#include <iostream> #include <fstream> using namespace std; int main () { char data[50]; char inputFile [100]; cout <<"Insert inputFilePatch :"<<endl; cin >> inputFile; ifstream inputFilePatch; inputFilePatch.open(inputFile); if(!inputFilePatch) { cout …

Member Avatar for ace_joker_bt
0
358
Member Avatar for ekahbelista

sir, i need your help will help me think a system i can use in my project, will discuss it briefly so that i can understand it... i need urgent answer ... thank you.... erika

Member Avatar for vmanes
0
122
Member Avatar for notorious_pan

we have a strin which is stored in a text file...we have to read that string from text file ....them we have to make the fragments of a string and we have to count tht word number of thye string...finally we have to put this string into the structure.... like …

Member Avatar for Ancient Dragon
0
107
Member Avatar for Love Story

hi everyone, it's my first thread here and i need help plz with this question below: The purpose of the program is as follows. A line of programming code is to be entered from the keyboard. Part of the code will be contained between a “Begin” string and an “End” …

Member Avatar for zandiago
0
104
Member Avatar for RichardNero

i keep getting this error (error C2447: '{' : missing function header (old-style formal list?) can someone give me a hint or help me out, I went from 23 errors to 1. [code=c++] // Enter a grade which is 1 and 100 for user. #include <iostream> using std::cin; using std::cout; …

Member Avatar for Salem
0
108
Member Avatar for Justmehere

All I want to do is for some block of code to run every 10 minutes or about. Can anyone tell me is there some standard or common way of implenting a block of code that just buys some time or is it a simple loop like the following: int …

Member Avatar for Justmehere
0
198
Member Avatar for Justmehere

Can anyone tell me if its possible to declare a function and use it with multi parameters with the special character like "..." as part of the parameter list. I'm not intested in function overloading. What is the ... used for then if I'm incorrect on its useage ? Thanks …

Member Avatar for Justmehere
0
287
Member Avatar for k88joshi

Hi , I want to read in a file that has string in it and i want to convert all those strings to hex and want to find a pattern. For Example, string = "dsofijdsoifjaslifdjaslidjlasjdlasjdlsaj" and i want to find a sequence of something in Hex: " 5A 1b 1b" …

Member Avatar for iamthwee
0
132
Member Avatar for tuxman

Hi all. First of all let me apologize by my english. I've googled a lot about my problem, but I had not find anything conclusive. I have the following piece of code: [CODE]vector < map < int , char * > > bank; bank . reserve ( 10 ); if …

Member Avatar for vijayan121
0
97
Member Avatar for danbellinger1

I am writing a program that asks for numeric input until a negative number is given. My question is how do I test for no input? I currently have: [code] if ( userInput == "" ) { cout << "NOTHING TO PROCESS" << endl; } [/code] But I get: " …

Member Avatar for Duoas
0
268
Member Avatar for spockenheit
Member Avatar for Duoas
0
90
Member Avatar for dooda

I hope that you could help me and solve this problem to me: write a program to read lines of characters and prints the average number of vowels (a,e,o,i.u) and the average number of characters digits that appear in each line. the input is terminated by by intering '$'. you …

Member Avatar for joshua.tilson
0
105
Member Avatar for Newton27

I am trying to create a C++ program that can calculate cube root. I was assigned to use the Newton-Raphson cube root. A website that speaks about it can be found here: [url]http://www.mathpath.org/Algor/cuberoot/cube.root.newton.htm[/url] Here is my overview taken from that website: X2 = 2(X1)+a(X1^2) ___________ 3 My writing of the …

Member Avatar for iamthwee
0
129
Member Avatar for jbstin

how can i make a new file and acces it from a class object? i refferd some book but i am not clear about it.

Member Avatar for Salem
0
98
Member Avatar for jbstin

can we acess the serialports of a computer using a c++ programme? ifthe answer is yes how? pleasegive me an eg. pgm.

Member Avatar for Salem
0
75
Member Avatar for jbennet

My compiler says my code isnt standard c++? [code] #include <iostream.h> //Decimal To Binary Conversion //James Duncan Bennet 2007 james.bennet1@ntlworld.com using namespace std; void binarynum(int); int main(void) { int intnum; int choice = 0; cout << endl << "Decimal To Binary Conversion" << endl; cout << endl << "Please enter …

Member Avatar for jbennet
0
152
Member Avatar for nabilchampion

Hi all I need to read a program in c/c++ in linux which shall read rtf file text and then informs me the information about the fonts properties of the text in rtf file. Can anyone tell me how to do that.. does any library exists for this that I …

Member Avatar for nabilchampion
0
1K

The End.