Alireza
hmmmm... why... maybe because you using it incorrect ?
Resources.rc ============ IDR_FILE FILE "rec\\Dbgview.exe" Resource.h ============= #define FILE 108 #define IDR_FILE 109 Main. Cpp ============ hRes = FindResource( NULL, MAKEINTRESOURCE(nResourceId), wideString) I used in this way Nresource is 109 And widestring is L"FILE"
Prinzkyd
please i need trail questions anyone?
E
One quick question, i had a problem with scanf in C, there were two scanf and the program would execute the first but jump the second, i fixed it but now when it executes the second it just waits there till I do ctrl Z to terminate it(basically it doesn’t execute the rest of the program ) any advice
christian
What is the difference between _putchar and putchar ?
▪️fateme👷🏻‍♀️
If we want to return an static array from a function returning a pointer, we can't use a variable to store the returned value from the called function(existing in the Caller function) What about using an array for storing the returned value? Can we use it?? The thing I know is that we can store returned address in a pointer array or a function pointer
Dima
that limited thing is getting very annoying, maybe we should adjust Rose’s ban triggers
Ludovic 'Archivist'
Hmm filter like crypto, earn
earn is a dangerous one because it is a word stem
Ludovic 'Archivist'
and crypto is also a bit meh for the same reason
E
/start@MissRose_bot
Deepak Chaurasia
Hmm ,let it report and ban
Lucas
Does anyone here use ccls LSP for neovim? Mine says vector doesn't have a subscript operator, but It does right? Is it something I forgot to do?
E
I can take input in both scanfs but after I do so the program just starts to wait endlessly without executing the rest of the program unless I type ctrl Z and it executes the rest of the progam
E
As if it enters a self-made loop
Unknown man
Anonymous
👋
E
send code
Can i send a photo or do I have to compress it
Unknown man
send photo or screenshot
E
ok
E
i'll just send the code here cuz it doesn't let me share media
Anonymous
Can i send a photo or do I have to compress it
Do you write code inside picture files?
Pavel
send photo or screenshot
Don't motivate people to send photos of their monitors here
sushi
Is my condition right? if(q_size==-1) { std::cout<<"QUEUE IS EMPTY"; q_size++ }
sushi
Idk, i'm just guess
Ludovic 'Archivist'
Is my condition right? if(q_size==-1) { std::cout<<"QUEUE IS EMPTY"; q_size++ }
How are we supposed to appreciate its logic if we have almost no information about the context and meaning of things
sushi
should it be 0?
Ludovic 'Archivist'
its quite long
put it on a pastebin or something like that
Ludovic 'Archivist'
and explain what you are trying to do
sushi
Give me a sec
Ludovic 'Archivist'
use you own isEmpty method instead of that sketchy comparison
sushi
Uhm
😉
nothing to build for project error how to solve it?
Prinzkyd
Trial questions Anyone?
klimi
Trial questions Anyone?
what are you offering?
Prinzkyd
what are you offering?
Java c++ JavaScript sql python VB
Anonymous
nothing to build for project error how to solve it?
Why do you assume it is an error? It could just mean that nothing has been changed since the last build.
klimi
Java c++ JavaScript sql python VB
i don't understand what you mean by your message
klimi
Dm
nah, don't dm me please i hate it
😉
its not showing erorr when building a sample project output console info:'Nothing to build for sample'
Anonymous
but i cant get an output when running that project
Do you see some error when you run the project. It could be the case that the console window opened by your code editor closes immediately after running your project code causing you to think that the project is not running.
▪️fateme👷🏻‍♀️
#include<stdio.h> #include<stdlib.h> float* getRandom() { static float r[10]; int a=20; for(int i=0;i<10;i++) { r[i]=((float)rand()/((float)RAND_MAX))*a; return r; } } int main() { float* n; n=getRandom(); for(int i=0;i<10;i++) { printf("%d\n",*(n+i)); } } Yhis is my output: 1073741824 0 0 0 0 0 0 0 0 0 What mistake I had done to have this output(I wanted some random numbers)
▪️fateme👷🏻‍♀️
Your "return r" statement is within the for loop
I corrected the code as you said, but the numbers at the output is greater than 20 or are negative What can I do for it
Sam-tlt.btc
I just posted a code admin
Sam-tlt.btc
Can you please help retrieve it
Sam-tlt.btc
I am trying to make my code print the largest number out of 3 sets but it keeps coming back as zero
Sam-tlt.btc
here is the function
Sam-tlt.btc
#include "main.h" /** * largest_number - returns the largest of 3 numbers * @a: first integer * @b: second integer * @c: third integer * Return: largest number */ int largest_number(int a, int b, int c) { int largest; if (a > b && b > c) { largest = a; } else if (b > a && a > c) { largest = b; } else { largest = c; } return (largest); }
Sam-tlt.btc
thats what i have been stuck with
Anonymous
thats what i have been stuck with
Change your conditions to a>=b and a>=c -> a is largest b>=a and b>=c -> b is largest else c is largest
Sam-tlt.btc
highly greatful
ㅤㅤㅤ
Can anyone explain pivot element in rotated sorted array is minimum value or maximum value
Sam-tlt.btc
thanks
Anonymous
Can anyone explain pivot element in rotated sorted array is minimum value or maximum value
Depends on the sorting order. If it is sorted in ascending order, the pivot element is minimum and viceversa
Max
How I can solve this issue?
Max
error LNK2001: unresolved external symbol "public: void __cdecl CG::UPropSelectionUMG_C::UnlockSlot2(bool)" (?UnlockSlot2@UPropSelectionUMG_C@CG@@QEAAX_N@Z)
Scriptern
#res
Pavel
error LNK2001: unresolved external symbol "public: void __cdecl CG::UPropSelectionUMG_C::UnlockSlot2(bool)" (?UnlockSlot2@UPropSelectionUMG_C@CG@@QEAAX_N@Z)
This usually happens when you have a declaration but not implementation for your function: - you didn't implement it or deleted it - you didn't compile cpp file or didn recompile it after a change - you didn't link a static library with the implementation
Max
What did you change before it started giving this error?
const auto l_prop = static_cast<AProp_C*>(lc); const auto l_ppp = static_cast<AFPS_PC_C*>(lc_controller); drawing->text("[PROP BUTTONS]", { 10, 25 }); drawing->text("[CAPS] Jump", { 10, 45 }); drawing->text("[F3] Disable collision", { 10, 65 }); drawing->text("[SHIFT] Speedhack", { 10, 85 }); l_ppp->PropSelection->UnlockSlot2(unc_slot2); //error is here l_prop->CapsuleComponent->SetCollisionResponseToAllChannels( //i want to do like this line GetAsyncKeyState(VK_F3) & 0x8000 ? Engine_ECollisionResponse::ECR_Ignore : Engine_ECollisionResponse::ECR_Block);
Max
Is UnlockSlot2 implemented? Can you find code of it?
yep. when i make like -> it shows unlockSlot in the list
Pavel
yep. when i make like -> it shows unlockSlot in the list
That not what I'm asking about. I'm asking about actual implementation, the code in cpp file that will be executed when it's called