Peace
what are the uses of pointer to derived class concept ?
Eyvaz
u mean how to use it?
Peace
but when we make pointer of Class A which points to object of Class B, that pointer cannot use any data member of class B. it can use member of Class A only as this pointer belongs to class A. so what's the use to pointer to derived class ?
Anonymous
hi
I program with c in linux distribution ubuntu
I cried file type dat
but when I compile program I can't see file
\Device\NUL
Où va le monde
MTProto is telegram transfer protocol, anyone knows, can i use it in my personal app?
Ludovic 'Archivist'
Ludovic 'Archivist'
Type erasure also mixes well with concepts
Nana
Hello guys I need your help
Nana
pls help me with this question. I'm a beginner in c++
Nana
6. Vowels and Consonants
Write a function that accepts a pointer to a C-string as its argument. The function
should count the number of vowels appearing in the string and return that number.
Write another function that accepts a pointer to a C-string as its argument. This func tion should count the number of consonants appearing in the string and return that
number.
Demonstrate these two functions in a program that performs the following steps:
1. The user is asked to enter a string.
2. The program displays the following menu:
A) Count the number of vowels in the string
B) Count the number of consonants in the string
C) Count both the vowels and consonants in the string
D) Enter another string
E) Exit the program
3. The program performs the operation selected by the user and repeats until the user
selects E to exit the program.
Nana
Okay
Nana
\Device\NUL
Nana
pls what is VLA?
\Device\NUL
And, if you had many branching, use switch case
Nana
Okay
Nana
I've problem with d option in the menu
Nana
pls run it and help me
\Device\NUL
Nana
yes
\Device\NUL
Nana
first enter a string and then during the second iteration, choose the option d in the menu
Nana
it will appear a enter another sentence twice
Nana
pls how can I fix that?
Nana
yes
Nana
it's suppose to be enter a sentence
Nana
when the option is chosen it repeats twice
Felix
Excuse me, how do we make a align center in C program?
For example i have | | bracket that can fit 4 character, and when i fill 2 character i want it to align center, how can i do that?
\Device\NUL
case 'D':
strinput == 0;
\Device\NUL
Felix
\Device\NUL
yes
printf("|%s|", str) ?
Felix
Felix
i found a way to do it with 2 for loop but im wondering if i can do it with only a single for loop
\Device\NUL
I don't get the point tbh
Nana
\Device\NUL
if user has went to the D input
skip string input
Nana
\Device\NUL
pls can you illustrate for me?
strinput = 0;
do {
if (strinput == 0)
input_str;
// bla-bla-bla
if (option == 'D')
strinput = 1;
continue;
}
}
Nana
Okay
Nana
Thank you bro
Robby
Hello just joined!
Anonymous
Are there some material or paper for coroutine,
Anonymous
if else condition checks how many conditions???
Anonymous
Ravi
2 conditions in one if,
Ravi
the Anupam
Hello I'm new in this fu**ing world
klimi
Anonymous
Hello guys
Good evening
I am electrical student semester three I have c++ and it is difficult to me
I need tutors or expert to help me in excersise or assignment or project and he or she will be paid if he or she needs money for that
Thanks
Anonymous
Pleas any one interested
Let me know
Or come private
I really need some one who can know c++
Milwaukee
[19/11, 10:07 am] Kevin: Write a program to create a file called CallDataRecord and store the following information
in the file “CellNumber, Date, StartTime, EndTime”. The program must display the
information from the file on the console as following
0899011200, 31 October 2021, 08:00, 11:00
I have written a code but it has an error at the end but its running
Milwaukee
#include<iostream>
#include<string>
#include<fstream>
using namespace std;
ifstream fin;
ofstream fout;
int main()
{
fout.open("CallDataRecord.txt", ios::app);
fout<<"0899011200, 31 October 2021,0800,1100";
fout.close();
cout<<"Message from the file is:\n";
fin.open("CallDataRecord.txt", ios::in);
string msg;
getline(fin, msg);
fin>>msg;
cout<<msg<<endl;
system("PAUSE");
return 0;}
Captain
Lucas
Milwaukee
Warning\Error
sh:1:PAUSE:not found
\Device\NUL
\Device\NUL
I think PAUSE is specific to WIndows only
Milwaukee
OK lm running it on a mobile compiler
\Device\NUL
and Android is Linux
Sshadow
Hi guys, is this the right group for asking questions related to c++? I mean is this group active?
Madhavi
Hello
Madhavi
I have a question
Madhavi
I have function assume createrecord()
Madhavi
It there a way I can pass 2 different parameters with two different data structure
\Device\NUL
Madhavi