-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD CONTENT] C++ Basic Concepts #72
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add a table of content in the readme
- Add content for type casting, enum, namespace etc
- Change the formatting to code block where necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add comments in file
1_cpp_basics.cpp
- Add instructions to run the example codes.
@harshbhosale01 @VanshPanchal0308 is this PR ready for final review? |
@amanchhaparia Yes, comments have been added to all codes. Please Review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Create a asset folder and place it all within it, instead of using imgur.
- Output Images should be of linux terminal.
Suggested changes, have been made @amanchhaparia |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove a.out
from the pointers folder
@amanchhaparia Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename the subtopics folder with a numbering similar to the topics in 4_cv_basics
1_cpp_basics/arrays/arrays2d.cpp
Outdated
cout<<endl; | ||
} | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line
display (a, 3, 4); | ||
print (a, 3, 4); | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line
// call printid() | ||
obj1.printid(); | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line
//If condn is fullfilled it will get executed | ||
} | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line
cout<<"The number is odd\n"; | ||
} | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line
A<int> d; | ||
d.add(); //Calling the class method | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line
cout<<'\n'; | ||
cout<<"Addition of m and n is :"<<add(m,n); //Calling the template for float data type | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line
cout << "Sum = " << sum<<endl; | ||
|
||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line
<< "z = " << z << endl; | ||
|
||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line
1_cpp_basics/vectors/addtovector.cpp
Outdated
} | ||
|
||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line
* Adding Basics of C++ * Documentation of Basics of C++ * Updated Readme of C++ * code files updated * Updated Readme of C++ with fun,class,templates * Updated Readme of C++ with control_loops * Final changes * Updated Readme of C++ with comments * Final changes * Changed the readme name to README * Updated Readme of C++ with comments * Updated Readme of C++ with changes in output,images * Adding assets folder * Adding Image to readme * Removing redundant files * Final changes * Corrected the formatting * Changed naming format --------- Co-authored-by: VanshPanchal0308 <vansh5chal0308@gmail.com>
So far in Basics of C++, I have added usage of Pointer to a 2D array and Passing a 2D array to a Function as an argument in 1_cpp_basics. Moreover, Basics of OpenCV Mat function and its usage is explained in 2_cpp_basics.
Documentation is yet to be done.
Solves #57
CC: @VanshPanchal0308, @Aryan-karawale