51,593 Topics
![]() | |
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]; … | |
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() … | |
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 | |
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 | … | |
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 … | |
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] | |
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 … | |
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. … | |
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 | |
Every New User Should Be Start From Post No.1... Ok Be Relax >>> Start Study.. | |
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 | |
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. | |
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.... | |
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 … | |
Can anyone describe the diif. between multitasking and multiprogramming... ![]() | |
look at this code in c++ int main() { printf(" "); retrurn(0); } where does this 0 returns plz elaborate it completly | |
can any body tell me how to do graphics in c++,,,,,,,,,,,,,,,,,?? ![]() | |
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 | |
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) … | |
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? | |
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 … | |
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 … | |
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 … | |
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 | |
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 | |
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? | |
[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 { … | |
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 … | |
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: … | |
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 … | |
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; … | |
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... | |
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? | |
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 … | |
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 | |
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 … | |
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” … | |
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; … | |
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 … | |
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 … | |
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 … | |
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: " … | |
How do i use parameters in a system call? For example: ipconfig /all | |
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 … | |
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 … ![]() | |
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. | |
can we acess the serialports of a computer using a c++ programme? ifthe answer is yes how? pleasegive me an eg. pgm. | |
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 … | |
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 … |
The End.