Anonymous
Zeros
Akshay
/get ide
Mazen
Qt Creator 5.0 Released With Experimental Clangd Backend, Experimental Docker Builds
Safwan
Hello
Anonymous
Anonymous
Which compiler is easy light weight for the c programming
Suka
shriman_deepak
Wbu vs code ?
Kai
shriman_deepak
~Maverick
Anonymous
Tnx for answering bro
バレンタインがいない柴(食用不可)
Kai
Diego
Diego
It is though?
And a very good one at that
Just cuz it's extension based and made in electron doesn't mean its bad
Diego
I've actually heard marvelous things of using VSCode for C/C++
Kai
Kai
not an ide
Diego
No dude, it's a full fledged IDE
Diego
It integrates the entire tool chain with the right extensions
Diego
Then don't make stupid remarks or spread misinformation if you don't wanna be called out lmao
Kai
Kai
Diego
Thought you didn't have time to waste
Kai
grow up kid
~Maverick
😂😂😂 noobs
You should probably go through things by yourself first. Jumping around with half knowledge won't help you.
~Maverick
バレンタインがいない柴(食用不可)
~Maverick
Some people also refereed it as source code editior, but it's not correct to say that VS Code is not an IDE.
バレンタインがいない柴(食用不可)
not an ide
Define IDE... I’m confused ...
~Maverick
We can literally write up code and then run it to see if our program is working or not. Same goes for IDE and many more features are there too.
Diego
IDE Stands for Integrated Development Environment, basically an app that provides features necessary in development all in one place
Diego
https://en.wikipedia.org/wiki/Integrated_development_environment
Anonymous
https://gist.github.com/97a0e2d649386419905ba2aeca20e02b why cant i link to my libraries when using cmake xcode generator?
Sachin
#include <iostream>
using namespace std;
struct node{
int data;
node *link;
};
node *head= NULL;
void Insert(int x)
{
node *temp,*temp1;
temp=new node();
temp->data=x;
temp->link=NULL;
if(head==NULL)
head = temp;
else
{
temp1=head;
while(temp1->link!=NULL);
{
temp1=temp1->link;
}
temp1->link=temp;
}
}
void printy()
{
node *temp=head;
cout<<"list is ";
while(temp!=NULL)
{
cout<<temp->data<<" ";
temp=temp->link;
}
cout<<"\n";
}
int main()
{
cout<<"how many number? ";
int n,x,i;
scanf("%d",&n);
for(int i=0;i<n;i++)
{
cout<<"enter the number ";
scanf("%d",&x);
Insert(x);
}
printy();
}
Sachin
it is not printing list
RANGER
//ds.h
class distance{
private:
int feet;
float inches;
public:
distance();
distance(int ft, float inc);
void inputDistance();
void printDistance();
~distance();
};
//ds.cpp
#include <iostream>
#include "ds.h"
using namespace std;
distance::distance(){
feet=0;
inches=0;
}
distance::distance(int ft, float inc){
feet=ft;
inches=inc;
}
void distance:: inputDistance(){
cout<< "enter the feet ~ ";
cin>>feet;
cout<< "enter the inches ~ ";
cin>>inches;
}
void distance:: printDistance(){
cout<<"Feet ~ "<<feet<<endl<<"Inches ~ "<<inches<<endl;
}
distance::~distance(){
cout<<"distance deleted witha feet "<<feet<<"inches "<<inches<<endl;
}
//main.cpp
#include <iostream>
#include "ds.h"
using namespace std;
int main(){
distance d1;
}
RANGER
i cant creat static object its said "ambiguous distance d1; "
RANGER
create*
RANGER
in replit
Anonymous
i cant creat static object its said "ambiguous distance d1; "
Problem of "using namespace std"
Your class name distance clashes with distance in std namespace.
This can be resolved by either by removing "using namespace std" and replacing cout,cin and endl with std::cout, std::cin and std::endl
or by removing "using namespace std" and instead use "using std::cout; using std::cin; using std::endl"
Or by using ::distance D1 in main function to refer to global instance of distance instead of the one in std namespace
RANGER
Pavel
thanks❤️
i changed the class name😁
A better solution would be to remove using namespace std;. You don't want it in real code because it will create collisions once in a while.
using namespace std is often used in code examples because it makes them shorter, but in real projects people don't use it, and use using namespace for other namespaces only locally (e.g. inside a function)
https://www.geeksforgeeks.org/using-namespace-std-considered-bad-practice/amp/
Anonymous
So here is an idea ...let's create a program using cpp that act like a time table and immediately when the subject is in progress the program should allow the students to write notes...therefore it should display those note when ever the subject is in progress
RANGER
Anonymous
🅸🅼🆁🅰🅽
Hi
バレンタインがいない柴(食用不可)
Kai
ThanuC
Sergeant Stedenko
Sergeant Stedenko
Anonymous
What is difference between structure and union in c
Kai
Pavel
What is difference between structure and union in c
structure contains all variables that you've declared, union contains only one of them at a time.
But it's better to show the code, because the syntax can be missleading sometimes (if you're not familiar with it)
Anonymous
Ok
Anonymous
#include <iostream>
include namespace std;
Int main{ cout<<“hello”;
return 0;}
Anonymous
Struct Demo
{
int arr[3];
float f;
double d;
};
Anonymous
How to draw memory layout for this syntax
Anonymous
Why we cannot initialise members of structure at the time of declaration?
Anonymous
Any pure C projects for my intermediate hands?? I want to try on something
Anonymous
Because (5/9) = 0
Try (5.0/9.0)
Or try (5*(f-32)/9)
Anonymous
/get cbook
Anonymous
/get cppbookguide
Anonymous
By stupidity of the professor, we conclude that j is 22.
Anonymous
the code exhibits undefined behaviour
Anonymous
still undefined
Anonymous
https://en.cppreference.com/w/c/language/eval_order
Anonymous
please read the whole thing
Anonymous
a.c: In function ‘main’:
a.c:4:7: warning: operation on ‘i’ may be undefined [-Wsequence-point]
4 | j=++i + ++i;
| ^~~
Anonymous
one more read
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11751#c63
"It's undefined code. It could change depending on the phase of the moon."
Anonymous
and why exactly is that well defined? what stops 2 consecutive increments (side effects) followed by 2 consecutive reads (value computations)?
result is 14 in this case