Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 4problemd.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <stdio.h>
- #include <iostream>
- #include <fstream>
- using namespace std;
- class subelement
- {
- public :char * value;
- subelement * address;
- subelement(char * val, int length)
- {
- this->value = new char[length];
- this->value = val;
- this->address = address;
- }
- ~subelement()
- {
- delete this->value;
- }
- };
- class list
- {
- private:
- int n;
- int length;
- int position;
- subelement * prev;
- subelement * first;
- public :
- list ( char * val, int length )
- {
- this->first = new subelement(val, length);
- this->length = length;
- n = 1;
- this->prev = this->first;
- this->position = 0;
- }
- void add ( char * val )
- {
- subelement *next = new subelement(val, length);
- prev->address = next;
- this->prev = next;
- next->address = 0;
- }
- };
- int main()
- {
- ifstream infile;
- ofstream outfile;
- infile.open ("radixsort.in");
- outfile.open ("radixsort.out");
- int n, k, m;
- infile >> n >> k >> m;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement