Nomid Íkorni-Sciurus
Maybe I need many
then tell us those many
i
I second this.i also thinking a bit why I need to learn c&c++ in 2022. Never underratting those awesome languages.
Anonymous
Nomid Íkorni-Sciurus
I second this.i also thinking a bit why I need to learn c&c++ in 2022. Never underratting those awesome languages.
(while I do think C++ is ultra-complex to me I also think that Rust even more complex to me lol)
Nomid Íkorni-Sciurus
All of them
so you want to do everything that doesn't help with the choice 😆
Anonymous
so you want to do everything that doesn't help with the choice 😆
Just tell me the most important languages and their usecase would be enough already
Anonymous
Nomid Íkorni-Sciurus
Just tell me the most important languages and their usecase would be enough already
you're still missing the context "most important languages" for WHAT ?
Anonymous
you're still missing the context "most important languages" for WHAT ?
Look there are some fields, Haskell is for example the most important language for math
Anonymous
Typescript for web application
Anonymous
Javascript also for web
Void
#include <stdio.h> int main() { int x,r,i,j; scanf("%d",&x); int n[8]; for(x!=0,i=0;i<7;i++) { r=x%2; n[7-i]=r; x=x/2; if(x==0) {break;} } for(j=6-i;j<0;j--) { n[j]=0; } printf("%d",n); return 0; }
Void
Guys please check my code...why does the second for loop not execute?
Ludovic 'Archivist'
So tell me every language and their usecase
C++ performance, number crunching, low level systems, abstractions go up from web devs/app dev to down in direct hardware manipulation C: systems, number crunching Ruby: light scripting or apps where performance is unimportant Python: same as ruby + datascience Lua: game scriptin, industrial applications scripting... Tcl: scripting, test automation java: portable apps Scala: portable distributed servers Erlang/Elixir: large scale telecom or distributed software Haskell/Ocaml: compilers or interpreters Go: microservices and Plan9 programs Julia, R, Root, F#: data analysis VB.NET, C#: desktop and web apps, games, build systems, mobile apps Kotlin: Mobile apps Javascript: Web dev, MongoDB interaction Prolog, Coq: math proofs Lisp, Scheme...: Scripting, prototype apps Here are a few example, of course it is still possible to drive a nail with pliers, but a good engineers uses a hammer for that
Nomid Íkorni-Sciurus
Nomid Íkorni-Sciurus
I wanted to show him that it is impossible to summarize it to give them what they want
Ludovic 'Archivist'
that's not every language
well, lemme make another language real quick to piss everyone off
Nomid Íkorni-Sciurus
Javascript also for web
still, You're lacking context
Nomid Íkorni-Sciurus
ClojureScript is also fro the web, but is that what you want?
Nomid Íkorni-Sciurus
languages for the WEB ?
Ludovic 'Archivist'
So tell me every language and their usecase
My advice is to learn half a dozen unrelated languages and work from there, you can learn on the go
Nomid Íkorni-Sciurus
I could say you can use ReasonML, OCaml, ClojureScript, TypeScript, JavaScript, Elm, D, C/C++, Assembly, AssemblyScript on the web
Nomid Íkorni-Sciurus
BUT it depends what you want to do
Void
Guys please help me
Void
aaa I just found the problem
Void
I always make some dumb mistakes😓
Ludovic 'Archivist'
Also, I can't remember a single project I worked on where there was a single language used
i
(while I do think C++ is ultra-complex to me I also think that Rust even more complex to me lol)
apart from complexity, I am just thinkin what's the major application of them in 2022. Rust is a nice language though)
Olivia
I am beginner I have a question What is recursions used for??
klimi
I am beginner I have a question What is recursions used for??
Easy implementation of some code although usually its iterative algorithm is better
Void
Can "||" be used consecutively?Like a[i]=='A'||a[i]=='E'||a[i]=='I'……?
Void
Yes
Thanks!
Anonymous
8993885810 my number
klimi
Sir can you check inbox once ??please
Haven't got any new mail?
Dinuka
Struct tk { int amount; int price; Int totalprice; Char name; } void gettotalprice(){ cout<<"price of butter"; cin>>price; cout<<"amout"; cin>>amount; int x; x = amount*price; cout<<x; here is small code. How to assign the int x value to totalprice? After last line?
Ольга
Good afternoon, I'm sorry to bother you, these single-linked lists and their implementation, I do not understand them at all. Here are my attempts to implement the queue in this way, and I don't understand why there are so many errors all the time. I will be grateful for any help https://onlinegdb.com/inxUipFv0
Ольга
Good afternoon, I corrected what was pointed out to me(Thanks for the help and tips) , it really reduced the errors, but it still doesn't work(I just don't know what exactly is wrong with push and рор because I do as indicated in copybook) https://onlinegdb.com/AYAABxgkTG
Faramarz
printf("%x", .... Can someone tell me the function of %x in c. I tried it for different numbers, work like %d till 9 and then it starts to give me some letter! Is a way to print out the to convert decimal numbers to hexadecimal number?
ʙoᴍо͠ʏ
//*------------------------------------------------* //* Contoh 6.1 : program menggunakan * //* array * //*------------------------------------------------* #include <iostream> using namespace std; main() { float suhu[5]; cout << "Masukkan 5 buah data suhu" << endl; for (int i = 0; i < 5; i ++) { cout << i + 1 << " . "; cin >> suhu[i]; } cout << "Data suhu yang anda masukkan : " << endl; for ( i = 0; i < 5; i ++ ) cout << suhu[i] << endl; }
ʙoᴍо͠ʏ
what is wrong?
Faramarz
printf("%x", .... Can someone tell me the function of %x in c. I tried it for different numbers, work like %d till 9 and then it starts to give me some letter! Is a way to print out the to convert decimal numbers to hexadecimal number?
I also have another question; for printing out a character; I wrote %s and then put a & behind my variable, and onlinegdb printed my character without any warning, like this: printf("%s", &ch); But I'm confusing what happened. Is it the right way?
Faramarz
//*------------------------------------------------* //* Contoh 6.1 : program menggunakan * //* array * //*------------------------------------------------* #include <iostream> using namespace std; main() { float suhu[5]; cout << "Masukkan 5 buah data suhu" << endl; for (int i = 0; i < 5; i ++) { cout << i + 1 << " . "; cin >> suhu[i]; } cout << "Data suhu yang anda masukkan : " << endl; for ( i = 0; i < 5; i ++ ) cout << suhu[i] << endl; }
#include <iostream> using namespace std; int main() { float suhu[5]; cout << "Masukkan 5 buah data suhu" << endl; for (int i = 0; i < 5; i ++) { cout << i + 1 << " . "; cin >> suhu[i]; } cout << "Data suhu yang anda masukkan : " << endl; for ( int i = 0; i < 5; i ++ ) cout << suhu[i] << endl; }
Anonymous
Bro can you Google for me currently working in fuelstation
Anonymous
Sir wtf
Edward
You said that with a wrong intonation, sound more polite next time
Void
hii guys why do I get the wrong number of array elements with sizeof?
Anonymous
Sir wtf
This group is for C/C++ discussions only. Asking for help related to searching for mobile apps that teach you programming and worse still asking others to do the search for you counts as off topic. Go to the off topic group for such discussions.
Void
int a[20]; scanf("%d",&a); int i,j,k,len; len=sizeof(a);
Void
I input {2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21} and the len is 80
Void
It should be sizeof(a)/sizeof(a[0])
I don't quite understand?
Anonymous
I don't quite understand?
sizeof returns the size of the array in bytes. On your machine an int is 4 bytes long. So sizeof(a) returns 20×4=80. To get the number of elements, you should divide by sizeof(int) which is the same as sizeof(a[0])
Divyanshi
Hey! I wanted to ask a doubt but I won't be able to tell here since I would have to send a pic of it So can I DM anyone of you if you are free?
Divyanshi
It's urgent....!!
touhou
like use imgur or something.
Divyanshi
Ok I'll try
Anonymous
Hi, i am struggling to choose between unity and unreal engine, i know that is a c++/c group, and this isn't a game development group ... but can i may ask (to someone that has tried unity or unreal or both) which shoud i choose ? shoud i start learning C# and go with Unity or learn c++ and go with UnrealEngine? :d
Anonymous
Thanks for the quick reply, i think i'll go with c++, one last question: learning c++ knowing js & py is that hard?
I need help with test
klimi
I need help with test
what are you testing?
Anupam2.7
what are you testing?
I guess he meant help with "exam"