User Profile
Collapse
-
I want to say thank you Weaknessforcats for what you have to explain everything in detail and really try to help. I started learning C ++, just five months ago and is still not good at programming. I can not understand the construction of the program when it is necessary to read from a file in a linked list. Could you show an example of how to read from a file in a linked list, or say where about it normally is written. -
Read from file to linked list c++
I need to read a txt.file in a linked list , but nothing is displayed .
Code:#include <cstdio> #include <fstream> #include <iostream> using namespace std; struct MyStruct { char name[20]; char surename[20]; }; int main() { int N; cout<<"enter N: "; cin>>N;
-
read from the file into a 2d array
how to read the file into 2d array without knowing its size? -
sort linked list alphabetikally
I'm trying to sort the list alphabetically , but nothing works .But when I sort of numbers the same code all works, why.
#include <iostream>
#include <cstring>
#include <ctdlib>
using namespace std;
struct book {
char name[100];
char author[50];
int pages;
int price;
int yt;
};
struct element {
...
No activity results to display
Show More
Leave a comment: