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...
Type: Posts; User: Chimpsag
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...
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);...
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')
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;
sorry.....in function int86()...
the ® is actually:
& r e g s // all together
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;
I changed that part but the program continues to crash...
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...
problem solved...
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...