48,985 Topics
|
|
im going to make an operating system...after completing my boot and kernel work....not i have just created a simple c++ program for my os....now i wan to convert that c++ .cpp into .bin so i can write it into floppy sector...bcoz my os will be base on floppy disk... question … |
|
I need help writing this program i have everthing set up except i cannot get the program to save the output from it. Here is a copy of my work (It will most likely suck Im new at this sorry.) Any help will be very appreciated. I need the file … |
|
Hi, i searched around and couldn't find any examples on what i'm looking for.. Im a newbie when it comes to Winsock (C++) and im not sure what im doing wrong, if you could just point me in the right direction or provide some source code that'd be very helpfull, … |
|
[code] //project.cpp //compile error-price undeclared (first use this function) #include <iostream> //don't I have it declared in the float line?? #include <fstream.h> #include <stdlib.h> using namespace std; int main() //PROBLEM: Create an input file of recently shipped music CD's. The file should consist of // the name of the album, … |
|
When this program runs, I can enter in the name the first time through the while loop (using "cin.getline). When I go through the second time, it skips the name and asks to enter the ss#. The first time through, everything works fine. [code] #include <iomanip> #include <iostream> #include <fstream> … |
|
hi i am new to this forum and my major is computer science...this is the best thing i found on the web yet....i will try to help you out anyway i can.....i need help on this program...thanks 1. create a dynamicarray to hold the first 10 odd intergers. now create … |
|
Hi, This program supposed to ask the user to enter the names and the ID numbers and the number of children the employee have, the search shoud work like this taylar 845 3 john 123 2 sara 526 2 **search by name** the user should enter the employee name he's … |
|
These two languages, for the most part, are completely different; especially now. From culture to paradigm. So let's get a seperate C forum going. |
|
HI. Hopefully I can resolve this now with your help. simply, I want to write a String to file. I have been trying it with fstream. The string comes in the form of AnsiString from a c++ Edit component. Can someone provide some code to do this. Since I cannot … |
|
Studying Computer Science on Unix platform is ussually fun expect days when you get stuck. And life get [B]tough[/B], this is one of my tough days. To make life easier with my c++ programming I wanted to use the [B]make[/B] tool under unix. I have 5 fieles : - student.h … |
|
Hye. i write this code to get inpur from user such as ram and hard disk capacity as integer type using structures. After that i want to create a file in which i want to save that data. In the code below it is getting input from user but not … |
|
HI I am trying to write and read to file. I am experimenting with a small piece of code before going onto my main program. I am simply trying to write a float variable and a String variable to file using fstream. The variables are float version; Edit1->Text (this is … |
|
[php]#include <iostream> using namespace std; class Wheel { public: Wheel(int size); int getDiameter(); protected: int diameter; }; Wheel::Wheel(int size) { diameter = size; } int Wheel::getDiameter() { return diameter; } class Bike : public Wheel { public: Bike(int f, int b); int getFrontsize(); int getBacksize(); bool operator==(Bike ); private: Wheel … |
|
Hi, I'm new here and wanting to learn C++ to a professional standard. I've been a programmer for 20 odd years mainly on mainframes using COBOL, Easytrieve, JCL etc, assembler and Databases. So some of you guys may appreciate that I like to see the code that does the manipulation. … |
|
Hi, I really need some help. I need to write a structure to disk in c++ builder. I have been trying now for a couple of weeks and I am now about to give up. I have tried fread,fwrite etc. fstream as well as TFileStream with no luck. I have … |
|
i have written a console application in c using borland c++. i want to include mouse capabilities in the program ie. run the program using the mouse just like in norton disk doctor(dos-based version). any help? :?: |
|
Greeting , it will be helpful if any one can provide me with Round Robin algorithm code in c/c++ thanks in-advance |
|
can any one provide me with the round robin algorithm code in c/c++ hurry up!!! |
|
Can anyone tell me why this is printing doubles out to the output file? [CODE] IndexFile.seekp(20, ios::beg); for (i = 0; i < NumOfSlots; i++) { if (RandomFile.peek() == 42) { Position = i; RandomFile.seekg(37, ios::cur); //cout << Position << " "; } else if (RandomFile.peek() != 42) { RandomFile.get(R.SSN, … |
|
I write the folowing code which is taking RAM and Hard disk capacity from user by using structures and than saving it to a new file after the user complete entring data it is displaying data entered by the user by opening that file. Problm is that i want to … |
|
Hello, I am new to the oop enviroment and I am more interested in using c/c++ but I can not afford to buy books on the subject. I would be extremly grateful to any one or group that can send me some c/c++ material of sort. Or tell me of … |
|
Hello again everyone. We have completed a project after a few months and a lot of help but for some reason we are still having problems. The project compiles properly without errors but the results are incorrect. Basically we are using 4 sorting algorithms in order to calculate how much … |
|
I have a project where I must use pointers to do a search on some accounts I've built up into a vector. My problem is whenever I try to pass the vector to a pointer I get an error. I've tried many different things but to no avail. Maybe one … |
|
I need a little assistance with finding the square roots of each number entered by the user in a array. I'll copy and paste what i have so far in my function, but i get an error when i try to run the program and it would say: sqrt was … |
|
I need to insert a control-break in an array after every third line. Can someone help with this? Thanks so much. -R |
|
I want to change cursor position in my C++ program. As you know, C++ does not have any command to do this. By I think, one of the h files can be used for this purpose. My Bloodshed compiler has lots of "*.h" files. But I don't know how to … |
|
I want to write a program.This program is following: The two text file named file1and file2 each hold number of English sentences.A c++ program is required to carry out the following operations. a.)Give a wrod ,it lists how many times that word appears in file1 and file2. b.)list all the … |
|
Hi Guys, Kindly help me Solve this. I have already worked on the classes that were inherited and attached after the question is the main part of my program. I have bolded the part in the question below where I need help. Thank you so much. The question is: Make … |
|
ok, call me stupid, maybe i forgot my math: but if a C++ program spits out this: -bash-2.05b$ g++ markoff.cpp -bash-2.05b$ ./a.out x = 1 y = 1 z = 2 x = 1 y = 2 z = 5 x = 2 y = 5 z = 29 x … |
|
I am a complete newbie in C++ programming. After a very basic introductory class I am now reading a little more advanced book and trying to teach myself and I am slowly learning. Anyway, the book mentions a method for calculating the cube root of a number but it doesn't … |
The End.