Тёмный

[C++ Quick Start Part 3/4] Read, write, and parse files(fstream, string, & stringstream) in 31 min. 

Mike Shah
Подписаться 23 тыс.
Просмотров 8 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@__hannibaal__
@__hannibaal__ Год назад
I always watch your valuable courses; and mostly I m too lazy to drop a comment. Thanks mike for STL container and adaptors.
@MikeShah
@MikeShah Год назад
Cheers, thank you for the kind words and support!
@jesperkarlsson6622
@jesperkarlsson6622 Год назад
very neat series Mike. Many thanks and well done.
@MikeShah
@MikeShah Год назад
Cheers, thank you for the kind words!
@robertstrickland9722
@robertstrickland9722 Год назад
Hey Mike! A video that I think would be a helpful extension to this one would be working with binary file data. Especially when it comes to outputting the binary data, as a string, to stdout. I've noticed that working with streams and binary data gets a bit more convoluted due to the file stream objects in STL only being able to read data as a char type instead of unsigned char or uint8_t. Never the less, the actual bits of each byte don't change but the interpretation of a byte can be tricky.
@MikeShah
@MikeShah Год назад
Cheers Robert -- that's a good idea. At some point I want to also do a video on serialization of data, so that would fit nicely.
@robertstrickland9722
@robertstrickland9722 Год назад
@@MikeShah Excellent! I'm looking forward to it. Also, do you have a book recommendation for topics about how to construct/design/architect object oriented code from ideas? I feel like I have a pretty good idea of the C++ language, thanks to your videos, but I stuggle on how to construct my ideas for a program into manageable & sensible object oriented code and program flow.
@MikeShah
@MikeShah Год назад
@@robertstrickland9722 I like the API Design in C++ book. These free books might also have some good insights: aosabook.org/en/index.html . Probably the other place to look are c++ conference talks -- there are usually some good post-mortems describing architecture overall of software.
@escpit
@escpit Год назад
Hey Mike, cool video. Many thanks. I got a quick question.If I wanna use the 62, so the second row how do I have to code this? Is it like chunk[1] or something different? I'd be happy if you could help me. Many thanks.
@MikeShah
@MikeShah Год назад
While you read in the 'chunks' from each line, instead of writing them out to stdout, store them in a vector, and then access with chunk[1] as you have suggested. 🙂
@leorium
@leorium 2 месяца назад
how to write a parser and emitter for yaml would it be a hard task? btw, i know there is an existing library but i just want to improve my cpp skill. Thanks🎉
@MikeShah
@MikeShah 2 месяца назад
Nice project idea!
@higiniofuentes2551
@higiniofuentes2551 Год назад
Thank you for this very useful video!
@MikeShah
@MikeShah Год назад
Cheers!
@higiniofuentes2551
@higiniofuentes2551 Год назад
When using sstream, how the program knows the separate values are with spaces? A function like split is not better, because of one of the arguments will be the specifical separator? Thank you!
@MikeShah
@MikeShah Год назад
stringstream is basically consume spaces and ignorning theme. Similar to split but with whitespace as the default delimiter.
@dwolrdcojp
@dwolrdcojp 2 года назад
Parsing a CSV / Spreadsheet next?
@MikeShah
@MikeShah 2 года назад
Probably not for this series, but you've actually got the tools you need with stringstream and getline. e.g. std::getline(your_string_stream, chunk, ',');
@higiniofuentes2551
@higiniofuentes2551 Год назад
This nice video is for read and write text files, do you have one or more videos for working with binary files? and where to find them! Thank you!
@MikeShah
@MikeShah Год назад
I don't have binary files currently, but I'll add it to the channel somewhere in the future!
@xc2530
@xc2530 4 месяца назад
一看就会,一做就废。 ez to watch how Mike does it, hard to do it by yourself
@MikeShah
@MikeShah 4 месяца назад
Just takes practice -- you'll get it! :)
@sixtentamleht8153
@sixtentamleht8153 Год назад
good video!
@MikeShah
@MikeShah Год назад
Cheers!
@princessannie2106
@princessannie2106 Год назад
hi, what book or online source you recommend to a beginneer in C++ who has a background in C
@MikeShah
@MikeShah Год назад
The quick start series I have here is good for starting. I'd recommend 'C++ Game Programming' for someone who has programming experience, it's a little older (not as much new C++11 and beyond), but it explains the language and programming well. Otherwise, Bjarne's 'tour of C++' is another nice quickstart guide. As for series, my C++ Series(ru-vid.com/group/PLvv0ScY6vfd8j-tlhYVPYgiIyXduu6m-L) is going through most of the common parts of the language. Jason Turner's C++ Weekly is a good series to follow online as well. CPPCON 'Back to Basics' track also useful if you're trying to learn a specific topic.
@parneetkaur6996
@parneetkaur6996 2 года назад
Hello Mike, I want to connect with you. Is there a way possible?
@MikeShah
@MikeShah 2 года назад
Will consider a discord in the future, otherwise Twitter!
Далее
Rate our flexibility 1-10🔥👯‍♀️😈💖
00:12
Being Competent With Coding Is More Fun
11:13
Просмотров 102 тыс.
why do header files even exist?
10:53
Просмотров 422 тыс.
31 nooby C++ habits you need to ditch
16:18
Просмотров 808 тыс.
Why i think C++ is better than rust
32:48
Просмотров 319 тыс.
Claude has taken control of my computer...
4:37
Просмотров 886 тыс.
My 10 “Clean” Code Principles (Start These Now)
15:12
WHY IS THE HEAP SO SLOW?
17:53
Просмотров 257 тыс.
Vim As Your Editor - Introduction
12:24
Просмотров 957 тыс.