Showing posts with label #include. Show all posts
Showing posts with label #include. Show all posts

Jun 13, 2020

 CODING WINDS  |   We care about the future of future

In the life of computer programmer, there have been always some or the other things or topics which they use them daily and still don’t have adequate knowledge about it. So for clearing this mess up of you, here we are working voluntarily. Do have a watch on us regularly.

C++ Programming :

1.    #include<iostream> | #include<iomanip> | Header files

2.    using namespace std;

3.    Dynamic Memory Allocation | malloc() | calloc() |realloc() | free()

4.   Asymptotic Analysis 

5.  Space Complexity    

6. Time Complexity             

7. Time Complexity Analysis and Calculation  

8. Time Limit Exceeded (TLE)        

9. What is a Data Structure?  

10. OOPs Concepts    

11. Pointers in C and C++ 

12. Errors | Runtime Error | Compile Error | Logical Error   

13. Arrays in C/C++    

14. Passing Arrays in Functions as Arguments

15. Structure in C++

16. Structures and Functions

17. Strings in C++

18. C++20

19. NULL Pointers in C/C++

20. Strings Pre-defined Functions

21. Inheritance

22. Functions

23. Constructors

24. Ceil and Floor Functions

25. abs() , labs() and llabs() Functions

26. Polymorphism in C++

27. Templates in C++

28. Destructors in C++

Python Language :-

        1. Python - Introduction

        2. Data Types in Python

        3.  Strings in Python


        5. format() Advanced

        6. Python List

        7. Python Tuple

         8. Data Type Conversion in Python

         9. List Comprehension

        10. Sets

        11. Dictionary
        
        12. Dictionary Comprehension

        13. Python Operators
           
        14. User Input

        15. Exception handling

            16. Functions

            17. Lambda and Arrays

        18. Modules

            19. File Handling 
            
        20. Map, Filter and Reduce

            21. Metaclasses

Java Language :

In near future we are going to come with many other such articles, follow us on instagram (@coding.winds) for future updates.


Jun 7, 2020

#include iostream | #include iomanip | header files | C++ basics | CODING WINDS

#include<iostream>

Hello people, in this blog we are going to discuss the first line of our C/C++ code.


iostream stand for standard ‘input-output stream’.

This is nothing but a header file which is responsible for input and output stream.

Here, ‘input stream’ means when the task is performed in such a way that bytes travels from device(keyboard) to main memory, and ‘output stream’ means when the task is performed in such a way that bytes travel from main memory to your device.

Here “iostream” is a library which contains some predefined functions for example “cout” , “cin” , etc.

And “ #include ” is a word which makes the use of “iostream” possible in our code.

We just not only have “iostream” as a header file for input/output, but also have many other such as “iomanip” , “fstream”

1.    1. iomanip – This stands for ‘input ouput manipulation’. The methods in this file are used to manipulate the streams. This has predefined functions lihe setw, setprecision, etc

2.    2. fstream – This is defined as file stream. This header file is used to handle the data being read from a file as input or data being written into the file as output.

So this was all bookish knowledge, let’s try our hands on some codes showing the use of this ;

EXAMPLE 1 - Code using #include<iostream>


EXAMPLE 2 - Code using #include<iomanip>

 In this code we are going to see how to print '02' or '002' or '0002' in place of some int variable whose value is '2'.


Here the output of this code will be :
   20
00020
--20   

It also have many other pre-defined libraries(e.g. maths.h , cstdio, stdlib, etc ) in C++ language which we have not discussed here, we will discuss in the upcoming blogs.

Do you get why we write "using namespace std;" in every C++ code? If NO then check out our article on this by clicking here.

If you still have any doubt on this topic then do come to us via email "sophomoretechs@gmail.com" or via instagram "@coding.winds".

We also have something on "Dynamic Memory Allocation in C/C++", check it out by clicking here.