Search:

Type: Posts; User: MB1

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Try adding: #include at the top and...

    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;
  2. Thread: C++ Question

    by MB1
    Replies
    16
    Views
    2,925

    You've got the right idea here. You have to...

    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...
  3. Replies
    5
    Views
    1,645

    Thanks hk_mp5kpdw - Now I have to make a class...

    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;
  4. Replies
    5
    Views
    1,645

    Output of complex data type

    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...
  5. Replies
    9
    Views
    1,429

    I wrote all of the code except the two lines that...

    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...
  6. Replies
    9
    Views
    1,429

    I'm using notepad to test the save info. Notepad...

    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...
  7. Replies
    9
    Views
    1,429

    It's Visual C++ actually. (Maybe not too good...

    It's Visual C++ actually. (Maybe not too good though.)
  8. Replies
    9
    Views
    1,429

    C++ text editor .NET

    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.
    ...
  9. Replies
    0
    Views
    1,122

    C++ text editor .NET

    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.
    ...
  10. Thread: TCP/IP website

    by MB1
    Replies
    4
    Views
    1,946

    TCP/IP website

    Could anyone suggest a good website that gives tutorials/explainations of how to use different commands susch as telnet, snlookup, etc?

    Thanks-
  11. Thread: Text Editor

    by MB1
    Replies
    6
    Views
    1,291

    My file shows the font and size then ## like...

    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...
  12. Thread: Text Editor

    by MB1
    Replies
    6
    Views
    1,291

    Can't save to the registry. The information is...

    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...
  13. Thread: Text Editor

    by MB1
    Replies
    6
    Views
    1,291

    Text Editor

    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...
  14. Replies
    1
    Views
    3,668

    Visual C++ - FileStream

    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?...
  15. Thread: 4 x 3 memory

    by MB1
    Replies
    0
    Views
    2,359

    4 x 3 memory

    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
  16. Thread: Memory Hit Ratio

    by MB1
    Replies
    2
    Views
    2,412

    Memory Hit Ratio

    Need an example of computing the hit ratio for memory. Anyone know of any links?
  17. Replies
    6
    Views
    2,165

    Data comes from a .dat file. first last...

    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.
  18. Replies
    6
    Views
    2,165

    I got the error isdigit() cannot convert...

    I got the error isdigit() cannot convert parameter 1 from std::string to int.
  19. Replies
    6
    Views
    2,165

    Adding Scores from a string array

    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...
  20. Thread: help debugging

    by MB1
    Replies
    6
    Views
    1,379

    Thank you- That fixed that problem. Our...

    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...
  21. Thread: help debugging

    by MB1
    Replies
    6
    Views
    1,379

    help debugging

    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"...
  22. Replies
    4
    Views
    2,610

    HTML - Color generator thingy

    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/
  23. Thread: Making a .dat file

    by MB1
    Replies
    2
    Views
    1,932

    Making a .dat file

    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
  24. Replies
    11
    Views
    1,878

    function supposed to strip vowels

    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.



    ...
  25. Thread: bool function

    by MB1
    Replies
    10
    Views
    2,874

    Thanks for the input. How's this? I'm...

    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){...
Results 1 to 25 of 39
Page 1 of 2 1 2