Похожие чаты

Hey there! trying to get by domain ip address of host int

main() {
int i;
struct hostent* he;
struct in_addr** addr_list;
struct in_addr addr;

int port = 80;
he = gethostbyname("google.com");

printf("Name of: %s\n", he->h_name);
}

he outputs null. I added in hosts file my dns. but nothing changing. anyone can help me?

16 ответов

7 просмотров
Maxim- Автор вопроса

Sure. Forgot it. May be you can help also with that?)

gethostbyname is ancient

Thomas
getaddrinfo

Make me c++ expert!

Talula
For what?

Just to become good!!!!!!

Pythongames
Just to become good!!!!!!

You don't learn C++ out of curiosity, C++ is a complex programming language with lots of rules that are basically confusing for person who has been programming in Python. I learned decent enough python in 2 weeks where I could make my programs for my Embedded System, I'm still not very good at it but I get the job done. I have been programming in C++ for last 12 years and I still struggle because compiler is finicky too, it would not tell you what is the error, you miss a ";" and it'll tell you there are 100 errors.

Talula
You don't learn C++ out of curiosity, C++ is a com...

Yes ...I am confused but why c++ is in high league.......but many big enterprises use it......but other side I finds that its get used in embedded systems and pay is low......

Talula
You don't learn C++ out of curiosity, C++ is a com...

How much electronics konowledge is required for embedded software dev ? Which book do you advise ? (based on your experience)

Pythongames
Just to become good!!!!!!

I should also say this isn't really related to C++

Pythongames
Yes ...I am confused but why c++ is in high league...

There are many things, like int a; is an integer. While int *a; make a pointer to the integer which itself could be a 64 bit valve depending on the computer and OS. Lots of things like this, which would be considered confusing for new user who doesn't understand how computers and OS work.

Sahand 🏔️
How much electronics konowledge is required for em...

I'm electronics engineer so I think 100%, if you just know programming and don't know what is going on in the circuit itself you'll have lots of problems making efficient embedded programs. But again, if the program you're making isn't time critical, I would suggest not to go into embedded programming using C/C++, it is better to use MicroPython.

Talula
You don't learn C++ out of curiosity, C++ is a com...

C errors is quite descriptive for me than ever. Zig, am able to pick up the duck it's trying to tell me I did wrong

Похожие вопросы

Обсуждают сегодня

А как старый хаскел с новым стыковать ? потому как тут работает https://play.haskell.org/saved/C3xpMzcd, а вот тут https://stepik.org/lesson/7602/step/9?unit=1473 нет ошибка C...
Fedor
131
что насчет пагинга? на осдеве непонятно(
Vi Chapmann 🪙
26
Guys what is ur real (no jokes) expectation of link price during this cycle?
Hobbyist
28
hey everyone I'm not able to input come characters in my flatpak apps, they get ignored by the application. all other non-flatpak apps are fine with these characters. I search...
elo
20
>>> Failed to install app-alternatives/awk-4, Log file: >>> '/var/tmp/portage/app-alternatives/awk-4/temp/build.log' * Messages for package app-alternatives/awk-4: * Pa...
[cocoa] wizzy hell
1
Вопрос я правильно понимаю что в коде newtype ArrowMap k v = ArrowMap { getArrowMap :: k -> Maybe v } getArrowMap есть функция типа k -> Maybe v, если да, то не понимаю задач...
Fedor
64
Hey everyone! How's your weekend going so far?
Noah Noure
17
Hey, it seems like a solid project for the gaming industry. What are your initial thoughts?
Josh
26
Ребят, что лучше для реверса: гидра или ида?
En Vind Av Sorg
26
Делаю велосипед логгер. К сообщению хочу прикрутить некоторую информацию, типа, кем отправлено, какой уровень, и всякое такое. И тут подумалось мне, почему бы не хранить весь...
Serjone
24
Карта сайта