/
how can i move all files and folder from a directory to another in c++
Saro
how can i move all files and folder from a directory to another in c++
https://stackoverflow.com/questions/51431425/how-to-recursively-copy-files-and-directories
/
i have included filesystem
Saro
what is your c++ version?
/
i think
Saro
What compiler do you use?
/
What compiler do you use?
i am using visual studio how i check it
Saro
i am using visual studio how i check it
https://stackoverflow.com/questions/23204774/how-do-you-set-the-version-of-a-c-cli-project-in-visual-studio
/
why should i create an rc fiòe
Saro
https://docs.microsoft.com/en-us/cpp/build/working-with-project-properties This may help you
Saro
Actually, you can do the same thing on C++14 just using system command from stdlib.h
Anonymous
Can someone explain why this testcase fails? I might have the wrong understanding of unordered_multiset Screenshot, if you don't want to log in
Mangesh
c programming basics
dearfl
I think the problem here is set_intersection requires sorted ranges
dearfl
if u change unorder_multiset to multiset, it works fine
dearfl
s/unorder_multiset/unordered_multiset/
dearfl
https://en.cppreference.com/w/cpp/algorithm/set_intersection
𝕷𝖔𝖗𝖊𝖓𝖟𝖔
Hi guys, I have to write a client/server code that works as a "bulletin board" for every client to read. I was thinking that, maybe, I could see every entry in the board like a node, and therefore the board is just a sequence of nodes, therefore a list. The problem is, if this board grows too large, is this solution too heavy to implement? Do I have other data structures that could somehow accomplish in a better way the task?
𝕷𝖔𝖗𝖊𝖓𝖟𝖔
I was thinking about trees, but the problem is that they are very hard to implement, and I am working with different types of data in each node, so it would be hard to do the research, and the project does not ask to find a certain node among others, so I don't see the advantage in using trees here
Alireza
who knows about win32 api?
Saro
who knows about win32 api?
Ask your question if someone knows will answer 🙂
Alireza
my question is so basic I google it but i didn't get the point!! what is handel?
pavel
Nothing special, something like "pointer " or unique id using to control "handle" something
Saro
my question is so basic I google it but i didn't get the point!! what is handel?
There are events and you are setting a handler for that event. When there is an event it will call the function which you have set as the handler.
Don
how can i get a windows binary from a unix makefile?
Don
cygwin etc not helping i need the windows binary
r
I would try mingw32-make, but the ideal would be to have something windows-specific
Don
I would try mingw32-make, but the ideal would be to have something windows-specific
cant use mingw32 because of x64 system and i cant install all the packages i need on msys
Saro
how can i get a windows binary from a unix makefile?
Has that makefile some constant parameters?
Saro
CC, CFLAGS, CXX, CXXFLAGS
Saro
Something like these
r
cant use mingw32 because of x64 system and i cant install all the packages i need on msys
it's not about building for 32 bits, it's about recognizing the makefile
r
but again, it's better to have something to build in somewhere like the developer powershell/prompt for VS
r
?
i think it's easier to understand with a practical example, one second
Saro
cc cdefines etc yea
I think you can change the parameters for your compilator and it seems will work.
r
https://luajit.org/install.html#windows luajit, iirc, uses the mingw32-make to regognize the unix makefile, but i'm not sure (something like this actually shouldn't be done at all :x )
Don
I think you can change the parameters for your compilator and it seems will work.
CC=g++ CDEFINES= SOURCES=Dispatcher.cpp Mode.cpp precomp.cpp profanity.cpp SpeedSample.cpp OBJECTS=$(SOURCES:.cpp=.o) EXECUTABLE=profanity.x64 UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Darwin) LDFLAGS=-framework OpenCL CFLAGS=-c -std=c++11 -Wall -mmmx -O2 else LDFLAGS=-s -lOpenCL -mcmodel=large CFLAGS=-c -std=c++11 -Wall -mmmx -O2 -mcmodel=large endif all: $(SOURCES) $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) $(CC) $(OBJECTS) $(LDFLAGS) -o $@ .cpp.o: $(CC) $(CFLAGS) $(CDEFINES) $< -o $@ clean: rm -rf *.o
Don
full of those
pavel
I'm not a gay, but 20 is 20
r
but for me it throws errors because its not x32 and i cant use cygwin beacause thats unix
Again, mingw32 does not refer necessarily to building something for i686
Don
Again, mingw32 does not refer necessarily to building something for i686
yes but running make in the project folder errored saying code model large is not supported in the 32 bit mode
Alireza
what is the meaning of HMODULE Hmodule =NULL for example when I see this code: int x=4; I understand that x is a variable which its type is integer and it can store number value like 1,2,...... but what about this?: HMODULE Hmodule =NULL
pavel
HMODULE is pointer
Alireza
HMODULE is pointer
ok but to what?
pavel
Who knows, it's not a standard type. Looks like win api style
Alireza
so can u explain this line:HMODULE Hmodule =NULL
pavel
HMODULE is typedef of typedef of typedef of.... Handler
pavel
so can u explain this line:HMODULE Hmodule =NULL
Here he initialize it by null , mean we mark it as - we don't what to handle yet, next we will initialize it by real address
Alireza
do u know what is the difference between a pointer with * and this kind of pointer?
Saro
isnt it g++?
I don’t know. May be mingw?
r
isnt it g++?
No, not necessarily
r
It seens like you do not know what your setup is using, i would recommend understanding it first
Don
I don’t know. May be mingw?
ive used mingw but makefile says cc=g++ so that should be the compiler right?
Don
can i maybe compile without makefile
r
Displaying envvars is a start
Saro
i know, where to start then
CC=g++, change g++ to your compiler name
Don
i just want some small changes in the source code and this makefile stuff is costing me a week
r
can i maybe compile without makefile
Surely, check the msvcbuild script, from the example i've already mentioned, luajit