Skip to main content

Who Else Wants To Know The Mystery Behind C++ Output ?

 C++ Output (Print Text)

The cout object, together with the << operator, is used to output values/print text:




for example ;


#include <iostream>

using namespace std;


int main() {

  cout << "Hello World!";

  return 0;

}






Note: You can add as many cout objects as you want. However, note that it does not insert a new line at the end of the output:




#include <iostream>

using namespace std;


int main() {

  cout << "Hello World!";

  cout << "I am learning C++";

  return 0;

}






Comments

Popular posts from this blog

The Secret Of SSH SERVER

  The  OpenSSH server  component, sshd, listens continuously for client connections from any of the client tools What Does SSH Mean? The acronym SSH stands for "Secure Shell." The SSH protocol was designed as a secure alternative to unsecured remote shell protocols. It utilizes a client-server paradigm, in which clients and servers communicate via a secure channel. The SSH protocol has three layers: The transport layer. Ensures secure communication between the server and the client, monitors data encryption/decryption, and protects the integrity of the connection. It also performs data caching and compression. The authentication layer. Conducts the client authentication procedure. The connection layer. Manages communication channels after the authentication. The channel created by SSH uses public-key cryptography to authenticate the client. Once the connection is established, SSH provides an encrypted way to exchange information safely regardless of the underlying network...

How to make FM Radio Circuit with simple circuit

 FM Radio circuit is the simple circuit that can be tuned to the required frequency locally. This article describes the circuit of FM radio circuit. This is a pocket sized radio circuit. FM Radio Circuit Principle: Radio is the reception of electromagnetic wave through air. The main principle of this circuit is to tune the circuit to the nearest frequency using the tank circuit. Data to be transmitted is frequency modulated at the transmission and is demodulated at the receiver side. Modulation is nothing but changing the property of the message signal with the respect to the carrier frequency. Frequency range of FM signal is 87.5MHz to 108.0MHz. The output can be heard using  speaker. Circuit Components: LM 386 IC. BF 494 transistor  T1, T2. Variable resistor. Variable capacitor. Inductor coil. FM Radio Circuit Design: The LM386 IC is used extensively in the FM Radio circuit. This is a low-voltage power amplifier for audio. It has a total of eight pins. It requires a sup...

How to make 12V 1A SMPS Power Supply Circuit Design

Every Electronic device or product requires a reliable power supply unit (PSU)operate it. Almost all devices in our home, like TV, Printer, Music Player,etc. consists of a power supply unit built into it which converts the AC mains voltage to a suitable level of DC voltage for them to operate. The most commonly used type of power supply circuit is the SMPS (Switching Mode Power Supply), you can easily find this type of circuits in your 12V adapter or Mobile/Laptop charger. In this tutorial, we will learn how to build a 12v SMPS circuit that would convert AC mains power to 12V DC with a maximum current rating of 1.25A. This circuit can be used to power small loads or even be adapted into a charger to charge you lead-acid and lithium batteries. If this 12v 15watt power supply circuit doesn’t match your requirement, you can check various power supply circuit with different ratings. Before proceeding with any kind of power supply design, requirement analysis has to be done based on the...