Jose
Thanks Jose 🙏🏻
sorry if it isn't the answer you are looking for
Anonymous
sorry if it isn't the answer you are looking for
oh, but I liked the part that talked about readability and how complex understanding the code can become🤔
Chat Boss
ᅠ sent a code, it has been re-uploaded as a file
klimi
ᅠ sent a code, it has been re-uploaded as a file
Why don't you just add the third element if you already have 2?
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?
how did you figure how to get 2 max items?
If you can add max3 then help and that's it, I found an example from another site
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
Suka
I want to learn C programming How to do so
get any c/cpp ebook and go to online free course like leetcode or exercism. goodluck
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
Or just wget
DaviChan
What are you using it for
https post requests from different platforms where it is hard to use libcurl on
Tochukwu
Good morning please can someone help with the c program To enter and display values or an array using à c program?
Dm
Good morning please can someone help with the c program To enter and display values or an array using à c program?
you can ask for help with some part of the code but nobody will write whole code for you (except google or chatGPT)
Tochukwu
Sure if you follow the rules Rule 2: No Homework
Sorry it is not a homework I was just learning c and google didn't give me what I wanted .that's why I asked for help
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);
Mr
Sorry it is not a homework I was just learning c and google didn't give me what I wanted .that's why I asked for help
You have to use loop for inputing data into an array and the same thing for getting value of array elements Example: int toch[3]; // It can store data from 0 to 2, total 3 sequential memory address // Inputting the data into array for(int i=0; i<3; i++){ scanf("%d",&toch[i]); } // Similarly Outputting array elements for(int i=0; i<3; i++){ printf("%d\n",toch[i]); }
klimi
? What is the purpose of your message?
King
? What is the purpose of your message?
Just finding someone who can help me in coding
Jose
Just finding someone who can help me in coding
Put your questions here, it will be useful for others
klimi
Just finding someone who can help me in coding
but like... why would you want a beginner for that? to teach you bad habits or what? I am sorry but i fail to see the value of your post
_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?
Otoniel
Hello guys. I have a little problem with my code(c/c++) in my Vs Code. Is there anyone to help?
Ask your question directly, consider sharing your code, if anyone can help will do it for sure
_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.
_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
Anonymous
and how will I do that? am just a beginner at my level.
Just follow this: https://code.visualstudio.com/docs/languages/cpp
Mr
Using à function
Yea, pass address and do the same thing
Abdur Rahman
Suggest me a good site/channel to learn C programming
Mr
Suggest me a good site/channel to learn C programming
Gfg, w3schools, cppreference(Might be a little bit awaful), Tutorialspoint, javatpoint
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?
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:
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
klimi
Look pm
oh right
klimi
Look pm
/warn pm
klimi
PFFFFFFFFFFFFFFFFFFFFFFFFFFF @roxifas look at this