Anonymous
like when i input a name like 'Teach' it will display 'each', the first character is ignored
Anonymous
if I am compling ,but I close terminal
Anonymous
will it stop compiling
Mikhail
yes
Anonymous
how to avoid it
Talula
how to avoid it
In DOS? Windows Terminal? Linux or Mac?
Anonymous
linux
Talula
Start the command with & and it will compile in the background.
Anonymous
like this
Anonymous
make &
klimi
use tmux or screen which can be detached. or if you just want one process you can use nohup make
Anonymous
why execute and Ctrl z and bg
A. R.
Thank you
Don't answer trolls, there are more trolls than there are actual developers here. Just wait for someone to answer you properly. I only once asked a question here, and all I got was a couple trolls blessing me with the classic "let me google that for you", while I couldn't find the answer I was looking for, and deleted the question to prevent any further potential clowns wanting to join the wise gang. Ask whatever there is on stackoverflow, quora, reddit or any other platform you prefer honestly, think of this group as sort of a last resort option. No offense to those who actually help out those who need it.
Talula
no... this won't save you
What if you use sudo &make? Will it be better? Because on Linux I run my processes as sudo &node xxx.js
klimi
no idea... but running make as root sounds weird
klimi
disown will work also
Ludovic 'Archivist'
Comsats University lahore 3rd smster
Then a string -> string associative container using a AVL tree that you can then expand as a caching server
Anonymous
disown will work also
disown will not work if you don't redirect the output. Make often outputs error messages and others to the stdout of the shell it was created from (in this case the terminal). So if the terminal is closed, the make process fails after trying to write to stdout. The best way to run make in the background is nohup make ... &
Anonymous
Don't answer trolls, there are more trolls than there are actual developers here. Just wait for someone to answer you properly. I only once asked a question here, and all I got was a couple trolls blessing me with the classic "let me google that for you", while I couldn't find the answer I was looking for, and deleted the question to prevent any further potential clowns wanting to join the wise gang. Ask whatever there is on stackoverflow, quora, reddit or any other platform you prefer honestly, think of this group as sort of a last resort option. No offense to those who actually help out those who need it.
I did answer his question trying to clarify what the build process is like. He simply kept saying that he tried and it failed without telling me why. So I stopped replying after that. Sometimes people have to take an effort to resolve their issues and if they can't, they should atleast be able to tell you what is failing for others to be able to help. Simply saying "please build this for me" doesn't qualify as one such question. Apart from not doing his job, he also doesn't understand that the libraries compiled/generated on one system don't necessarily work unchanged on another system. This was my reply to him (https://t.me/programminginc/425773). What more can people do? If people asked you to check Google, then you could have told them what you searched for. Someone may have been able to help you better then.
Anonymous
Hello
Anonymous
Hello everyone, my name is amro, I'm C/C++ philosopher, trying to get a job
A. R.
I did answer his question trying to clarify what the build process is like. He simply kept saying that he tried and it failed without telling me why. So I stopped replying after that. Sometimes people have to take an effort to resolve their issues and if they can't, they should atleast be able to tell you what is failing for others to be able to help. Simply saying "please build this for me" doesn't qualify as one such question. Apart from not doing his job, he also doesn't understand that the libraries compiled/generated on one system don't necessarily work unchanged on another system. This was my reply to him (https://t.me/programminginc/425773). What more can people do? If people asked you to check Google, then you could have told them what you searched for. Someone may have been able to help you better then.
The point you're making is undoubtedly valid, and I completely respect that. 👍 You wanted him to try to figure it out himself, and that's totally fine, who am I to say otherwise? I wasn't necessarily talking about helping him out, I was talking about those going out of their way to both milk the guy and humiliate him along the way, I mean you're doing a service and you have all the rights to ask something in return, but really? If you're going to do what he wants, don't you think it's a low blow to charge someone who is supposedly in dire need and is basically not able to really figure it out himself either since he isn't an English speaker? I'm in no way, shape or form right to judge others on this matter, I just wanted to help him get what he wants somewhere else since here was turning out ugly for him.
Abhi
I want data structure group
Shubh
Write a program to enter 4 digit numbers from user and display it in string. e.g. Input : 1234 output : One Two Three Four.
Anonymous
Ohk
olli
I want data structure group
what's your question?
Bojan_Krdemn
Then i need to do something with array[count], probably before I call the function void reorder () which sorts array so that every root is smaller than its child
Anonymous
You need to reduce count by 1. Once you remove the root node, your array now has only n-1 elements.
Your sift up (reorder) will use only these n-1 elements to put the elements back in heap order. If you don't change count, then the element at arr[count] will again move back to root position
Bojan_Krdemn
Right. And I account for that in the loop in function void reorder() For (int i=1 2i+1<=(count -1); i++)
Andrii
While writing in ofstream like this: file << 15000 numbers get formatted this way: 15 000 and if I try to read it I get 15 instead of 15000. What's may be wrong? UPD: This happens only after program is finished even though my file is flushed and closed...
Anonymous
.
Laopigo
Why does calling SDL_SetRenderDrawColor function cause a segmentation fault? https://pastebin.com/NdsE7jf3
Nameful
Why does calling SDL_SetRenderDrawColor function cause a segmentation fault? https://pastebin.com/NdsE7jf3
Why do you check if the various functions return a value smaller than 0?
Nameful
That looks unusual
Nameful
This is just error handling
Yeah, I was just wondering if that actually works
Nameful
I wonder if the renderer pointer is null or something like that
Laopigo
I cannot reproduce the issue, I don't get the segfault
Hmmm... So maybe this is because I am compiling this on android :/
Amu
I’m using Linux’s vagrant to do my c assignment. I keep getting a “device or resource busy” error. Does anyone know why?
Amu
fail: fusermount: failed to unmount /home/vagrant/myLabs/lab5/mnt: Device or resource busy
Anonymous
try killing the process
Amu
I tried the only thing that works is restarting the pc
Hope
DevC++ is available for MacBook air m1?
Mr
Check Rules
Laopigo
How to get name of function by its address, at example using gdb?
many
What’s the best container for a sorted list with massive random insertion and deletion?
olli
How to get name of function by its address, at example using gdb?
https://www.ece.villanova.edu/VECR/doc/gdb/Symbols.html info symbol <address>
shriman_deepak
Write a program to enter 4 digit numbers from user and display it in string. e.g. Input : 1234 output : One Two Three Four.
Make a string array and use switch, and divide the number such that u get the 1st number , 2nd number and so on respectively.
\Device\NUL
Make a string array and use switch, and divide the number such that u get the 1st number , 2nd number and so on respectively.
You can also made it without any string Just use getchar or cin.get, loop until find EOF or newline
\Device\NUL
I didn't get actually
Maybe this simple program can explain
⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠⁠
\Device\NUL
Yes
#include <stdio.h> int main(void) { char ch; int res = 0, a; while (scanf("%d", &a)){ res += a; ch = getchar(); if (ch == '\n' || ch == EOF) break; } printf("%d\n", res); return 0; }
Felix
Sorry if my question is kinda OOT, is Data Structure really important? if it is, why?
olli
Sorry if my question is kinda OOT, is Data Structure really important? if it is, why?
Yes, because you need to store your data in some form. Some data structures are optimized for lookup, others are optimized for random access and iterating through it. Using the right DS can make a huge performance difference.
olli
What’s the best container for a sorted list with massive random insertion and deletion?
If alterations are you biggest concern and the container should be sorted some tree data structure might be your best bet (e.g. std::multiset)
Prince Fine
Can someone help me on the project I'm working ?
Prince Fine
Provide more information
Its about album management system
Prince Fine
Asking permission for pv or u can get more info