- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
B.Tech Computer Engineerig student
Re:
im working on something and i need the user to be able to enter times that things start and end. i need to know how i can store that and then compare them later. they need to be able to enter like 12:45. i was thinking i could somehow ignore … |
|
In the following code, the object is not being written into file in line 30 [ICODE]stfile.write((char*)this,sizeof(item));[/ICODE] When line 26 :[ICODE]stfile.read((char*)&ob,sizeof(item));[/ICODE] is hidden the object is written into the file. Please help!!! [CODE=C++] fstream stfile; class item { int code; char name[25]; int price; int qty; public: int getcode() { return … |
|
in the following code, getch() is executed before the file is displayed.! whats wrong? how can i correct this? [CODE='c++'] void ReadFile() { char fname[13],ch; cout<<"Enter filename : "; cin>>fname; strcat(fname,".mth"); temp.open(fname,ios::in|ios::nocreate); if(!temp) { cout<<"File does not exist!!!"; getch(); return; } temp.get(ch); while(!temp.eof()) { cout.put(ch); temp.get(ch); } temp.close(); getch(); } … |
|
i posted this problem in C++ forum and people told me its impossible. I'm using a very old version of C++ and most of its features are very similar to C. So i thought maybe you people will understand what the problem is.... In the following code, getch() is executed … |
|
Please help me in self documenting the program below. All you have to do is, take a quick glance at the following code to see if you can understand what each part is doing. If you have any difficulty in understanding(at a quick glance that is!), please tell me, so … |
|
Re:
I have been making a prime number generator. It works, but it's considerably slow if a user enters a high number. If anyone has any suggestions on how to make it faster, please post it. Here's the genrator code: [code] unsigned long int theNumber; unsigned long int Factor1 = 1, … |
|
Please help me in self documenting the program below. All u have to do is, take a quick glance at the following code to see if u can understand wat each part is doing. If u have any difficulty in understanding(at a quick glance that is!), pls tell me so … |
|
i made a program to evaluate an expression, "expeval.cpp" [find attached]. i then tried to go further..... i made the program to read characters from the keyboard and write it into a file["file.cpp",find attached]. if an expression is encountered, it is evaluated and the result is displayed after the line … |
|
Re:
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 … |
|
Hi, I'm George from India. I'm doing my last year in school. I love programming. Here for some real programming experience. To learn from all u Big B's here. |