Hmm, well thank you for your help on this. I honestly don't know why I am getting this error.. Windows XP SP2, perhaps?
Type: Posts; User: derrick
Hmm, well thank you for your help on this. I honestly don't know why I am getting this error.. Windows XP SP2, perhaps?
Here it is
I had just removed some commented lines required by my instructor.
I will attach the files.
I don't see how that's possible. I do have SP6, and just for giggles I reinstalled it. I am getting the same error.
str.h file:
#ifndef STR_H
#define STR_H
#include <iostream.h>
#include <string.h>
Student.h file
#ifndef STUDENT_H
#define STUDENT_H
#include <iostream.h>
#include "str.h"
I am getting an error:
cpp1.cpp(18) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1794)
I think this may have something to do with my header files, but...
If I am not creating an array, how do I compare two values of the same type in the class?
OK, we are being introduced to classes in my C++ class.
Here are my .h files:
// "str.h" file
class Str { //create class 'str'
What book is this from?
I only ask so I can avoid any works from that publisher. ;)
'Main' must return a value of 0 to the operating sytem, so "void main ()" is wrong. It must return a zero...
Thanks.
I found that part of my problem was an incorrect use of a struct type in my operations:
void Sortbyname(/*in*/ int count)
str n[count];
if (strcmp(s[j+1].name, s[j].grade) < 0)...
I am using MS Visual C++
Here are the errors I am receiving:
Cpp1.cpp
c:\documents and settings\user\cpp1.cpp(49) : error C2664: 'strcmp' : cannot convert parameter 2 from 'char' to 'const...
I am writing a program for my C++ class but I am getting a lot of errors. We are dealing with the new concept of arrays and structures.
I get errors in my functions regarding undeclared...