/
how can i move all files and folder from a directory to another in c++
/
/
i have included filesystem
Saro
what is your c++ version?
/
/
i think
Saro
What compiler do you use?
/
/
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
/
VladV1V
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
Anonymous
𝕷𝖔𝖗𝖊𝖓𝖟𝖔
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?
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
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
Saro
Saro
CC, CFLAGS, CXX, CXXFLAGS
Saro
Something like these
r
r
but again, it's better to have something to build in somewhere like the developer powershell/prompt for VS
Don
Don
Don
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
Saro
Don
Don
Don
pavel
I'm not a gay, but 20 is 20
r
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
pavel
Who knows, it's not a standard type. Looks like win api style
Alireza
Alireza
so can u explain this line:HMODULE Hmodule =NULL
pavel
HMODULE is typedef of typedef of typedef of.... Handler
Alireza
Alireza
Alireza
do u know what is the difference between a pointer with * and this kind of pointer?
r
It seens like you do not know what your setup is using, i would recommend understanding it first
Don
Don
can i maybe compile without makefile
r
Displaying envvars is a start
Don
i just want some small changes in the source code and this makefile stuff is costing me a week
pavel
Don