Max
void UPropSelectionUMG_C::UnlockSlot2(bool Unlock_)
{
static UFunction* fn = UObject::FindObject<UFunction>("Function PropSelectionUMG.PropSelectionUMG_C.UnlockSlot2");
UPropSelectionUMG_C_UnlockSlot2_Params params {};
params.Unlock_ = Unlock_;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, &params);
fn->FunctionFlags = flags;
}
Max
Pavel
Anonymous
Message from Vikas
Hello Guys...I am having a problem with coding a small C++ project....can someone please help me out... please text me in private if possible
▪️fateme👷🏻♀️
#include<stdio.h>
int* increment(int a) {
int* b;
*b=a;
*b+=1;
return b;
}
int main() {
int num=5;
int*b=increment(num);
printf("%d",*b);
}
How can I fix this code?
Лазиз
Hello 👋🏼
Create an src/important_function.c program that receives one floating-point number x and displays the result of calculating the function on the screen (rounding to one digit after the decimal point). Add a check for the input data so the program only receives numbers. For errors, display "n/a". In this quest, in addition to <stdio.h> you can use the library <math.h>
How to add a check for only receiving numbers?
Pavel
Лазиз
Qadeem
👋
Anonymous
char CNames[128];
for(int n=0; n<32; n++)
{
if(!CNames[n*4])
{
strcpy(CNames+n*4,Ccy);
NumCurr++;
}
}
Question:
What does !CNames[128] mean?
Pavel
Anonymous
The !CNames[n*4] is in a loop
Anonymous
function main()
{
char CNames[128];
int NumCurr = 0;
int ccyIdx(char* name)
{
char Ccy[4];
memcpy(Ccy,name,4);
Ccy[3] = 0;
for(int n=0; n<32; n++)
{
if(!CNames[n*4])
{
strcpy(CNames+n*4,Ccy);
NumCurr++;
return n;
}
if(strstr(CNames+n*4,Ccy))
return n;
}
return 0;
}
}
▪️fateme👷🏻♀️
Anonymous
Perhaps this should provide a better framework
Anonymous
Pavel
!CNames[n*4]
What does that mean?
Take value of an element at position n*4 and return true if that element is equal to zero (to '\0' character), return false otherwise.
Anonymous
Anonymous
I need help.
Anonymous
in executing a code, I'm not getting the proper result.
klimi
cool, there must be some problem then, you should fix it
Anonymous
Pavel
@K11M1
Dude, why you mentioning people all around and providing zero information to help you
Pavel
Imagine people can't read your mind
DaviChan
Don't respond. Its just bait, so just ignore.
Rain Bow
Hi can i know are RPA is subset of Ai ?
Sleeves
Hello guys
Sleeves
https://hastebin.com/ezapurazam.cpp
ㅤ
I had created a software which writes programming code as per requirement
Anonymous
can I send media inorder to explain.
Anonymous
Anonymous
Anonymous
Anonymous
can't send media here.
Anonymous
klimi
Anonymous
Sleeves
Sleeves
Sleeves
It’s an exercise from K&R like I said
klimi
Anonymous
Anyone please ?
It compiles and executes fine. Just copies the input string to longest and outputs it.
Sleeves
Sleeves
It doesn’t give any output on my mac. I will try on another box
Anonymous
Anonymous
Anonymous
Did you try to run it
What does executes fine mean?
I input alphabet and the output was kamesalphabet as is evident from your program
Anonymous
Anonymous
Sleeves
Thank you
Sleeves
Arch Linux.
gcc test.c -o test
I feel like I might be missing something very basic here. This is how I do it , please correct me if I’m wrong. I’ve tried on a mac and kali box it’s all the same result.
gcc test5.c -o test5
./test5
When it prints kames , I proceed to attempt to give it input. And then nothing happens. Am I doing anything wrong there plesee ?
Ольга
Maybe some of you have some information about struct member functions? I can't figure it out
DaviChan
in C or C++? In almost all cases you would normally just use a class? Or did I get something wrong?
pavel
Pavel
DaviChan
to get member functions in C however, you need to do some trickery. What I usually do is just to create free functions with the this pointer as an explicit argument. Its not quite a member function then, but for my cases usually an okay solution. As said if you are using C++ please just use a class. Structs can have member functions also, but they way I see it: they where designed to hold data, not behavior... although functionally they are pretty much the same as classes
Ольга
DaviChan
Okay, I understand that. And yes, you are right. Simply write a function inside of the class
DaviChan
or if you have to split the declaration and the implementation in header and cpp file, then using typedef to define the struct as a type and then using the name resolution operator in the implementation file should also work
DaviChan
pretty much the same as you would do with classes, only that you use a typedef to define the struct as a type
DaviChan
hope im not mistaken there
Ольга
Okay I trying, Thanks
DaviChan
Im afk rn, but ill be on my machine in an hour or so. Id be happy to check as well and let you know
pavel
the best for everyone
#include <stdio.h>
int main(){
int var = 5;
int* p;
float *k; // also with double are 8 bits for each variable;
int x=1000;
int *q, *c;
int r;
printf("the value is %p\n",&var);
p=&var;
printf("the value is %d\n",var); // pay attention
*p=10; // It's used to change the variable of it
printf("the value is %p\n",&p); // p is pointing to var variable
printf("the value is %d\n",var);
*p=*p+1;
// printf("After adding 1 = %p",&p);
r=&c;
printf("the value with two pointers is %d",r); // why is it not pointing the value of r
}