Forwarded from Algo programmers
cometitive programming.pdf
1 MB
short way to learn famous programming languages
๐1
Skiena The Algorithm Design Manual.pdf
3.9 MB
BAD HABITS OF CODERS โ๏ธโ
โ๏ธ * Just cramming the code
โ๏ธ * Copy-pasting the sample code from the web
but, do this:-
โ Instead learn "how the algorithm works
โ practice it every day to adapt the syntax rule.
''https://t.me/PROGRAMINGLANGUAGES1
โ๏ธ * Just cramming the code
โ๏ธ * Copy-pasting the sample code from the web
but, do this:-
โ Instead learn "how the algorithm works
โ practice it every day to adapt the syntax rule.
''https://t.me/PROGRAMINGLANGUAGES1
๐1
which one of the following is not data type in c++
Final Results
8%
simple data type
20%
pointers
4%
structuredd data type
32%
classes
36%
none of the above
Basic Elements of C++.pdf
957.6 KB
this pdf can help you know:-
โ> basic c++ program development.
โ-> operator precedence
โ->casting
and much more..
share
โ> basic c++ program development.
โ-> operator precedence
โ->casting
and much more..
share
which statement has correct pointer and class mixture? for : string *str
Final Results
11%
(str*).legnth();
21%
*str.length();
32%
(*str)โ>length();
37%
(*str).length();
0%
none of the above
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
https://t.me/exbost
join learn to code
https://t.me/exbost
TRUST! YOU GONNA LOVE IT!
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 friendhttps://t.me/exbost
https://t.me/exbost
join learn to code
https://t.me/exbost
TRUST! YOU GONNA LOVE IT!
โค1๐1
โ
โ
javaโ
โ
https://t.me/PROGRAMINGLANGUAGES1
practice with java and c++ for exam
https://t.me/PROGRAMINGLANGUAGES1/257
https://t.me/PROGRAMINGLANGUAGES1/257
https://t.me/PROGRAMINGLANGUAGES1
practice with java and c++ for exam
https://t.me/PROGRAMINGLANGUAGES1/257
https://t.me/PROGRAMINGLANGUAGES1/257
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
https://t.me/exbost
join learn to code
https://t.me/exbost
TRUST! YOU GONNA LOVE IT!
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 friendhttps://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 CLASSES1. 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 variablesnew datatype[intExp];
example : int *p;
char *q;
int x;
p = &x;// no new memory is allocatedp = new int; //store allocated memory addressq = 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;join the group: learn coding
delete str;
channel: be code reader
๐1
Forwarded from EvoNext
1. c++ books for beginners
1.1 recommended book for c++
2. python book for beginner
3. java for beginner
*ltc-โ๐ฟ
1.1 recommended book for c++
2. python book for beginner
3. java for beginner
*ltc-โ๐ฟ
//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);
}
}