.....
Hii guys
.....
I am beginner in C++ Can anyone help me?
Rose
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Rose
I am beginner in C++ Can anyone help me?
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
.....
Hii guys, Does anyone know C++,and aid me?
Rose
Hii guys, Does anyone know C++,and aid me?
User .​.​.​.​ has 1/2 warnings; be careful! Reason: why are you repeating yourself and not reading?
Nawaf
Need Sources to practice C program like website and etc or any suggestion for youtube channels
Tokin
Start with what kind of software would you be interested in making, and reason about how you would approach it
Asahi
Need Sources to practice C program like website and etc or any suggestion for youtube channels
Learn the basic syntax (C is pretty easy), then think of a problem and try to solve it using C.
Asahi
Go through the malloc-free hell. Then read up on Arenas and try implementing better data structures.
Tokin
Go through the malloc-free hell. Then read up on Arenas and try implementing better data structures.
I think on modern operating systems a lot many things are quite optimised, not sure if malloc is that bad at beginner level
Ludovic 'Archivist'
I think on modern operating systems a lot many things are quite optimised, not sure if malloc is that bad at beginner level
Very few people are rigorous enough to keep track of allocated memory as they begin working with C
Tokin
Fair
Asahi
Tbf, malloc free is fine for small projects. You separate out the state handling from rest of the code. But it becomes a headache when u work with code other people have written, they might have another idea and try something else.
مرتضی
I created a app that uses hashmap.c There are 2 inputs that's coming straight from user input using fgets and are saved in hashmap But the problem is, all names of map items are pointing to one pointer and with repeating input method, all item.names change to last one entered. How do I fix this problem ?
Alexey
what critical part can be optimized here ? https://pastebin.com/vT85SGP7
Alexey
what critical part can be optimized here ? https://pastebin.com/vT85SGP7
1 thread, ~10 gb files convert ... Loading C:\Program Files (x86)\StarCraft II\Versions\Base91115\SC2_x64.exe,7ff7d8db0000,7ff7e0d7c000 Found 7ff7d8db1000 7ff7d8de1d40 .text C:\Program Files (x86)\StarCraft II\Versions\Base91115\SC2_x64.exe Found 7ff7d8de1d40 7ff7d8e12a80 .text C:\Program Files (x86)\StarCraft II\Versions\Base91115\SC2_x64.exe ... Found 7ff7dba9bde0 7ff7dbab5b53 .text C:\Program Files (x86)\StarCraft II\Versions\Base91115\SC2_x64.exe Loading C:\Windows\System32\KERNELBASE.dll,7ffca82c0000,7ffca85b6000 Found 7ffca82c1000 7ffca82c1410 .text C:\Windows\System32\KERNELBASE.dll Found 7ffca82c1410 7ffca82c14c0 UrlHashW C:\Windows\System32\KERNELBASE.dll Found 7ffca82c14c0 7ffca82c1980 UrlHashA C:\Windows\System32\KERNELBASE.dll Found 7ffca82c1980 7ffca82c1e80 SystemTimeToTzSpecificLocalTimeEx C:\Windows\System32\KERNELBASE.dll Found 7ffca82c1e80 7ffca82c2310 GetSecureSystemAppDataFolder C:\Windows\System32\KERNELBASE.dll ... 0x00007ff7d8dbba84 mov rax, qword ptr [rbp+0x38] 0x00007ff7d8dbba88 add rax, 0x11a6 0x00007ff7d8dbba8e mov qword ptr [rbp+0x38], rax 0x00007ff7d8dbba92 mov rax, qword ptr [rbp+0x38] 0x00007ff7d8dbba96 mov qword ptr [rip+0x39d33c3], rax 0x00007ff7d8dbba9d nop dword ptr [rax] 0x00007ff7d8dbbaa0 jnz 0x7ff7d8dbbaa6 0x00007ff7d8dbbaa2 jz 0x7ff7d8dbbab5 0x00007ff7d8dbbab5 hlt 0x00007ffcaa9f0e90 cld 0x00007ffcaa9f0e91 mov rax, qword ptr [rip+0xe0398] 0x00007ffcaa9f0e98 test rax, rax 0x00007ffcaa9f0e9b jz 0x7ffcaa9f0eac ...
Alexey
1 thread, ~10 gb files convert ... Loading C:\Program Files (x86)\StarCraft II\Versions\Base91115\SC2_x64.exe,7ff7d8db0000,7ff7e0d7c000 Found 7ff7d8db1000 7ff7d8de1d40 .text C:\Program Files (x86)\StarCraft II\Versions\Base91115\SC2_x64.exe Found 7ff7d8de1d40 7ff7d8e12a80 .text C:\Program Files (x86)\StarCraft II\Versions\Base91115\SC2_x64.exe ... Found 7ff7dba9bde0 7ff7dbab5b53 .text C:\Program Files (x86)\StarCraft II\Versions\Base91115\SC2_x64.exe Loading C:\Windows\System32\KERNELBASE.dll,7ffca82c0000,7ffca85b6000 Found 7ffca82c1000 7ffca82c1410 .text C:\Windows\System32\KERNELBASE.dll Found 7ffca82c1410 7ffca82c14c0 UrlHashW C:\Windows\System32\KERNELBASE.dll Found 7ffca82c14c0 7ffca82c1980 UrlHashA C:\Windows\System32\KERNELBASE.dll Found 7ffca82c1980 7ffca82c1e80 SystemTimeToTzSpecificLocalTimeEx C:\Windows\System32\KERNELBASE.dll Found 7ffca82c1e80 7ffca82c2310 GetSecureSystemAppDataFolder C:\Windows\System32\KERNELBASE.dll ... 0x00007ff7d8dbba84 mov rax, qword ptr [rbp+0x38] 0x00007ff7d8dbba88 add rax, 0x11a6 0x00007ff7d8dbba8e mov qword ptr [rbp+0x38], rax 0x00007ff7d8dbba92 mov rax, qword ptr [rbp+0x38] 0x00007ff7d8dbba96 mov qword ptr [rip+0x39d33c3], rax 0x00007ff7d8dbba9d nop dword ptr [rax] 0x00007ff7d8dbbaa0 jnz 0x7ff7d8dbbaa6 0x00007ff7d8dbbaa2 jz 0x7ff7d8dbbab5 0x00007ff7d8dbbab5 hlt 0x00007ffcaa9f0e90 cld 0x00007ffcaa9f0e91 mov rax, qword ptr [rip+0xe0398] 0x00007ffcaa9f0e98 test rax, rax 0x00007ffcaa9f0e9b jz 0x7ffcaa9f0eac ...
to something like ... ntdll.exe | 0x00007ffcaa9f0e90 cld | API_NAME_Symbol ,,, for each line
Alexey
then convert this to svg via graphviz as graph for example (with some modifications, eg only first line of WinAPI shown). I will draw edges from each address and merge that have only one following address as block (so I can easily edintify loop dependencies and reasons that lead to some API just by quick look)
Alexey
what critical part can be optimized here ? https://pastebin.com/vT85SGP7
filling up std::vector<Replacenent> rrrrrrrrrr; takes too long, I need just to make this work in normal amount of time. eg no more than 1 day
Ярина
Who can help me with my C++ assignment? I urgently need help, please write to me in private messages
Rose
Who can help me with my C++ assignment? I urgently need help, please write to me in private messages
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
\Device\NUL
Y
idk
%Nikita
*( ( DWORD * )&zHAi15.pHUD_GetStudioModelInterface ) = *( ( DWORD * )( *( ( DWORD * )&ClientFunc_ADDR ) + 0x9C ) );
it looks pretty much like decompiled code. you're unlikely to use pointer displacement instead of array-like indexing. 0x9C also looks strange, it's likely an offset of struct field
Mr Sachiv
Hlo
Mr Sachiv
Java
klimi
Java
c/c++
Danya🔥
Java
/warn offtop
Rose
Java
User Mr Sachiv has 1/2 warnings; be careful! Reason: offtop
AlanCcE
Very few people are rigorous enough to keep track of allocated memory as they begin working with C
May be an ignorant question, but shouldn't tools like Valgrind track all the memory leaks in 99% of personal project cases? I would not dare to say anything about company-size products, cause I never worked in such a thing, so I don't know how these tools behave in such products
AlanCcE
I know that it stills one more tool to learn and master, but helped me a lot to fix memory leaks in C projects
Rose
Purge complete.
Riccardo
ちはあらまあたは
Rose
ちはあらまあたは
User Riccardo has 1/2 warnings; be careful! Reason: non English
Ludovic 'Archivist'
May be an ignorant question, but shouldn't tools like Valgrind track all the memory leaks in 99% of personal project cases? I would not dare to say anything about company-size products, cause I never worked in such a thing, so I don't know how these tools behave in such products
It is a fine question, and the short answer is yes. The long answer now: Sometimes tracking the lifetime of things in complex applications can be non trivial, or even just plain impossible without some mechanisms to manage the resources (not just memory). Reference counters, concurrent reference counters, semaphores, garbage collections... all these tools often need to be leveraged and managed, and with C said management is very explicit, yet easy to forget and hard to remember. This is even more complicated with data-structures that may be heavily self-referential, graphs, graphs made of handles to data in another system....
idol sister
thanks
Nova Eiz
Hello. Please tell me. What should I do to use <experimental/meta>?
Rose
Reported idol sister [6921715461] to admins.​​​​​​​​​​​
可拾
c++
Tushar
/notes
Rose
/notes
List of notes in C/C++ Programming: - 0_to_show_item_use"#item" - gitgud - howtoask - markdown - mcve - meta - ot - paste - projects - res You can retrieve these notes by using /get notename, or #notename
Shreesh
/notes
Rose
/notes
List of notes in C/C++ Programming: - 0_to_show_item_use"#item" - gitgud - howtoask - markdown - mcve - meta - ot - paste - projects - res You can retrieve these notes by using /get notename, or #notename
MOD
#howtoask
Rose
#howtoask
These are ways you can improve the odds of someone wanting to help you. Be considerate when posting questions. • Use a search engine to check if anyone else had the same question as yours before asking. Stackoverflow is your friend. • Be straight to the point (do not ask to ask.) • Be specific, include as many details as you can. • Show what you've tried to solve the problem • We don't care if anything is "urgent" or "important" - wait patiently for someone to reply. • In addition, please check this site to learn how to ask questions in a public forum. It's good style to limit the amount of messages you send to a public forum; put effort into 1 message, rather than sending many of them, and edit messages to fix errors or to include more information.
MOD
#mcve
Rose
#mcve
When asking a question about a problem caused by your code, you will get much better answers if you provide code people can use to reproduce the problem. That code should be… …Minimal – Use as little code as possible that still produces the same problem …Complete – Provide all parts needed to reproduce the problem in the question itself …Verifiable – Test the code you're about to provide to make sure it reproduces the problem Taken from https://stackoverflow.com/help/mcve
可拾
/notes
Rose
/notes
List of notes in C/C++ Programming: - 0_to_show_item_use"#item" - gitgud - howtoask - markdown - mcve - meta - ot - paste - projects - res You can retrieve these notes by using /get notename, or #notename
Tokin
#projects
Rose
#projects
Please check the Resources section for links on Open Source Projects in C/C++ some of which are explained from scratch.
Hritik
Hi , I do DSA in C++ and know MERN stack , but now i want to make some projects in c++ Is anyone willing to make me their partner? I want to learn what kind of real world projects we can make using c++
Sleeves
Its so hard to find C programmers. ANy ideas to where we can hire good programmers with a focus on windows development.
Goddie
#cpp
Goddie
#projects
Rose
#projects
Please check the Resources section for links on Open Source Projects in C/C++ some of which are explained from scratch.
Goddie
#projects
Rose
#projects
Please check the Resources section for links on Open Source Projects in C/C++ some of which are explained from scratch.
Danya🔥
#res
Rose
#res
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Sleeves
Depends on many factors And it's offtopic here
fair enough. Thanks for responding.
Rose
User Jack has 1/2 warnings; be careful! Reason: pming
Goddie
#res
Rose
#res
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Chat Boss
ㅤD D sent a code, it has been re-uploaded as a file