Anonymous
Jose
Thanks Jose 🙏🏻
sorry if it isn't the answer you are looking for
Chat Boss
ᅠ sent a code, it has been re-uploaded as a file
ᅠ
ᅠ
I'm beginner
ᅠ
Well, I tried and added but the 3rd one does not work correctly
klimi
How to add?
how did you figure how to get 2 max items?
ᅠ
Is it actually possible to add max3 to this code or would i have to write an alternative form? That's why I'm asking...
Nada
i have to study more about pointers to arrays and arrays in dynamic memory and inheritance
Nada
so if u can recommend me a way and a problems in it
Anonymous
Hello
DaviChan
hey there is there some alternative for libcurl in modern C++ that is simple in the sense of small and portable. I don't care if it is "hard" to use. It should be useable ofc. but i really care more about small file size and portability in the sense of: easy to compile/cross compile
DaviChan
Has few dependencies
Anonymous
Hanz
Anonymous
Or just wget
Suka
Bilal
Anonymous
Tochukwu
Good morning please can someone help with the c program To enter and display values or an array using à c program?
Mr
Dm
h
Anonymous
Is there a group for electrical engineering? (please send it to me privately so you don't break a rule and advertise) 🙏
кар карыч
why is the game crashing? after load library
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, GetProcId("gta_sa.exe"));
HMODULE module = GetModuleHandleExtern("plugin.dll", GetProcId("gta_sa.exe"));
HMODULE kernel = GetModuleHandleA("Kernel32.dll");
DWORD Adr = (DWORD)GetProcAddress(kernel, "FreeLibrary");
HANDLE hThread = CreateRemoteThread(hProcess, 0, 0, (LPTHREAD_START_ROUTINE)Adr, module, 0, 0);
WaitForSingleObject(hThread, INFINITE);
CloseHandle(hThread);
CloseHandle(hProcess);
klimi
? What is the purpose of your message?
King
_s.u.cass_a__ke
Hello guys.
I have a little problem with my code(c/c++) in my Vs Code. Is there anyone to help?
_s.u.cass_a__ke
okay. I do have a problem with compiling. I had to install Mingw-w64 via MSYS2. But still can't run my code.
Chat-GPT guidance was through run and debug and it worked. What I want is for my code to run without debugging. Simple!
_s.u.cass_a__ke
When I run it, this is the kind of error I get:
g++: The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name,
or if a path was included, verify that the path is correct and try again.
At line:1 char:57
+ cd "c:\Users\hp\Documents\.vscode\.vscode\" ; if ($?) { g++ hellowolr ...
+ ~~~
+ CategoryInfo : ObjectNotFound: (g++:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
_s.u.cass_a__ke
it will be my pleasure if someone will assist me. Thankyou.
Anonymous
_s.u.cass_a__ke
and how will I do that? am just a beginner at my level.
_s.u.cass_a__ke
Do you mind showing me?
Athanas
Hello guys help me to understand cin >> when used in loops
https://pastebin.com/asRCgv7S
Tochukwu
Abdur Rahman
Suggest
me a good site/channel to learn C programming
Abdur Rahman
Nada
can i get a 5$ service to make undo and redo
s
hello people
s
#include <stdio.h>
#include <string.h>
void bubbleSort(int n, char name, double a[20])
{
int i,m,swap;
double d;
m=n;
/*Funktion to sort the array*/
do
{
swap=0;
for (i=0;i<m-1;i++)
{
if (a[i]>a[i+1]) //a[1, 2, 3 ...10] > a[2, 3, 4...]
{
d=a[i]; //give var d the value of i
a[i]=a[i+1]; //swap i with i+1
a[i+1]=d; //swap i+1 to d
swap=1;
}
}
m-=1; //coutdown
}
while (m>1 && swap);
}
int main(void)
{
int n=20; //20 Parts for Bubblesort
char name; // Character for 20 input
double b[name]; // input name in a
scanf("%s",&name);
bubbleSort(n,name, b[name]);
}
s
why is that not working
s
´
s
can you allow pictures pls in this group?
klimi
s
why?
having an issue regarding this code
s
want to show the console output
klimi
isn't console just text?
s
yes
s
simon@simon:~/projekte$ gcc -Wall bubblesort.c -o lo
bubblesort.c: In function ‘main’:
bubblesort.c:49:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
49 | bubbleSort(n,name, b[name]);
| ^
bubblesort.c:49:23: error: incompatible type for argument 3 of ‘bubbleSort’
49 | bubbleSort(n,name, b[name]);
| ~^~~~~~
| |
| double
bubblesort.c:6:42: note: expected ‘double *’ but argument is of type ‘double’
6 | void bubbleSort(int n, char name, double a[20])
| ~~~~~~~^~~~~
s
any suggestions? D:
klimi
s
how can I fix it?
s
the array should store names
s
and sort their first letter to A -> xyz
s
do you have a suggestion how I can do that?
klimi
well you want to put array, but you are only passing a double
s
maybe I should not put everything in the same function
ㅤTakipçi Satışı
Can someone who understands a Discord bot help?
klimi
that's not the problem
ㅤTakipçi Satışı
Please
klimi
the problem is that your function bubbleSort needs as 3rd argument a pointer to double array, but you are putting there a single double value
ㅤTakipçi Satışı
klimi
klimi
klimi
PFFFFFFFFFFFFFFFFFFFFFFFFFFF @roxifas look at this