Those sorts messes up the index ( sLastname[index] ) I need the original index to display the information about that peson.
Type: Posts; User: Aakash Datt
Those sorts messes up the index ( sLastname[index] ) I need the original index to display the information about that peson.
Can someone help me with sorting lastnames alphabetically?
Does anyone know where I can find the source code that does adding, subtract, multiplying, and dividing matrices by overloading operators and using vectors and arrays?
I'm learning it and the...
Can someone do it for me...cuz I can't...
I changed it, but it still doesn't work...
Student.obj : error LNK2001: unresolved external symbol "public: void __thiscall Student::Quicksort(class std::basic_string<char,struct...
Attached is the code...
Student.obj : error LNK2001: unresolved external symbol "public: void __thiscall Student::Quicksort(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *,int)"...
Say I have an array and I want to sort it alphabetically...how would I do that? Does anyone have the code?
Please help me with the error above...(vector.h is not my program)
:confused:
How do I separate the student from the ID from the grade using getline?
#include <iostream>
#include <fstream>
#include <sstream>
using namespace std;
int main()
{
string filename = "words.txt";
ifstream input;
input.open(filename.c_str());
If I don't use struct, how else can I store their information such as grade, id number, grade, and course? Also, can I have an array inside a struct?
Misunstanding
The file must be in the following format:
Joe Blog,45478,9
Math,89,78
Science,78,89
;
Andy Allen,00012,12
Science,89,48
Math,78,69
What's a node?
How do I do that?
Also, I can't seem to make struct work in a class...where should I put it?
I'm designing a student class that reads from a file for the name, ID, grade, and courses[first and second semester]. The file will look like this:
Joe Blog,45478,9
Math,89,78
Science,78,89
;...
What can I do to line up the following:
Num:1: move disk 1 from 1 to 3.
Num:2: move disk 2 from 1 to 2.
Num:3: move disk 1 from 3 to 2.
Num:4: move disk 3 from 1 to 3.
Num:5: move disk 1...
O.K.
I changed the program around and it gave me a weird number...
#ifndef _FRACTION_H
#define _FRACTION_H
#include <iostream>
using namespace std;
class Fract
I'm getting this infamous error when i try to compile this...
fraction\fraction.h(18) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
...
O.K. When I try to separate my program into header, imple, and client, it gives me 100 errors. And also, if I use #include <iostream>, it gives me errors.
Can anyone separate this for me?
...
[code]
#ifndef _FRACTION_H
#define _FRACTION_H
#include <iostream>
class Fraction
When I use the following header,
#ifndef _FRACTION_H
#define _FRACTION_H
friend Fract operator+ (Fract first, Fract second);
friend Fract operator- (Fract first, Fract second);
friend...
Hi,
I'm writing a Fraction class that overloads the operators +, -, *, /. But I'm not sure where to the overloaded operators...
Here's my fraction.h
class Fraction
{