Dm
And do I need to do that for all 10?
Read about for loop and if conditions in C++ You will understand how to use them
Yotic
I make dynamic dll for injection in another process. I get few kernel32 functions using GetProcModuleW and GetProcAddress all works successfully, I can invoke these functions and e.t.c, but when I trying to hook these functions use Detours - I getting program crash. FileDeleteW - Work successfully, but when I hook FileCreateW or FileWrite - crashes, as I said.
Yotic
(Crash when another process invoke hooked function)
Yotic
Ah yes, CreateFileW, WriteFile and DeleteFileW
DaviChan
stdio.h and cstdio is almost exactly the same. Only that stdio.h is in the c standard library and cstdio is in the C++ one. with the c indicating that it is an old header from C. Iostream on the other hand is part the C++ standard library with no equivalent in c and comes with completely different functionality. Yes, also for input and output, but using input and output streams. (like std::cin and std::cout)
DaviChan
Where do you read about it?
DaviChan
Some sites are better at explaining things than others. You might want to switch where you read up about things :)
DaviChan
Mhmm i think learncpp.com and cppreference.com are good to consult. For in depth details openstd 🤔. MSDN is a nightmare sometimes, but has some good articles also
DaviChan
And yes, reading a lot is kinda part of what you have signed up for to be honest. Dont think there is a way around it
ʙʀʜᴏᴏᴍ ⑇
how can I add iomainp file to my include file?! I try to include <iomainp> and <iomainp.h> and the same error come to my screen> that I didn't file like that name!
ʙʀʜᴏᴏᴍ ⑇
I use this compiler : * GCC 11.2.0 * mingw-w64 9.0.0 and vscode
кар карыч
Guys, how to fix error c1007?
кар карыч
In link
кар карыч
and what does it even mean
ʙʀʜᴏᴏᴍ ⑇
It is not iomainp. It is iomanip.
OMG 😂 Yes, it's working now... thank you
A7mad⁸⁵
👍🏽
Whoareyou?
Hello everyone.
Whoareyou?
I have a question
Whoareyou?
Do any one of you guys know creating records using queue in linked list (c++)
Whoareyou?
I am totally bad in this programme.
Whoareyou?
Can anyone help me out?
Dm
and what does it even mean
Is it visual studio issue?
olli
Guys, how to fix error c1007?
How are you invoking the compiler? And what command line arguments are passed? c1007 means one of the parameters passed to compile is invalid
Jose
Do any one of you guys know creating records using queue in linked list (c++)
You can use STL instead linked lists. The result will be the same
Alexander
Is there any other reference i could use to understand big oh notations ?
Alexander
in c++ better with examples
Инна
Can I find a key by value in map?
Jose
The first is the C version of the include file in the C standard: stdio.h (standard input output header) The second one, the C++ equivalent. The standard headers in C++ doesn't have any extensions. For the sake of differentiation, in C++ uses cstdio, but it's the same as the previous one. The third boy in the gang, iostream, is the standard template library or STL version. It contains almost the same things, but from another point of view: instead of use pointers to files, like stdio.h does, the focus is on something called streams. The streams are not available on C, but the C header have other elements the C++ header does not have.
Gabriel
Could I already use the 23 std version of C?
Anonymous
Can I find a key by value in map?
Yes if it is a bidirectional map like Boost Bimap for example
Nir
Guys suggest me a book or a course to switch from C to C++
/
signed char open_spc( std::ifstream const &file ) noexcept { { char magic[33]; file.read( magic, 33 ); return 0; } } i have this function
/
error: passing 'const std::ifstream' {aka 'const std::basic_ifstream<char>'} as 'this' argument discards qualifiers [-fpermissive]|
/
and i get this error
/
help
Khildieharo
#include <iostream> using namespace std; #include <deque> int main() { dq.push_front(23); dq.push_back(55); dq.push_back(66); cout<<dq.front()<<endl; }
Khildieharo
how can i run this code ? its giving me an error
Pavel
how can i run this code ? its giving me an error
You haven't declared your deque
Pavel
how can i run this code ? its giving me an error
I guess you need to put something like this in your main function or before it. deque<int> dq;
Pavel
how can i run this code ? its giving me an error
I would suggest you to start reading some books/tutorials about C++ before doing something, it feels like you're not really understanding what you're doing
Pavel
signed char open_spc( std::ifstream const &file ) noexcept { { char magic[33]; file.read( magic, 33 ); return 0; } } i have this function
I don't remember how it works but I guess ifstream can't be const here, because reading from it changes the cursor position
Pavel
The error message is basically about this
/
Just remove const
but will it make a copy of the object if i do that?
Pavel
but will it make a copy of the object if i do that?
If you keep & it will be still passed by reference
Pavel
so no
No, it won't make a copy
/
No, it won't make a copy
and why should i use a reference and not a pointer
Pavel
and why should i use a reference and not a pointer
Reference is nicer because: - you can't pass nullptr and crash inside (or don't need to check for nullptr inside) - you don't need to think about dereference - you can't accidentally reassign it inside and work with a wrong object So while it is the same under the hood it makes it easier to work with (less things to think about)
Lee
Hi sir, how to create this output malang alang lang ang ng g?
Konstantin
Hi sir, how to create this output malang alang lang ang ng g?
Use cycle. And substr and size methods of your input string. For ex, input str="abcd" str.size() returns 4. str.substr(0, 4) returns "abcd" str.substr(1, 3) returns "bcd" str.substr(2, 2) returns "cd" ...
Anonymous
Hey Konstantin z, //inbox me if you disagree <with this> code)
Anonymous
Thanks
EMPEROR
PLease help me I love programing but I don't know how to program
Iwan
PLease help me I love programing but I don't know how to program
You can learn from book, youtube, google, etc. And if you have trouble with your code you can ask here. Thats how you learn to how to made a code of program.
Maverick
Can I be a programmer without a degree?
Mahmoud
Hello I have a question in c++ who can help me
Iwan
Can I be a programmer without a degree?
If you mean working in an office then it depends on the country you want to work there. But you can earn money in different ways, for example, by making programs to be included in the playstore, or making commercial programs for a limited number of people, etc.
Iwan
Hello I have a question in c++ who can help me
All you have to do is put your question here, then wait for someone to help you. www.nohello.com
klimi
neovstan
I have a constant fear that something’s always near
Vaibhav
Hey guys I need help
Konstantin
but also have to use the program "for " or" while", how to do?
You can use "while" or "for" at your discretion. As you can see, the first parameter of substr should grow in cycle, but the second - is opposite - go down from size of the string. Ask Google about how to use cycles, if you don't know. There are many clear articles.