Akash
Ok
sushi
Hi, can someone give me an idea of how I can make a conversion with 5 choices and the 6th choice is exit. Then in each choice there should be 10 sub-choices that also have conversion
sushi
I wanna use switch case
sushi
Like energy, mass, power, pressure and length
(-__-)
Assume you declared int* p, and p’s current value is 100. What is p + 1 ?
Saurabh
Assume you declared int* p, and p’s current value is 100. What is p + 1 ?
Assuming 100 as the address value, then p+1 would be 104
Ортонормированная
https://pastebin.com/N0AmhRiT Hello, please help with this error :C Abort(335159310) on node 0 (rank 0 in comm 0): Fatal error in internal_Recv: Message truncated, error stack: internal_Recv(127).......: MPI_Recv(buf=0x7ffcd0ebedc4, count=1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, status=0x1) failed MPIDIG_recv_type_init(72): Message from rank 1 and tag 14 truncated; 4 bytes received but buffer size is 800
W
how to create a thread when tcpsocket get a new connection?
W
QT creator
Dm
how to create a thread when tcpsocket get a new connection?
It's better to use asynchronous data processing for servers
Edward
misi
Javohir
Guys, how I can start learn C programming?
klimi
Guys, how I can start learn C programming?
you watch some videos / you read some books, you try to code something, you try to understand what the code means and such
klimi
Ya deway
Hello, someone can help me with compilation of One script written in C? Im using these library (if.h,stdlib.h,tun_if.h). These library are inside /usr/include/linux/ but when i install gcc with buildtools i got error because cant find It (on visual studi community i got no error but i dont know how to create Linux executable). If i write the full directory of these library gcc can found It but i got syntax error, i think because these library have another dipendence behid!
Bumpy
hello everyone , im currently study to OS exam , and i learn about dangling pointers which means that we use a pointer that we already free. i ask the chatGPT to generate me example and this is the code that he return : #include <stdlib.h> int *get_largest(int *arr1, int *arr2) { if (arr1[0] > arr2[0]) { return arr1; } else { return arr2; } } void dangling_pointer_example() { int arr1[10] = {0}; int arr2[10] = {1}; int *largest = get_largest(arr1, arr2); // ... // arr1 or arr2 is freed, but largest still points to it free(arr1); *largest = 5; } i think there is no dangling pointer here since the pointer largest is point to the first value of arr2 , which is not freed . am i right?
Dm
What about largest = 5? If course, In case if you swap values of arrays
ANDREY
Hello. I have a "hello world" conan package, that i compiled using profile for armv7hf. The log shows that i'm create and install package successfully. Then i try use this package in my cmake project and give an error : /usr/bin/ld: skipping incompatible ... /usr/bin/ld: cannot find ... But when i'm install and use this package native, all is good. Does anyone know in which direction I should look for a solution?
klimi
Which book do you recommend?
I don't have any recommendations, I haven't read any c book if anything I read the documentation /the draft. Cppreference might be quite useful as it provides C docs too
Javohir
Ok thanks
Adam
c++ question .... your code subclasses something from libX, overriding some virtual functions, and marks them as override....... new version of libX comes out your code now fails because the virtual function you re-implement no longer exist..... if you remove them, it fails to build against the old libX do you just remove the override keyword? the functions dont actually do anything, only exist because the base class was pure abstract and they needed an implementation
Adam
yeah, thats my first thought ... i need to see if there is something i can check against
IDCAN
Hello Guys! I need to create cross-platform API library for Windows (.dll) and Linux (.so) OS. What I should to do the next? What kind of project I should to be create?
IDCAN
I'm making a loader for plugins. So the most important part of the loader, this is security. Loader client this is like an .NET (Mono) library, but I'd to create a Native cross-platform library for Windows (.dll) and Linux (.so) for soon loading plugins by using PInvoke. The main point of this question, how to create project solution? How to create one solution, one project for those two OS (Windows, Linux)?
Anonymous
c++ question .... your code subclasses something from libX, overriding some virtual functions, and marks them as override....... new version of libX comes out your code now fails because the virtual function you re-implement no longer exist..... if you remove them, it fails to build against the old libX do you just remove the override keyword? the functions dont actually do anything, only exist because the base class was pure abstract and they needed an implementation
Well I wouldn't use such a library to begin with. It doesn't follow the semantic versioning rules. Assuming it did and the bump up was a major version change, I would still not use it because it doesn't respect the interfaces it created. So you can expect non compatible changes in the future from such a library maintainer. In such a case, if the library must be used, i will then fixate on the version that works and not upgrade (i.e fix the library version to a particular release in the build tool). In the meantime, i will also hunt for alternatives or try writing the library from scratch myself.
Yk
Hello group, please I need a walkthrough on how to hide UltraViewer on Task manager process. My goal is to hide this from zombie from detecting the app running
Daniyal Nadeem
How to learn cpp oop fastly?
Daniyal Nadeem
Can anybody guide me please?
Daniyal Nadeem
I have exam
Adam
Well I wouldn't use such a library to begin with. It doesn't follow the semantic versioning rules. Assuming it did and the bump up was a major version change, I would still not use it because it doesn't respect the interfaces it created. So you can expect non compatible changes in the future from such a library maintainer. In such a case, if the library must be used, i will then fixate on the version that works and not upgrade (i.e fix the library version to a particular release in the build tool). In the meantime, i will also hunt for alternatives or try writing the library from scratch myself.
all good points, however the lib is a OS supplied lib for accessing the calendar. There is no version, no pkg-config i could use to check version, and no #include i could find with version info to #ifdef against. For app to work on the latest release i have to use it, so, the solution i used was to drop 'override' keyword and add 'virtual' keyword. On the old lib, it will still override the functions, and on new it will still build as it doesnt explicitly mark the override
Javohir
Thank u miss
Sabin
Why my records are getting recorded like this sabin thamel Öå ºaccountant  ºý úD
Lee
Hello guys I would like to ask how to run 2 while loops simultaneously? Im still new to C++ programming #include <iostream> using namespace std; int main() { int a,b; a = 1, b = 0; while (a <= 10) { // while() loop which keep repeating the output until condition achieved cout << "Im handsome x" << a << endl; a += 1; // a = a + 1 } while (a <= 10) { b += a; // b = b + a a += 1; } cout << "Sum of 1 to 10 is " << b << endl; system("pause"); return 0; } For the output on the second loop, the output is wrong.
John
how to create a thread when tcpsocket get a new connection?
try boost.asio library it's great for that
JamesBond
I have to calculate the sum of all products in an array but i want that if the day array value increase sum starts with 0 not the value in the previous day array value calculation
JamesBond
I am not getting its logic
JamesBond
There is a missing one ine point
𝕷𝖔𝖗𝖊𝖓𝖟𝖔
hi guys, so I have a problem with writing on sockets in C. Imagine you want to write two messages (server) to the Client: write(socket, "HELLO", strlen(HELLO))...; // Other code (non blocking calls); write(socket, "BUDDY", strlen(BUDDY))...; Well, you would expect (Client-side) this to happen: First read: HELLO Second read: BUDDY Instead this happens: HELLOBUDDY So the two writes on socket are merged. How can I avoid this? It does not happen in this case: write(socket, "HELLO", strlen(HELLO))...; // Other code, but this time BLOCKING calls, like read(socket, buff, sizeof(buff)); write(socket, "BUDDY", strlen(BUDDY))...; Or this case: write(socket, "HELLO", strlen(HELLO))...; // Other code (non blocking calls); // sleep(some time); write(socket, "BUDDY", strlen(BUDDY))...; But the former rarely occurs (sometimes I just have to send two different things on the net) and the latter won't be accepted by my professor. I will be thankful for every suggestion!
\Device\NUL
I am not getting its logic
Just initializae sum first with 0
big
the function read() get messages from host's memory
big
it's network memory
Alzeaze
Hello everyone could u tell me how to let the user enter his marks plzzzz And display them Struct student { Int Marks[20]; }; Int main (){ Student s1[100]; ……………. // cout what ? }
Kirti
I am not able to send the messages in this what is the problem and why is slow mode is active
Mohsen
Hello everyone could u tell me how to let the user enter his marks plzzzz And display them Struct student { Int Marks[20]; }; Int main (){ Student s1[100]; ……………. // cout what ? }
Create something like this in main: Int xyz[20]; For (size_t i = 0; i < 20;i++) { int f; // temporarily var cin >> f; xyz[i] = f; } Ok this part was used to input an array now we use it: Student f; for (size_t i = 0; i < 20;i++) { f.Marks[i] = xyz[i]; }
Mohsen
I think LC_ALL and O are some variables, We need more context
Giorgi
Just check what LC_ALL define equals... if 0 then it is same if not, it differs
Ludovic 'Archivist'
0 would be implementation defined LC_ALL would affect all locale settings
Chat Boss
Нуъмонжонов Пахлавон sent a code, it has been re-uploaded as a file
Majid
vector<vector<Point> > contoure;
Majid
vector<vector<Point> > contoure;
Hello, don't get bored, sorry, can someone explain to me what it does in this vector that uses a point
Majid
Hello, don't get bored, sorry, can someone explain to me what it does in this vector that uses a point
I think it is a two-dimensional matrix, but what are point and contour??
Javohir
If I will install kali linux, which program I can use for C language with live prewie of code result
Persia
Hi
Persia
Does any one knows about C++ programming to teach?
Dm
If I will install kali linux, which program I can use for C language with live prewie of code result
Just Google you favourite IDE and check if it supports your Linux distributive
Persia
I am looking for a teacher in c++programing
Gabriel
If I will install kali linux, which program I can use for C language with live prewie of code result
Are you talking about the pre-instalade toolset for working with C? Some tool are currently available direct from the Live System like vim, vi, gcc, clang and others
Gabriel
If I will install kali linux, which program I can use for C language with live prewie of code result
If you want something more familiar you could just try the Blackbuntu distro, it's a full Ubuntu with a larger variety of pentest tools
Javohir
Ohh thank u
Dm
I am looking for a teacher in c++programing
If you know at least something you can learn fast with our without mentor
Dima
lol
N
Just write ur code and ask it to debug it for u
Persia
No
ynwqmv
if you bored programming and debig by urself damn. left programming