EvoNext
1.79K subscribers
272 photos
16 videos
266 files
485 links
Download Telegram
Forwarded from EvoNext
GREAT OFFER


FOR (12 +1) STUDENTS ONLY‼️

Are you looking for freshman reading materials?

then look at this gift for πŸ’―% free:

- modules

- exams[ mid, final] of different universities

- reference books

- and different materials in voice and videos
.... are some of them.

first semister courses:-

βœ…General physics
βœ…mathematics for natural
βœ…mathematics for social
βœ… logic and critical thinking
βœ…communicative english
βœ… Psychology
βœ… Geography


second semister courses:

βœ…Emerging
βœ…general biology
βœ…applied mathematics
βœ…programming I
βœ… civcs and moral education
βœ… economics
βœ… anthropology
βœ…communicative english II

....much more!


https://t.me/exbost
https://t.me/exbost
share for your friend
https://t.me/exbost
https://t.me/exbost
join learn to code
https://t.me/exbost


TRUST! YOU GONNA LOVE IT!
πŸ‘2
Forwarded from Algo programmers
[Forwarded from biru ka]
#include <iostream>
#include <cmath>
#include <cstdlib>
using namespace std;
int mini(int);
int range(int , int);
int Median_arr(int);
int main() {
system("color 3E");
int n;
cout<<"how many numbers the data contains?\n";
cin>>n;

mini(n);
cout<<endl;
Median_arr(n);
return 0;
}




int mini(int x)
{
int dat[x];
cout<<"enter the data:\n";
for(int a = 0; a< x; a++){

cin>> dat[a];
}
cout<<"\n\nyour quantitative data are: ";
for(int a = 0; a< x ; a++)
{
cout<<dat[a]<<" ";
}
int max,min,sum;
int average;
sum = 0;
min = dat[0];
max = dat[0];
for(int i = 0; i< x ; i++)
{
sum =+ i;
if(min>dat[i]){


min = dat[i];
}
if(max<dat[i])
{
max = dat[i];
}

}



cout <<"\nthe minimum value is: "<< min;
cout<<"\nthe maximum value is: "<<max;
cout<<"\nthe range of the data is: "<< range(min, max);


}

int range(int min, int max)
{
int rang;
rang = max - min;
return rang;
}






int Median_arr(int m)
{

int small ,s[m -1],temp;
cout<<"\nenter the data again to sort:\n ";
for(int j= 0; j< m; j++)
{
cin>>s[j];
}

for(int i = 0 ; i<m; i++)
{
small = i;
for(int j = 0; j <m; j++)
{
if(s[j]>s[small])
{
small = j;
temp = s[small];
s[small] = s[i];
s[i] = temp;
}

}

}
cout<<"\n the sorted array is: ";

for(int j = 0; j<m; j++){

cout<<s[j]<<" ";

}


if(m%2!=0)

cout<<"\nthe median is: "<<s[(m)/2];

else
{
double med;
med =(s[(m/2)-1] + s[(m/2)])/2.0;
cout<<"\nthe median: "<< med<<endl;

}



}
πŸ‘1
Forwarded from Algo programmers
POINTERS AND CLASSES

1. pointers can be initialized like p = 0 or p = null;

2. when accessing class( struct ) components , using arrow is advisable.

3. The number 0 is the only number that can be directly assigned to a pointer variable

WHAT ARE DYNAMIC VARIABLES??

they are variable created at the time of execution.

the two types of dynamic variables are NEW and DELETE

iii. the new operator has two forms

-& to allocate a single variable
new datatype;


-& to allocate an array of variables

new datatype[intExp];


example :


int *p;
char *q;
int x;

p = &x;
// no new memory is allocated
p = new int; //store allocated memory address

 q = new char[16];


OPERATOR DELETE


we use it to avoid memory leak.

[what is memory leak?]

- It is used to destroy dynamic variables so that memory is reallocated again.

single variable;
delete pointerVariable;

an array;

delete [ ] pointerVariable;


delete p;
delete str;


join the group: learn coding

channel: be code reader
πŸ‘1
//program to print a string n times without using loop
#include <iostream>
#include <cstdlib>
using namespace std;
void iter(int);



int main() {
int n = 10;


iter(n);
return 0;
}

void iter(int y)
{
string s = "name";
if(y==0)
{
exit;
}
else
{

cout <<s<<endl;
iter(y-1);
}
}
πŸ‘2
                      #include <iostream>
using namespace std;
int myFun(int);

int main(){
int m;

m = 10;

cout << myFun(m);

return 0;
}

int myFun(int y)
{

if( y == 0 || y == 1 || y == 2 )
{
return 1;
}
else{

return ( y + 1) + myFun( y - 3);
}
}
which if the following can not be a structure memeber?
Anonymous Quiz
16%
another structure
30%
function
14%
array
40%
none
the data elements in the structure is known as what?
Anonymous Quiz
35%
objects
49%
members
14%
data
2%
none of the above
πŸ‘2πŸ‘Ž2
##" Write a definition for a structure type for records consisting of a person’s
wage rate, accrued vacation (which is some whole number of days), and
status (which is either hourly or salaried). Represent the status as one of
the two char values 'H' and 'S'. Call the type EmployeeRecord.
πŸ‘1
C++ problem@:
An election is contested by five candidates. The candidates are numbered 1 to 5, and the voting is done by marking the candidate number on the ballot paper. Write a program to read the ballots and count the votes cast for each candidate using an array variable count. In case, a number read is outside the range 1 to 5, the ballot should be considered as a β€œspoiled ballot”, and the program should also count the number of spoiled ballots.
πŸ‘1
[Forwarded from LEARN TO CODE]
GREAT OFFER


FOR (12 +1) STUDENTS ONLY‼️

Are you looking for freshman reading materials?

then look at this gift for πŸ’―% free:

- modules

- exams[ mid, final] of different universities

- reference books

- and different materials in voice and videos
.... are some of them.

first semister courses:-

βœ…General physics
βœ…mathematics for natural
βœ…mathematics for social
βœ… logic and critical thinking
βœ…communicative english
βœ… Psychology
βœ… Geography


second semister courses:

βœ…Emerging
βœ…general biology
βœ…applied mathematics
βœ…programming I
βœ… civcs and moral education
βœ… economics
βœ… anthropology
βœ…communicative english II

....much more!


https://t.me/exbost
https://t.me/exbost
share for your friend
https://t.me/exbost
https://t.me/exbost
join learn to code
https://t.me/exbost


TRUST! YOU GONNA LOVE IT!
πŸ‘2
EvoNext pinned Β«[Forwarded from LEARN TO CODE] GREAT OFFER FOR (12 +1) STUDENTS ONLY‼️ Are you looking for freshman reading materials? then look at this gift for πŸ’―% free: - modules - exams[ mid, final] of different universities - reference books…»
C++_Templates_The_Complete_Guide_learn_to_code_tleegram_channel.pdf
2.7 MB
what are c++ templates ?πŸ‘ŒπŸ‘Œ





join and share


join the discussion group β€”> < L T C >
πŸ‘1
c++ exam..πŸ”–

credit: @Hazon64