1

Тема: Решенные задания

Подправил пару ошибок, провери все работает.

С динамическим выделением памяти (кстати тут тоже были ошибки)

#include <iostream>
using namespace std;
struct Queue
{
        int Age;
        char Sex;
};
Queue* fuller (Queue* InpQueue)
{
        InpQueue->Age = 17;
        InpQueue->Sex = 'm';
        return InpQueue;
}
void main()
{
        Queue *Id = new Queue;
        Id = fuller(Id);
        cout<<Id->Age<<endl<<Id->Sex;
        delete Id;
}

Без дин. памяти.

#include <iostream>
using namespace std;
struct Queue
{
        int Age;
        char Sex;
};
Queue* fuller (Queue* InpQueue)
{
        InpQueue->Age = 17;
        InpQueue->Sex = 'm';
        return InpQueue;
}
void main()
{       
        struct Queue arg;
                arg = *fuller(&arg);
        cout<<arg.Age<<endl;
        cout<<arg.Sex;
}

2

Re: Решенные задания

http://photoload.ru/data/b5/ad/5b/b5ad5ba050d28afdc5da20475216f4ab_pv.jpg

3

Re: Решенные задания

welcome       
Хочу продолжить нормальную работу <a href= http://maadelaidarkova.hotbox.ru/CHto-b … -nado.html >Что бы долго не кончать надо</a>  Хочу найти подходящую жену, иметь детей и отдавать им свою жизнь  <a href= http://prachbemhornnet.land.ru/Mozhno-l … gorlo.html >Можно ли кончать в горло</a>  Хочу верить в хорошее  <a href= http://maadelaidarkova.hotbox.ru/Koncha … lfiek.html >Кончать на тмных эльфиек</a>       
       
See you soon