coal
except for the constraints
Anonymous
Anonymous
You don't need friend class
Anonymous
Also consider one of these
https://en.cppreference.com/w/cpp/container/forward_list
"It is implemented as a singly-linked list"
https://en.cppreference.com/w/cpp/container/list
"It is usually implemented as a doubly-linked list."
Ssssss
i m doing stack using linked list
Gabriel
What will be the returns from strdup("");
Omkar77
What is the exact use of design and analysis of algorithms using c ?
Anonymous
Can anybody provide me c program for different line coding schemes
Anonymous
Anonymous
Hello
klimi
Why?
klimi
Okay, what's the problem that you need help with?
klimi
Where are you stuck?
klimi
This group is made for answering doubt and questions. I dont think this is great place for asking a tutor.
You have said that it is in some class, then you can learn material from the class or rewatch it, if you dont understand the class, maybe you need to prepare more or tell the lecturer that he's going too fast.
Now you are stuck after classes with some assignments you are not able to solve because of it.
klimi
I mean you can still ask if you dont understand something, but you have to formulate your question clearly
Anonymous
#include <stdio.h>
int main()
{
int ch = 97;
printf("Alphabets from a - z are: \n");
while(ch<=122)
{
printf("%c\n", ch);
ch++;
}
return 0;
}
coal
Rajesh
Anyone help me for Json library setting in c++
Anonymous
Anonymous
Plz tell me a YouTube channel for learning OOPs
Anonymous
how do i correctly compute my carrot position? https://gist.github.com/mgood7123/429fbb2e15c3a1577e1891720f193238
Anonymous
How to retrieve previous result values in C program on calculator application?
Talula
Anonymous
Yea as I was able to do in C++
Anonymous
Really?
But I need same application in C
Anonymous
Ohk...let me explain...
Anonymous
Actually I have made a calculator in C...which operates function like add,sub,mul..
Anonymous
Now I want to show history of operations or calculations made
Talula
Save the information in array and roll over the information, keep start of the index in another variable.
Anonymous
Oki...in cpp push_back is there
Anonymous
In c ...wat to use in place of that?!
\Device\NUL
Talula
In c ...wat to use in place of that?!
In C you have to maintain 1 extra variable, the variable will be the index start.
So you start from 0...9 you place the data in that array point like a[i] = value
When the variable hits 10, you make it 0 again, this will roll over the data...
Your start will always be from that i ... i will be your first position, so if i = 5, then 5...9 and 0..4 etc.
\Device\NUL
I think you must manually allocating memory for array
Anonymous
\Device\NUL
Please don't PM
Ster-Devs
Shubh Joshi
#include <stdio.h>
int main()
{
int i,j,count=1,fact;
while(count<=20)
{
for(i=1;i<200;i++)
{
fact=0;
for(j=1;j<200;j++)
if(i%j==0)
{
fact++;
}
if(fact==2)
{
printf("%d ",i);
count=count+1;
}
}
}
return 0;
}
Shubh Joshi
what is mistake?
Shubh Joshi
i have to print 20 prime numbers
but while loop is not working!
\Device\NUL
\Device\NUL
/report is this spam ?
Vaishnavi
Ok
Vaishnavi
I will learn C & C++ Programming languages
Ssssss
#include<iostream>
#include<string>
#include<stack>
using namespace std;
bool chk_Balanced_parenthesis(string exp)
{
int n=exp.length();
stack <char> s;
for(int i=0;i<n;i++)
{
if(exp[i]=='(' || exp[i]=='[' || exp[i]=='{')
{
s.push(exp[i]);
}
else if(exp[i]==')' || exp[i]==']' || exp[i]=='}')
{
if(s.empty() || s.top()!=exp[i])
{
return false;
}
else
{
s.pop();
}
}
}
return s.empty() ? true : false;
}
int main()
{
string str;
cout<<"enter parenthesis"<<endl;
cin>>str;
if(chk_Balanced_parenthesis(str))
cout<<"balanced"<<endl;
else
cout<<"not balanced"<<endl;
return 0;
}
Ssssss
i m getting not balanced output for every parenthesis.
Bhanu
A market named GRACE grocery supermarket started in the year of 1982. One of the most famous supermarket in their area. The purchasing rate is lower percentage in the initial stage. After 2000 the purchasing rate dramatically increasing day by day. So, the owner wants to make "QUICK BILLING SYSTEM" for their market development. He started building the "QUICK BILLING SYSTEM" application which produces a quick bill consists of Date, Customer id, Item count, Items with Rate, Tax, Net with the small "Thanks message" note.
Bhanu
Please send program
ɛ n h ᴀ n c ɛ ґ 🧟♂️
Talula
Luiz
😅
Talula
Bhanu
Talula
Any one got the answer
You actually think someone is going to work on it for you?
We can help you out, but do you think people here are sitting free to do your homework for you?
Talula
Any one got the answer
If you have a program that you wrote and it is not working properly for some reason, we can help you out.
Amrith
What are few projects that helps to learn C++ that is used commercially? I am not taking about building projects like library management system that is not really practical solution.
coal
Amrith
Example in python using flask, Django and other frameworks, libraries actually helps to learn without getting bored and can be used. I have personally used flask multiple times
Amrith
anything open source
Looking through open-source projects is a great idea however it's really overwhelming. Would like to go in oncreasing order of difficulty.
Amrith
Anyone with some good idea for learning and improving? maybe something have made?
James
Amrith
Rajesh
How to iterate through json value in c++
Anonymous
Anonymous
Anonymous
1>LINK : fatal error LNK1104: cannot open file '%GLAUX.lib'
i have thats problem at openGL
Oky--
How find 100!
Anonymous
Does anyone know any good unicode libraries
Anonymous
like one's suitible for use in text editors and character counting
Anonymous
imma just stick to ASCII and just error out on any non ASCII byte encountered
coal
Anonymous
i know
coal
i know
k just wanted to make it clear