Ir ao conteúdo

Estrutura de dados, C

Boa tarde galera,

Então, neste semestre estou tendo aula de estrutura de dados, o meu professor Aldo von Wangenheim, resolveu utilizar C na parte inicial da aula, e posteriormente C++. Um curso para linguagem C, que ele passou para os alunos que não tinham conhecimento na linguagem é este. Na segunda ou terceira aula, também já passou uma lista de 5 exercicios sobre C pra galera resolver e ir pegando a manha. Eu e o Olav, resolvemos os mesmos e vamos disponibilizar aqui, junto com a lista de exercicios. Assim você que quer pode aprender por conta propria, ou você que precisa dos trabalhos e não quer faze-los pode copiar (recomendo fazer, pra aprender).

Lista de exercicio (5) para iniciantes
Os 5 exercicios resolvidos

PS: O link levara a uma outra pagina com descrição dos arquivos, onde você deve fazer o download dos mesmos.

Até a próxima,
Matheus

Publicado emAprendendoCEstrutura de Dados

55.170 Comentários

  1. Слушайте кто знает Отец не выходит из штопора Дети напуганы Таблетки не помогают Короче, единственный кто реально помог — врач нарколог на дом с капельницей Осмотрел и поставил капельницу В общем, вся инфа по ссылке — вызов нарколога вызов нарколога Не ждите пока станет хуже Перешлите тем кто в такой же ситуации

  2. Люди помогите советом Близкий человек уже несколько дней в запое Дети напуганы Нужен врач прямо сейчас Короче, единственный кто реально помог — нарколог домой с препаратами Через пару часов человек пришёл в себя В общем, вся инфа по ссылке — нарколога на дом нарколога на дом Звоните прямо сейчас Перешлите тем кто в такой же ситуации

  3. Нижний Новгород, всем привет Брат снова сорвался Родственники не знают что делать В больницу тащить страшно Короче, врач приехал и поставил систему — вызов нарколога на дом быстро Приехал через 40 минут В общем, не потеряйте контакты — врач нарколог выезд https://zapoj.narkolog-na-dom-nizhnij-novgorod-3.ru Нарколог на дом — это реальный выход Перешлите тем кто в такой же ситуации

  4. Люди помогите советом Отец не выходит из штопора Жена в истерике В больницу тащить страшно Короче, единственный кто реально помог — помощь нарколога на дому эффективно Через пару часов человек пришёл в себя В общем, вся инфа по ссылке — вызвать нарколога на дом анонимно вызвать нарколога на дом анонимно Нарколог на дом — это реальный выход Перешлите тем кто в такой же ситуации

  5. Hey everyone Been searching for a decent luxury rental in Miami for weeks Tried like 8 different companies last year The only rental spot that actually keeps their promises — luxury car rental free airport delivery Staff super professional Anyway, full fleet and pricing there — rental car in miami https://www.pinterest.com/pin/1092122978527737203 Don’t fall for those sketchy rental agencies Send this to anyone planning a Miami trip in style

  6. Слушайте кто сталкивался Отец не выходит из штопора Соседи стучат в стену Таблетки не помогают Короче, единственное что вытащило из запоя — вывод из запоя на дому срочно Приехали через 40 минут В общем, вся инфа по ссылке — вывод из запоя на дому самара вывод из запоя на дому самара Вывод из запоя на дому — это реальный выход Перешлите тем кто в такой же ситуации

  7. Люди подскажите Муж просто потерял себя Дети напуганы В больницу тащить страшно Короче, только это реально спасло — нарколог на дом круглосуточно без выходных Приехал через 40 минут В общем, вся инфа по ссылке — выезд нарколога на дом воронеж https://czena.narkolog-na-dom-voronezh-14.ru Звоните прямо сейчас Перешлите тем кто в такой же ситуации

  8. Нижний Новгород, всем привет Брат снова сорвался Дети напуганы В больницу тащить страшно Короче, только это реально спасло — нарколог на дом цена доступная Дал рекомендации и успокоил семью В общем, жмите чтобы сохранить — вызов нарколога на дом https://zapoj.narkolog-na-dom-nizhnij-novgorod-3.ru Не ждите пока станет хуже Перешлите тем кто в такой же ситуации

  9. Williamvuh Williamvuh

    Клиника «Метод Довженко» принимает пациентов в Москве по адресу: Столярный переулок, 3к18. Узнать цены, заказать консультацию, оставить заявку, уточнить порядок поступления в стационар или задать вопросы дежурным консультантам можно по номерам 8 (800) 301-53-09 и +7 (499) 403-16-12. Звонок не обязывает сразу ехать в центр: специалист спокойно объяснит, что делать в конкретном случае, какие данные подготовить, нужен ли выезд нарколога к дому или лучше сразу выбрать стационарное лечение.
    Получить больше информации – вывод из запоя в клинике москва

  10. Здорова, народ Ситуация критическая Родственники не знают что делать В больницу тащить страшно Короче, только это реально спасло — вывод из запоя на дому цена доступная Сняли ломку и стабилизировали состояние В общем, не потеряйте контакты — вывод из запоя на дому вывод из запоя на дому Вывод из запоя на дому — это реальный выход Перешлите тем кто в такой же ситуации

  11. OK — been using this thing for maybe five months now and I keep coming back, so figured I’d say something since someone asked me last week. I’m UK based, mostly do football and horses, small stakes, for context.

    How I found it was genuinely pretty stupid — I never could figure out what an ew return actually was once you get five places instead of three. Basically I’d eyeball it and get a shock. Now type the odds in before every slip, even the boring singles.

    The single bet calculator tool is the one I open most — you drop in your stake, the odds and it spits out profit and total return instantly, either odds format. It also handles the multiples — trebles returns, a lucky 15, yankees, and that’s where most people I know got it wrong. If you want a look, it’s over at ew single — free, no signup.

    One thing that actually made a difference were the nerdier bits. The odds-to-probability thing that shows the overround, and a kelly tool — I use half kelly as the full version is terrifying. The dutch tool gets used a fair bit if I’m spreading across selections.

    Couple of gripes. The interface feels a bit basic — not much flash, looks like it was built by someone who cares more about maths than colours. On mobile it’s fine but the bigger tables need a bit of scrolling. Also there’s no app, just the site — doesn’t bother me but you asked.

    So yeah. Costs nowt, no ads shoved in your face, does the job. If anyone honestly does the maths on paper, have a look — saves me a fair few arguments with the bookie.

  12. Нижний Новгород, всем привет Муж просто потерял себя Родственники не знают что делать Таблетки не помогают Короче, врачи приехали и поставили систему — вывод из запоя нижний новгород с выездом Приехали через 40 минут В общем, вся инфа по ссылке — капельница от запоя на дому круглосуточно https://alkogolizm.vyvod-iz-zapoya-na-domu-nizhnij-novgorod.ru Вывод из запоя на дому — это реальный выход Перешлите тем кто в такой же ситуации

  13. Люди подскажите Близкий человек уже несколько дней в запое Соседи стучат в стену В больницу тащить страшно Короче, только это реально спасло — нарколог домой с препаратами Через пару часов человек пришёл в себя В общем, вся инфа по ссылке — вызов нарколога на дом воронеж https://czena.narkolog-na-dom-voronezh-14.ru Звоните прямо сейчас Перешлите тем кто в такой же ситуации

  14. OK — have been messing about with this thing for something like five months now and it’s stuck on my phone, so figured I’d chuck my thoughts in since a lad on another thread asked me a few days back. Am UK based, mainly bet football and racing, nothing mad, so take it how you like.

    The reason I started using it was honestly a bit daft — I never could work out what an e/w payout actually was with 1/5 odds a place. Basically I’d eyeball it and get a shock. These days I type the odds in before every slip, even the boring singles.

    Their single bet calculator tool is the one I’m on daily — you drop in stake and odds and it shows returns instantly, either odds format. It also handles the bigger stuff — trebles returns, lucky 15s, patents and yankees, and that’s where I’d always lose track. Have a go yourself, it lives at each way double calculator — free, no signup.

    One thing that actually shifted things for me was the more serious tools. They’ve got an odds-to-probability thing and it makes obvious how much the bookie’s taking, plus a kelly staking calculator — I stick to fractional kelly since full stakes are far too aggressive. Dutching calculator gets used a fair bit when I’m covering two or three runners.

    It’s not perfect mind. The interface is pretty plain — zero frills, it’s clearly function over form. On my phone it’s fine though the acca grid are a squeeze. Also there’s no proper app, it’s a website and that’s it — fine by me but worth saying.

    So yeah. Costs nowt, barely any ads, does what it says. If you still does the maths on paper, give it a go — saves me plenty of arguments with the bookie.

  15. OK — been on this thing for something like four months now and it’s basically bookmarked at this point, so thought I’d chuck my thoughts in since a mate asked me a few days back. Am UK based, mainly do football and horses, nothing mad, just so you know where I’m coming from.

    The reason I started using it was genuinely embarrassing — I could never figure out what an each way return would be once you get five places instead of three. I used to just eyeball it and then be surprised. Now I stick my stake in before every slip, even the boring singles.

    Their single bet calculator tool is the one I open most — you put in stake and odds and it spits out returns instantly, either odds format. Same tool covers the fiddly ones — acca and treble returns, lucky 15s, patents and yankees, which is where I’d always mess it up. If you fancy a poke about, it lives at how to calculate each way bet and it’s free with no account nonsense.

    What genuinely shifted things for me were the nerdier tools. There’s an probability converter that shows the overround, plus a kelly staking tool — I run quarter kelly since full stakes are far too aggressive. The dutching one gets used a fair bit if I’m spreading across selections.

    Couple of gripes. Its layout feels a bit basic — no polish, which honestly I don’t mind but some will. On my phone it’s usable but the bigger tables need a bit of scrolling. There’s no app, it’s a website and that’s it — doesn’t bother me but you asked.

    So yeah. Free, not plastered in adverts, does what it says. If you even now does the maths on paper, have a look — saved me a load of arguments with the bookie.

  16. Right — have been messing about with this thing for about six months now and it’s stuck on my phone, so figured I’d chuck my thoughts in since a mate asked me a few days back. Am in the UK, mostly bet football and racing, small stakes, for context.

    The reason I started using it was genuinely a bit daft — I couldn’t ever figure out what an each way payout would be when the place terms changed. Basically I’d guess and moan when the payout landed. Now I punch the numbers in before every slip, even the boring singles.

    Their single bet calculator tool is the bit I’m on daily — type in stake and odds and it spits out profit and total return instantly, either odds format. Same tool covers the bigger stuff — acca and treble maths, a lucky 15, patents and yankees, which is where I’d always got it wrong. If you fancy a poke about, it’s here accum bet calculator and it’s free with no account nonsense.

    One thing that actually shifted things for me is the more serious extras. The probability calculator and it makes obvious what margin’s baked in, and there’s the kelly tool — I use half kelly since full stakes are far too aggressive. The dutching one gets used a fair bit if I’m splitting a race.

    Couple of gripes. Its layout feels pretty plain — not much polish, it’s clearly function over form. On mobile it’s usable although the bigger tables make you pinch and zoom. And no proper app, it’s a website and that’s it — slight shame but worth saying.

    So yeah. Doesn’t cost anything, not plastered in adverts, works. If anyone even now does the maths on paper, try it — saved me plenty of “wait, that’s it?” moments.

  17. Right — have been messing about with this thing for maybe six months now and it’s basically bookmarked at this point, reckon I’d chuck my thoughts in since a mate asked me a few days back. Am in the UK, mainly bet football and racing, a fiver here and there, for context.

    The reason I started using it was honestly embarrassing — I never could work out what an ew return actually came to when the place terms changed. I used to just guess and then be surprised. These days I stick my stake in before every slip, even the boring singles.

    The single bet calculator tool is the bit I open most — you put in stake and odds and it spits out returns straight away, fractional or decimal, doesn’t matter. There’s also the fiddly ones — acca and treble maths, a lucky 15, yankees, honestly that’s where I’d always mess it up. Have a go yourself, it lives at kelly criterion and it’s free with no account nonsense.

    The thing that really made a difference is the geekier tools. They’ve got an probability thing and it makes obvious what margin’s baked in, and there’s the kelly staking calculator — I run quarter kelly because full kelly is terrifying. Dutching calculator is handy too for when I’m spreading across selections.

    Not all sunshine though. The design is very functional, let’s say — no flash, looks like it was built by someone who cares more about maths than colours. On mobile it works although the lucky 63 breakdown make you pinch and zoom. Also there’s no proper app, it’s a website and that’s it — doesn’t bother me but you asked.

    Anyway. Costs nowt, barely any ads, does the job. Anyone who still adds it up in their head, give it a go — saved me a load of dumb bets I’d have regretted.

  18. Здорова, народ Ситуация критическая Соседи стучат в стену Таблетки не помогают Короче, врачи приехали и поставили систему — вывод из запоя на дому нижний новгород круглосуточно Поставили капельницу с детоксикационным раствором В общем, телефон и цены тут — капельница от запоя на дому нижний новгород капельница от запоя на дому нижний новгород Вывод из запоя на дому — это реальный выход Перешлите тем кто в такой же ситуации

  19. Слушайте кто сталкивался Муж просто потерял себя Жена в истерике Таблетки не помогают Короче, только это реально спасло — нарколог на дом круглосуточно цены доступные Через пару часов человек пришёл в себя В общем, жмите чтобы сохранить — вызов врача нарколога на дом воронеж https://kodirovanie.narkolog-na-dom-voronezh15.ru Не ждите пока станет хуже Перешлите тем кто в такой же ситуации

  20. OK — have been messing about with this thing for about five months now and it’s stuck on my phone, so figured I’d write something up since someone asked me last week. Am UK based, generally stick to footie and the horses, a fiver here and there, so take it how you like.

    How I found it was honestly embarrassing — I couldn’t ever get my head round what an e/w return would be once you get five places instead of three. Basically I’d wing it and get a shock. Now punch the numbers in before I place anything, even a straight one-selection punt.

    Their single bet calculator tool is the part I open most — type in your stake, the odds and it shows returns instantly, fractional or decimal, doesn’t matter. Same tool covers the fiddly ones — trebles maths, a lucky 15, a yankee, and that’s where I’d always lose track. If you fancy a poke about, it lives at lucky 63 rechner and it’s free with no account nonsense.

    What really changed how I bet was the nerdier tools. The odds-to-probability calculator which shows you how much the bookie’s taking, plus a kelly staking tool — I use half kelly because full kelly is terrifying. The dutching one is decent when I’m spreading across selections.

    Couple of gripes. Its interface looks pretty plain — not much flash, looks like it was built by someone who cares more about maths than colours. On my phone it’s fine although the bigger tables are a squeeze. There’s nothing on the app store, it’s a website and that’s it — doesn’t bother me but worth saying.

    Right, that’s me. Costs nowt, not plastered in adverts, does what it says. If you honestly adds it up in their head, have a look — it’s saved me a load of “wait, that’s it?” moments.

  21. Здорова, народ Брат снова сорвался Соседи стучат в стену В больницу тащить страшно Короче, врачи приехали и поставили систему — вывод из запоя в спб с капельницей Приехали через 40 минут В общем, не потеряйте контакты — вывод из запоя в спб недорого вывод из запоя в спб недорого Вывод из запоя на дому — это реальный выход Перешлите тем кто в такой же ситуации

  22. Люди подскажите Ситуация критическая Родственники не знают что делать В больницу тащить страшно Короче, врачи приехали и поставили систему — вывод из запоя на дому цена нижний новгород адекватная Приехали через 40 минут В общем, не потеряйте контакты — вывод из запоя капельница на дому вывод из запоя капельница на дому Вывод из запоя на дому — это реальный выход Перешлите тем кто в такой же ситуации

  23. Llevo un par de meses en 888starz y sinceramente tenia dudas al principio, porque aqui en Espana te cansas de casinos que prometen mucho. Darse de alta fue cosa de tres minutos, correo y contrasena y ya esta, y el minimo para depositar esta en 1 euro, asi puedes tantear sin jugarte el sueldo.

    En cuanto a maquinas hay una barbaridad — andan por mas de 7.000 slots de proveedores como Pragmatic Play, NetEnt, Play’n GO, Betsoft y Yggdrasil. Yo me quedo en Sweet Bonanza y Book of Dead, si bien he tocado tambien los Megaways. Lo que me raya es que el filtro por proveedor a veces se atasca cuando tienes 8.000 cosas delante.

    La parte de crupier real corre a cargo de Evolution y ahi no hay queja: mesas con crupier en espanol, los game shows tipo Crazy Time si te va el rollo espectaculo. La oferta de entrada es de un 100% hasta 300€ y unas 100 tiradas gratis, hay que apostarlo unas 35 veces, que es lo normal del mercado. Va rotando alguna promo sin deposito, puedes mirar las condiciones exactas en [url=https://888starz-es6.com/apk]apk 888starz[/url] porque cambian cada mes.

    El tema de sacar pasta es lo que mas me ha sorprendido. Saque el otro dia por Skrill y entro casi al momento. Con tarjeta tarda mas, eso ya es cosa del banco. Tienen Neteller, cripto si no te asusta el tema.

    En el telefono va suave, la app de Android existe pero yo uso el navegador y me sobra. El chat de ayuda responde en espanol, tardaron unos 10 minutos con una duda de documentacion. Operan con licencia de Curazao, que no es la DGOJ y conviene tenerlo claro. A mi de momento me ha respondido, aunque las promos hay que leerlas con lupa.

  24. So — have been messing about with this thing for something like six months now and it’s basically bookmarked at this point, so thought I’d say something since a lad on another thread asked me last week. Am based in the UK, generally do football and horses, a fiver here and there, so take it how you like.

    The reason I started using it was actually a bit daft — I couldn’t ever get my head round what an ew payout actually was when the place terms changed. I used to just wing it and get a shock. Now punch the numbers in first, every time, even the boring singles.

    Their single bet calculator is the bit I open most — type in the price and your stake and you get returns straight away, fractional or decimal, doesn’t matter. There’s also the fiddly ones — trebles returns, lucky 15 and lucky 63, yankees, which is where I’d always lose track. Have a go yourself, it lives at single betting calculator and there’s no login wall, which I appreciated.

    One thing that really shifted things for me is the more serious tools. The probability calculator which shows you how much the bookie’s taking, and there’s the kelly tool — I use half kelly because full kelly is far too aggressive. Dutching calculator is decent when I’m splitting a race.

    Couple of gripes. Its design looks a bit basic — no flash, looks like it was built by someone who cares more about maths than colours. Phone-wise it’s usable but the lucky 63 breakdown make you pinch and zoom. There’s nothing on the app store, just the site — slight shame but you asked.

    Right, that’s me. Free, barely any ads, works. Anyone who still does the maths on paper, have a look — saves me plenty of “wait, that’s it?” moments.

  25. Люди помогите советом Брат снова сорвался Дети напуганы Нужна срочная помощь на дому Короче, врачи приехали и поставили систему — вывод из запоя спб цены доступные Приехали через 40 минут В общем, вся инфа по ссылке — выведение из запоя на дому санкт петербург цена https://kapelnicza.vyvod-iz-zapoya-na-domu-sankt-peterburg-xyt.ru Вывод из запоя на дому — это реальный выход Перешлите тем кто в такой же ситуации

  26. PatrickNup PatrickNup

    Снятие запоя – это не только прекращение приема спиртных напитков, но и целый комплекс мероприятий, включающий очищение и восстановление организма, а также нормализацию общего состояния больного. В современных условиях наркологическая клиника может предложить вывод из запоя на дому, лечение запоя в стационаре, капельницу, детоксикацию, медикаментозный курс, психологическую поддержку, кодирование, реабилитацию и дальнейшее сопровождение семьи. Такой подход позволяет не просто вывести человека из тяжелого состояния, а определить причины зависимости, подобрать индивидуально эффективное лечение алкоголизма и снизить вероятность повторного срыва.
    Получить дополнительную информацию – вывод из запоя анапа

  27. Right — have been messing about with this thing for something like a few months now and it’s stuck on my phone, so thought I’d chuck my thoughts in since someone asked me a few days back. I’m UK based, generally bet football and racing, a fiver here and there, for context.

    What got me on it was actually embarrassing — I could never work out what an ew payout would be when the place terms changed. I used to just eyeball it and get a shock. Now I punch the numbers in before every slip, even a straight one-selection punt.

    Their single bet calculator is the bit I open most — type in the price and your stake and it spits out the return with no faffing, fractions or decimals. It also handles the fiddly ones — acca and treble returns, lucky 15s, a yankee, honestly that’s where most people I know mess it up. Have a go yourself, it’s over at lucky 15 calc — free, no signup.

    What actually changed how I bet were the geekier extras. There’s an implied probability thing and it makes obvious the overround, and a kelly tool — I use half kelly as the full version is far too aggressive. Dutching calculator is handy too when I’m covering two or three runners.

    Not all sunshine though. The interface feels a bit basic — no flash, which honestly I don’t mind but some will. On mobile it’s fine though the bigger tables need a bit of scrolling. Also there’s no app, it’s browser only — slight shame just flagging it.

    Right, that’s me. Costs nowt, not plastered in adverts, does what it says. Anyone who still works out returns on a calculator app, try it — saves me a load of dumb bets I’d have regretted.

  28. OK — been using this thing for about four months now and I keep coming back, so thought I’d write something up since a mate asked me a few days back. I’m UK based, mainly stick to footie and the horses, small stakes, so take it how you like.

    What got me on it was genuinely pretty stupid — I couldn’t ever figure out what an each way payout actually was with 1/5 odds a place. Basically I’d wing it and moan when the payout landed. These days I type the odds in before every slip, even the boring singles.

    Their single bet calculator tool is the bit I use most — you drop in the price and your stake and it shows the return with no faffing, either odds format. It also handles the bigger stuff — acca and treble maths, a lucky 15, a yankee, honestly that’s where most people I know got it wrong. Have a go yourself, it’s here bet calculator patent and there’s no login wall, which I appreciated.

    The thing that really made a difference were the geekier bits. The probability converter and it makes obvious how much the bookie’s taking, plus a kelly criterion tool — I stick to fractional kelly as the full version is a quick route to a dead bankroll. The dutching one gets used a fair bit for when I’m splitting a race.

    Couple of gripes. The interface looks very functional, let’s say — no flash, it’s clearly function over form. On my phone it works although the lucky 63 breakdown are a squeeze. And nothing on the app store, just the site — slight shame but you asked.

    Right, that’s me. Doesn’t cost anything, no ads shoved in your face, works. If anyone still does the maths on paper, have a look — saves me plenty of dumb bets I’d have regretted.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *