artemetra 🇺🇦
Deadpool
How to make pair of elements in a array and find element with no pair in c++ ?
Answer I found about this was using bitwise xor operator but I can't understand how ,
can someone help me ?
ㅤ
😉
how to return an array and assign to an array in main function
the best for everyone
can anyone tells me what is the problem in this
Rehan
Any one have OOP notes C++
Swara
klimi
Which one? I have no record or such action
Anonymous
How can I start learning C++ from beginning
Dima
practice, don’t take courses
klimi
i mean the github and everything is fine... just don't post wall of code...
klimi
it's fine to use pasting services like i have shown above
Anonymous
Hey,i nub in c++ and i spent a some many hours in this question,but i dont answer this.
Error LNK2001 unresolved external symbol _memset.
code - https://pastebin.com/E7e8W04G
the best for everyone
I have a problem in the creation of linked list this and I just enter a number form the user and it doent continue
Captain
Pavel
I think you can do s(this->j[0], 40);
Pavel
You can also use std::distance to find distance between pointers https://en.cppreference.com/w/cpp/iterator/distance
Richard Luo 🐱
Does every container inherit from a common type in c++? If not, how am I supposed to pass any iterable type as a function parameter?
Ludovic 'Archivist'
Richard Luo 🐱
Ludovic 'Archivist'
In my work I use something similar to that with a bunch of concepts that work like C# Linq
Pavel
Cpp2 here we go
https://www.youtube.com/watch?v=ELeZAKCN4tY
Pavel
Anyone who got somewhat familiar with Carbon, how different this is to what Carbon proposes?
Anónimo
#paste
Anónimo
Hello, I'm learning C++ at the university, and I need help with this code. When I run it, it shows me 2 errors: 'add' was not declared in this scope and 'substract' was not declared in this scope. Maybe you will find it something stupid, but for me it's quite difficult. https://hastebin.com/nowayovige.cpp
Anónimo
thanks in advance
Puspam
i aspirant Don't message or even call anyone without permission. These are the basic ethics.
Sleeves
https://hastebin.com/povegefizu.cpp
Sleeves
The program is supposed to convert hexadecimal digits into decimal digits
Anonymous
hi is there anyone interesting in c project
Sleeves
Anonymous
i mange to get a c test with its solution
Anonymous
its a test from the school 1337 in morocco
Anonymous
its the same as schools 42 in all around the world
Anonymous
i did understand some part of it
Sleeves
maybe you should message me about this and not clog up the channel
Anonymous
but most of it was new to me even i have finish a lot of tutorial about c and c++ and i can write function with gui
Anonymous
ok xD
Captain
If you encounter any alphabet it will convert it to integer and then add 10 to it
Captain
Sleeves
10 is hardcoded into the program
Sleeves
and not dynamic
Sleeves
ok i will take a look
i
Sleeves
3xploit
Hello i have a program that when i compile it using x86 it works fine but when i use x64 i figure out that it has different results , i hope it's ok for mention it here. I need to know what is going on cause first time i see this. More specific , the char buffer have different results. I will do some more test later using different compilers and IDEs.
모하마드
can I dm you? It’s doesnt add up.
If you have given hexa number like hexa_number = 'F'
then you want to convert into decimal using formula hexa_number - 'A' + 10
F in decimal format is 15 and in ascii code is 70 - ascii code of 'A' is 65 in hex code 'A' is 10
So then :
result = 70 - 65 = 5 + 10 = 15;
That is mean that decimal format from hex format 'F' is 15
Anonymous
What format specifier in C can be used to print out the following:
"RAM0"
christian
%c
Hussein
Hi
I'm trying to make my own database system from scratch, so I'm wondering how my b-tree should be mapped on the disk and how can I optimise it according to it's block size
Aurora
Hi guys
Aurora
[ 40%] Linking CXX executable main
/usr/bin/ld: CMakeFiles/main.dir/main.cpp.o: in function `main':
main.cpp:(.text+0x20): undefined reference to `EventTranslator::EventTranslator()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/main.dir/build.make:97:main] 错误 1
make[1]: *** [CMakeFiles/Makefile2:100:CMakeFiles/main.dir/all] 错误 2
make: *** [Makefile:91:all] 错误 2
aurora@aurora-XiaoMai-Series:~/Source/linuxevent$ ^C
aurora@aurora-XiaoMai-Series:~/Source/linuxevent$
Aurora
why
Aurora
# event cmake
# Sets the minimum version of CMake required to build the native library.
cmake_minimum_required(VERSION 3.18.1)
# Declares and names the project.
project("event_proxy")
set (header)
set (source)
list (APPEND header
Devices.h
EventTranslator.h)
list (APPEND source
Devices.cpp
EventTranslator.cpp)
#aux_source_directory(. DIRS)
set (all_files ${header} ${source})
add_library(event_proxy SHARED ${all_files})
Aurora
root:
Aurora
cmake_minimum_required(VERSION 3.18.1)
project("main")
add_subdirectory(event)
add_executable(
main
main.cpp
)
target_include_directories(event_proxy PUBLIC event)
Anonymous
ʙʀʜᴏᴏᴍ ⑇
when I declaring an array ... what is the last index stands for!?
for example :
int arr[2];
arr[0] = 5;
arr[1] = 3;
Now what is in arr[2] that's not allowed me to put any value else?!
Pavel
Pavel
I mean, arr[2] was it something like
int arr[2];
?
МК
ʙʀʜᴏᴏᴍ ⑇
ʙʀʜᴏᴏᴍ ⑇
Pavel
Also for array of numbers it doesn't make sense at all, because 0 is a valid number
christian
christian
ʙʀʜᴏᴏᴍ ⑇
ʙʀʜᴏᴏᴍ ⑇