User Profile

Collapse

Profile Sidebar

Collapse
xxzl
xxzl
Last Activity: Jun 4 '15, 08:01 AM
Joined: May 25 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • xxzl
    replied to Read from file to linked list c++
    in C
    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.
    See more | Go to post

    Leave a comment:


  • xxzl
    started a topic Read from file to linked list c++
    in C

    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;
    ...
    See more | Go to post

  • xxzl
    started a topic read from the file into a 2d array
    in C

    read from the file into a 2d array

    how to read the file into 2d array without knowing its size?
    See more | Go to post

  • xxzl
    started a topic sort linked list alphabetikally
    in C

    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 {
    ...
    See more | Go to post
No activity results to display
Show More
Working...