Try adding: #include <conio.h> at the top and getch(); the line before return.
#include <conio.h>
#include <iostream>
using namespace std;
int main() {
double ctemp, ftemp;
Type: Posts; User: MB1
Try adding: #include <conio.h> at the top and getch(); the line before return.
#include <conio.h>
#include <iostream>
using namespace std;
int main() {
double ctemp, ftemp;
You've got the right idea here. You have to change the gregorian date format of mm/dd/yyyy to an integer (julian day) so that you can do your calculations. Once you get your answer, you have to...
Thanks hk_mp5kpdw -
Now I have to make a class QueueL that works with class LList.
So much to learn.
Changed to:
cout << C.ValueAt(0) << endl;
Having trouble trying to figure out how to output complex data type to a console. My line of code:
cout << C.ValueAt(0) << endl;
gives me error C2679 as follows:
c:\Documents and...
I wrote all of the code except the two lines that start:
private: System::Void OpenBtn_Click....
and
private: System::Void SaveBtn_Click.....
These two lines are what the compiler writes...
I'm using notepad to test the save info. Notepad shows:
$$
arial
;
12
$$
My text that I have saved to a file.
So I know the info is being saved properly. When I open the text in my...
It's Visual C++ actually. (Maybe not too good though.)
I want a text editor that can open a file in the same format the file is saved in. Everything works except for the editor opening the file in the same format that the file was saved in.
...
I want a text editor that can open a file in the same format the file is saved in. Everything works except for the editor opening the file in the same format that the file was saved in.
...
Could anyone suggest a good website that gives tutorials/explainations of how to use different commands susch as telnet, snlookup, etc?
Thanks-
My file shows the font and size then ##
like this->Microsoft Sans Serif8.25## testing one two three
When I open the file, text editor is supposed to read the saved format of Microsoft Sans...
Can't save to the registry. The information is supposed to be saved to a file and when the file is open, my text editor will read the font name and size then display as such.
Was actually trying...
I am finishing up my text editor that saves the font and size and then displays the text according to the saved info. So far I have the program writing the font name and size then $$ to mark the end...
I'm trying to make a text editor with open, save, and font buttons.
I copied the code off the board in class and obviously incorrectly.
FileStream is an undeclared identifier.
Suggestions?...
I have a diagram of a 4x3 memory and have to trace the steps to read a word. Can anyone suggest a website that will help me? I'm having trouble weeding out some of the AND gates.
Thank you
Need an example of computing the hit ratio for memory. Anyone know of any links?
Data comes from a .dat file.
first last test1 test2 test3 test4
I think I hit the .eof() loop so I changed to a for() loop.
I got the error isdigit() cannot convert parameter 1 from std::string to int.
I have to do the read a string, accumulate the scores, and get the average from records.dat.
The string includes name and test scores.ie John Smith 99 89 88 91.
My problem is that I can't...
Thank you-
That fixed that problem.
Our class uses: C++ Program Design by Cohoon and Davidson, 3rd edition. Don't like it too much.
Can you recommend any books on C++ that are...
I'm supposed to open a .dat file and compute the average grade for some students, assign a letter grade and then cout the results.
I'm getting: LNK2001: unresolved externatl symbol "double"...
I used to have a small program that would show colors and codes. Does anyone know of where I could find one?
Like this, only portable.
http://www.visibone.com/colorlab/
Is there anything special to do? My book only says to make a .dat file and use a header line. Is there any special coding?
Thanks,
MB1
I'm getting errors saying that Index and Input are undeclared identifiers. They are declared. Suggestions?
The idea is to create a functions to read a string and output the consonants.
...
Thanks for the input.
How's this? I'm supposed to determine if I am at the end of a sentence. If '.' or '?' or '!', return true, else return false.
bool IsEndOfSentence(char MyChar){...