Vishal
/get
Vishal
/get
Anonymous
What is similar to fscanf in c++?
Anonymous
ifstream::operator>>(Type)
Then how how to convert the below syntex to c++?
fscanf(file pointer, "\n%c %s", & cs.letter, cs.code);
Emmanuel
Any idea on how to make the console look beautiful on codeblocks? Aside the default black background and white text ?
Nana
Nana
Go to screen text and screen background respectively and change the colors to your choice
Stefano
Hi guys, i'm trying to compile a project with makefike using clion. After opening the project I have this error: CreateProcess error=2 how can I solve?
Ouch
Hi guys Which tool is used to develop C++
Programming ?
Viking
/notes
J
If you are talking about recommended ide or text editor for CPP programming,
J
/get ide
Anonymous
I’ve read the rules and I agree with them
Anonymous
Heyy need some help in my vs code
christian
What's wrong?
Anonymous
It giving PS with output
christian
Ps meaning
Anonymous
Don't know
Caio
I'll your suggestion of two structs and also with a pointer of pointers, for learning. Thanks.
Anonymous
/notes
Pakrinha
/notes
Anonymous
R
Hi guys, if anyone familiar with ptrace and you can help me that'd be great.
I try to receive a (childs) process registers via ptrace on arm64 machine.
The steps are:
1. fork()
2. the tracee (child process) calls ptrace with PTRACE_TRACEME
3. the parent process calls waitpid and checks for SIGTRAP
4. the parent process calls ptrace with PTRACE_GETREGSET and with appropriate and valid arguments.
Everything is fine, except the 4th call, in which I receive ESRCH.
What can go wrong?
Thanks.
Ольга
Good afternoon everyone, sorry to bother you, I need help. Maybe someone knows how to expand the matrix by one row in C.
For exemple :
In first
1 2 3
4 5 6
Line to add: 7 8 9
And in the end
1 2 3
4 5 6
7 8 9
I hope that someone will be able to suggest a way. Thank you for attention
Prince Of Persia
Anonymous
Hello everyone, i am Jaslene and i am a customer Service representative for a crypto investment company.
Recently my company came up with an investment scheme that the general public can partake of and earn profits from. We have a mining pool where we mine USDT and other crypto currencies and we are looking for investors on small scale to make this mining pool platform a success.
we came up with this idea during the pandemic time where people lost their jobs and we had to find another way where people can make money easily while they are at home
Our mining pool program starts from $35, and when you register, you will be given a 1% profit on cryptos that are mined daily. and the more you invest the more percentage you will earn. in simple terms, if you register for the mining pool program, and let's say on monday the company mines 700 USDT, you will receive 1% which is 7 USDT, and if on tuesday they mine 1000 USDT, you will receive additional 1% which will be 10 USDT, so in two days, you will earn 17 USDT. And as time goes on you will earn more based on your percentage on investment, because the company will be mining cryptos everyday.
But please note, we do not take cash from individuals, and we do not request anyone to send money. in order for you to register for this platform, you have to have a VALID NATIONAL ID, like a PASSPORT, DRIVER'S LICENSE or other government issued ID. Payments are done online to purchase your cryptos by yourself in your own crypto wallet that will be given to you.
Interested persons can contact me for more details and instructions
Peace
if we have a vector , how can we delete element at any index ?
Mayank
any one have any idea in cloud aws gcp and devops vaccines if you have please let me know on mail id mayanksharma.offical@gmail.com ,mayank1751997@gmail.com also you can contact me on my mobile number 7665982181 i am immediate joiner
Emmanuel
Anonymous
hello can anyone help me to solve a problem in cpp?
Anonymous
i want to write a programm that input k and output the k'th nu,bers of this number" 12345678910111213..." without string or arraye
klimi
klimi
Anonymous
Anonymous
Anonymous
Anonymous
ok than I think you need to work on stream object
Anonymous
you can iterate single chars in a for loop
Anonymous
Anonymous
do you get input number from cin?
Anonymous
yeah
Anonymous
do you get input number from cin?
this is the problem:
alex has written a programm that prints numbers from 1 to 5000 in deifferent lines but unfortunately his \t has a problem and the programm has producted a huge number "12345678910111213141516..."
now he want know the k'th number of this huge number.
for example input 10 and output 1
klimi
but not sure where you want to store it if you don't want to use arrays
Anonymous
klimi
exactly
yeah exactly, you can't...
Anonymous
klimi
you will need at least memory to store k, counter and current character
Marcio
Hi!
So, I'm practicing pointers and LinkedList in C.
I have this function "add", for adding a new node to the LinkedList.
I initialize the linked list struct as null:
Node *list = NULL
Then I pass this Node to the add function which has the following definition:
void add(Node *n, int value);
First I create the struct representing the first node, called p.
Node *p = malloc(sizeof(Node));
p->value = value;
p->next = NULL;
So far, so good.
The second thing is checking whether the received pointer is null or not, so as to define it as the first item on the list.
if (n == NULL) {
n = p;
return;
}
This is where I don't get it. The address of p is set to n, but just within the scope of the function add. When I get back to main, the address of *list is still NULL. I'm not passing it by value, but by reference, but it's clearly not working and I'd like to understand why.
Ty.
I'll try to send the whole code on a link.
You have to pass the address of the pointer (&p) if you want to alter to where it is pointing to inside the function. So, call f(&p), and define f(<type> **p)
Ольга
Good evening, I'm sorry to bother you. I had a question about how to combine the two matrices.
For exemple
A=[1 2 3
4 5 6]
B=[ 5 9 3]
AB= 1 2 3
4 5 6
5 9 3
I was advised above the dynamic arrays, I tried to understand but so far failed. Maybe there is an easier way to combine them? Thank you for attention
klimi
Anonymous
thats basically the only way i can think of, maybe someone else has more clever solution?
Anonymous
Anonymous
Anonymous
Anonymous
I want solve that without string or array
✞✟✞✟✞
Hi everyone, from the code styling perspective, is it considered to be alright practice to declare a small struct in .h file containing class declaration, in case this struct is used EXCLUSIVELY within that class?
Anonymous
Anonymous
smene
artemetra 🇺🇦
Artur
Artur
The reality is, you will need to adopt for code style every single time you switch job, all teams have their own code style :)
Anonymous
Fast To Earn Community
👍
Anonymous
Hello
Anonymous
I need help