Anonymous
I have coding exam can you help me?
Aquatica
@admin
Gani
I want to learn c++ and i'm baginner in it how to start can u advise me please
Anonymous
Which one
I don't know. I'm in Eastern Europe and I can't advice you something.
\Device\NUL
Read pinned message
Anonymous
I want to learn c++ and i'm baginner in it how to start can u advise me please
Are you on Cousera platform? It has beginner classes in C and C++
Anonymous
Thanks
👍👍
Anonymous
In Europe u dont use C++? 😊
Actually I don't know what to recommend in English. I'm learning C based on the book of Dennis Ritchie.
John
Is it bad that to think ppl who generally ask "where can I get this ...." won't make it far ? 🤔 Like hey bruh YouTube? Google ? That's all you need to know
John
Ye just google/yt "c/c++ for beginners there's ton of videos there also courseera/any other platform isn't really helpful unless you got money to waste then yea go ahead
Dima
courses are meh
Dima
no professional dev would take any
Anonymous
John
Cousera has financial Aid u just apply.
Like I get if you're learning something unique like parallel programming (mpi/openmp), machine learning then yea other than that no Also machine learning itself is not hard its the mathetics
John
I myself took Andrew ng course on deep learning
Vipin
Java ka notes
John
Which was 100/10 but I wouldnt go there just cause i want printf("hello_wolrd")
mito
no professional dev would take any
sometimes company recommends the employees to take a specific online course don't they ?
klimi
Java ka notes
This is C/C++ group, not a java one
Dima
only if its own leveling up using own methods
John
sometimes company recommends the employees to take a specific online course don't they ?
Those are like core optimization(assuming we are considering fortune 1000)
Vipin
This is C/C++ group, not a java one
Okay , you have like this group , ok n other language
Vipin
Like core_java
Vipin
check thedevs(dot)network
I can't understand
mito
I can't understand
it's a website, replace (dot) with .
Dima
I wonder how come people are trying get into programming and failing even at these steps
Anonymous
I wonder how come people are trying get into programming and failing even at these steps
That's why you got powers to take action with those people haha.
● Igor
i would like to create an assertion based on assert.h, but more like: assert_eq(person.name, "Joseph"); ASSERTION FAILED Expected: person.name == "Joseph" Actual value: person.name = "John"
Anonymous
I myself took Andrew ng course on deep learning
Mr. Johny AI courses from GitHub are great 👍
Anonymous
Mr. Johny AI courses from GitHub are great 👍
He’s a dentist, worker, teacher, soldier too.
pavel
Nothing complicated
● Igor
Nothing complicated
yeah just noticed a macro makes that really easy
Anonymous
Anyone here for help?
Anonymous
This code take inputs for first student correctly but when second alteration starts the program just stop and executes with first student i puts only why ??
Anonymous
Can you show the code?
#include<iostream> #include<iomanip> using namespace std; struct details { int roll_no ; int marks; int age ; char name[30]; char address[50]; }; int main() { details student[3]; for(int i = 0 ; i < 3 ; i++) { gets (student[i].name); gets(student[i].address); cin>> student[i].marks; cin>>student[i].age ; cin>> student[i].roll_no ; } cout<< " showing details "<<endl; cout<< setw(15)<< "NAME"<<setw(20)<<"Address"<<setw(10)<<"Age"<<setw(10)<<"Roll_NO"<<setw(10)<<"MARKS"<<endl; for(int i = 0 ; i < 3 ; i++) { cout<< setw(15)<< student[i].name<<setw(20)<<student[i].address<<setw(10)<<student[i].age <<setw(10)<<student[i].roll_no <<setw(10)<<student[i].marks<<endl; cout<< endl; } }
Pavel
I don't understand and also why does it takes first student inputs correctly ?
Because you use gets and then read from cin and that apparently works, but when you use gets after reading from cout again it doesn't (maybe cin reads and caches it, I don't know).
Pavel
I would follow the advices from the SO page above
Anonymous
I would follow the advices from the SO page above
What advice what would you do here in this situation?
Anonymous
got it just i have to put cin.ignore() after last cin
Anonymous
#include <iostream> using namespace std; class space { public: int id; space(){ id=45; cout << "ID="<<id << endl; }; ~space(){ //Destructor cout<<"From deconstructor:"<<endl; cout << "ID=" <<id << endl; }; }; int main(){ space obj1; return 0; }
John
Deconstructors useful when u have dynamic memory allocation
Ludovic 'Archivist'
I don't understand and also why does it takes first student inputs correctly ?
Gets is no longer considered standard io, therefore any buffer it could have is not synchronized between C and C++. Gets should absolutely never be used, very much like scanf for strings. Those functions are just bad juju like my bri'ish colleague would put it
Ольга
Good day! Sorry to ask. I'm just trying to learn a new topic. Namely, drawing graphs in C. And I can not understand that this requires a special program or C has a library for such purposes? I will be grateful for the answer
Emmanuel S.
And pls I need suggestions for a beginner project in C
Francis
And pls I need suggestions for a beginner project in C
You can go make a matrix project, incorporate all you know about matrices in it.
Emmanuel S.
Okay like finding the transpose?
pavel
Inverse, LLT decomposition
Emmanuel S.
Okay I'll do that this week
Emmanuel S.
👍👍
John
Which incorporates many operations
Kirk
good morning, i have a doubt regarding the following code: #include <iostream> class foo{ private: struct node{...}; node* root = NULL; node* recursiveinsert(node* rootptr, int x){//long function}; public: void insert(int x) { root = recursiveinsert(root, x); } };
Kirk
i made it so in the main function i can call foo.insert(x) without doing foo.root = foo.recursiveinsert(foo.root, x) and it's cleaner
\Device\NUL
Hussein
And pls I need suggestions for a beginner project in C
you can work on simple stuffs like a simple database or simple http server or a 2D video game (if you like doing game dev) basically anything you like, even if it’s seem complicated and advanced. you can start simple then improve your skills as you go until you finally make it