klimi
No bro it is used for graphic design too
i don't doubt that, i was just saying what I considered offtopic ._.
Dima
lol
Dima
okay keep modding/games to ot and imgui/c++ guis here
DaviChan
i didn't have anything agains the gui, but the fact that they are just discussing modding games
Well also done with C++ though 😅. But i don't really discuss that. But for me: this is a group and any chatting will some times goes slightly off-topic. I dont think you can have an active group + enforce beeing on topic all the time.
Anonymous
David can you tell more about nuklear
Anonymous
So that I can use it
Anonymous
Before imgui i was using java
DaviChan
It's an intermediate mode/ header only C GUI library. Pretty straight forward to use if you have a context to draw in
Anonymous
Can you help me with that
DaviChan
Supports every major graphics api. Namely: opengl, dx12, vulkan
Anonymous
I wanna make a simple user interface with that
DaviChan
They have extensive examples on their github
DaviChan
My minimalist friend who hates OOP showed it to me 😂
DaviChan
https://github.com/Immediate-Mode-UI/Nuklear
mj12
I wanna make a simple user interface with that
Chances are if you want to get deep into customization, any 'simple' library isn't going to cut it and you'll have to write your own anyway.
Anonymous
My minimalist friend who hates OOP showed it to me 😂
Nice 😂 basically minimalist is still using java interface for modding 😂
DaviChan
Chances are if you want to get deep into customization, any 'simple' library isn't going to cut it and you'll have to write your own anyway.
Honestly nuklear offers great skinning options and also allows you to write custom controls easily. With only 10k-ish lines of code, the code can be understood and customized by a single person. I think the license was also pretty fair. But i use it for personal projects only anyways
DaviChan
At work we do have our own gui library. But its by no means as "tidy"
Anonymous
Bro can you design a interface with nuklear
DaviChan
Like not for free at least 😅
Anonymous
A simple buddy
Anonymous
Just for a exams
Vlad
Bro can you design a interface with nuklear
Just load up an example. Tinker with it for 30 minutes and there ya go
Vlad
You're gonna write requirements longer than this
DaviChan
Also i dont think there are many designers here. But it sounds like a designers job 😅
Vlad
Also i dont think there are many designers here. But it sounds like a designers job 😅
And for somebody to code it in ImGui one would have to design it as well, even if you outsource the coding part
Gain
why do sometimes i get segmentation fault error when i dont use return 0 in a int function but other times program works fine
hrb
hey
hrb
i got a question
hrb
#include<iostream> using namespace std; int main() { int i = 7, t[7] = { -1,2,4,9,5,8,3 }; while (i > 0) { cout << t[i--] << "\t"; cout << i-- << endl; } }
hrb
so there's this question bout the output of this code
hrb
when i run it
hrb
22024 6 8 4 9 2 2 0
hrb
this is the output now it all makes sense except the first number its just a random number everytime
hrb
what's the deal with it , can someone please explain
Adèniran
the first print is t[7] but tour table finish on t[6]
Adèniran
the intruction t[i--] can be decomposed in first: t[i] secondly i = i-1
Resul
int main() { char c[3] = "sel"; char *d = "sel"; } I want to check if the value of these two variables are equal. I expect it to be equal since the values ​​are the same. If I use 'strcmp', result = 1, The result should be 0. strcmp(d,c); strcmp(d,&c[0]); Can you help, How should I check?
Adèniran
to compore string use strcmp of string.h
hrb
ah okay thank you very much
Talula
and don't do cout << i-- <<endl; just do cout<<i<<endl;
Max
how can i create my own int data type that can receive 10**100
Void
Guys I want to find prime numbers in a[10]and put them in b[10],but how to remove extra 0 in b[10]?
Talula
how can i create my own int data type that can receive 10**100
https://www.geeksforgeeks.org/bigint-big-integers-in-c-with-example/
Void
b[x] = a[x] / 10;
Like,when a[10]=10 9 21 7 5 4 11 35 2 100, b[10]=7 5 11 2 0 0 0 0 0 0
Void
I want to remove these 0
Void
I need to rank these prime numbers so i have to remove 0 first🥲
Talula
Like,when a[10]=10 9 21 7 5 4 11 35 2 100, b[10]=7 5 11 2 0 0 0 0 0 0
Your input and output has nothing to do with 10 or 0 in the end...
Talula
Void
But these zeros will be printed out
Talula
But these zeros will be printed out
The 0 are what the array part is not filled... it has nothing to do with 0 or 10 or anything.
Talula
But these zeros will be printed out
#include <iostream> int main() { // Write C++ code here int a[11] = {10,25,19,5,7,4,12,92,21,20}; int b[11] = {0,0,0,0,0,0,0,0,0,0}; bool prime = true; int newi = 0; for (int i = 0; i<= 9; i++) { prime = true; for (int x = 2; x< a[i] - 1; x++) { if ((a[i] % x) == 0) { prime = false; } } if (prime) { b[newi++] = a[i]; } } for (int i = 0; i <= 9; i++) { std::cout<<b[i]<<std::endl; } }
Void
yes
Talula
Then just change if (b[i] != 0) std::cout<<b[i]<<std:endl;
Talula
Or change in the for loop like this... for (int i = 0; i <= newi - 1; i++)
Void
Yes
Void
Now I solved it.Thank you☺️