Search:

Type: Posts; User: Chimpsag

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,093

    Thanks, it works fine now, but I am getting a...

    Thanks, it works fine now, but I am getting a weird error with the actual function, like this one:


    int display_source_file(std::string fileName)
    {
    ifstream file(fileName);
    string...
  2. Replies
    4
    Views
    1,093

    Strings - functions

    I have declared the following function prototypes in "functions.h". Here is the contents of the file:


    #ifndef FUNCTIONS_H
    #define FUNCTIONS_H
    #include <string>

    int open_source_file(string);...
  3. Replies
    0
    Views
    942

    String handling question

    I was just wondering if I had a string, if I could treat it the following manner:


    string name;
    string temporary;

    name = "Doctor Pepper";
    temporary = name;

    if(temporary[0] == 'D')
  4. Replies
    2
    Views
    3,120

    strcpy problem

    I have the following code, and am trying to copy an array of charactes from one variable to another:


    char name[15];
    int age;

    cout << "Name:";
    cin.getline(n, 15);
    cout << "Age:"; cin >> a;
  5. Thread: Rom Bios

    by Chimpsag
    Replies
    2
    Views
    2,220

    sorry.....in function int86()... the ® is...

    sorry.....in function int86()...
    the &reg is actually:


    & r e g s // all together
  6. Thread: Rom Bios

    by Chimpsag
    Replies
    2
    Views
    2,220

    Rom Bios

    I have the following simple code which retreives the amount of memory from a system:



    #include <iostream.h>
    #include <dos.h>

    int main()
    {
    const MEM = 0x12;
  7. Replies
    4
    Views
    1,359

    I changed that part but the program continues to...

    I changed that part but the program continues to crash...
  8. Replies
    4
    Views
    1,359

    Simple loop/array problem

    I have the following code, which basically populates an array, and then cheks to see if one number is a multiple of another....

    I don't receive any errors, the program simply crashes as soon as it...
  9. Replies
    1
    Views
    1,172

    problem solved...

    problem solved...
  10. Replies
    1
    Views
    1,172

    TextOut problem

    If I have an integer (cxClient = 3;) and I want the TextOut function to print it...how would I do it??

    I tried:
    TextOut(hdc, 0, 0, cxClient, strlen(cxClient));
    but it says it cannot convert...
Results 1 to 10 of 10