Convert ASCII Value Sentence to Equivalent String in C++

Ayush Gupta
Updated on 22-Jan-2020 07:35:38

831 Views

In this tutorial, we will be discussing a program to convert the ASCII value sentence to its equivalent string.For this we will be provided with a string containing the ASCII codes. Our task is to convert the given string into the equivalent characters and print it back.Example Live Demo#include using namespace std; //converting the ASCII sequence into //character string void convert_ASCII(string str, int len){    int num = 0;    for (int i = 0; i < len; i++) {       //appending the current digit       num = num * 10 + (str[i] - '0');       //checking if number is within range       if (num >= 32 && num

Key Technology Trends in 2017

Samual Sam
Updated on 22-Jan-2020 07:35:21

241 Views

Every year the growth rate of information and technology sector is in the faster phase. 2016 was one of the major accelerators for the growth of the sector. There were few challenges for the companies with existing technologies and upcoming technologies. Beyond the challenges, few technologies remained at the top and will continue to be in the top list in the upcoming year 2017 too. Let’s see what are the technologies which are going to be the boom in the year 2017 and what are the changes which are going to happen in the existing technology.Cloud ComputingFor the past 5+ ... Read More

Install Taskwarrior: Terminal-Based To-Do Application

Sharon Christine
Updated on 22-Jan-2020 07:33:21

266 Views

Taskwarrior is an open-source, cross-platform time and task management tool. It has a command-line interface rather than a graphical user interface. If you spend a lot of time on Linux terminal (as a developer or system administrator) then constantly switching to a web app or another GUI based todo applications may not be a very productive thing to do. In that case, you may want to try a simple command line application instead. This article explains How to install Taskwarrior in Ubuntu.To install Taskwarrior, use the following command –$ sudo apt-get install taskThe sample output should be like this –Building ... Read More

Convert Array to Achieve GCD of 1 in C++

Ayush Gupta
Updated on 22-Jan-2020 07:28:31

271 Views

In this tutorial, we will be discussing a program to convert the array such that the GCD of the array becomes one.For this we will be provided with an array and a positive integer k. Our task is to convert the array elements such that the GCD of elements is 1 while only dividing the array elements by k any number of times until the element is less than k.Example Live Demo#include using namespace std; //calculating the GCD of array int calculate_gcd(int* arr, int n){    int gcd = arr[0];    for (int i = 1; i < n; i++) ... Read More

Install Subversion Server on Ubuntu 16.04

Sharon Christine
Updated on 22-Jan-2020 07:26:06

458 Views

Subversion is a free/open supply variation manipulate process (VCS). That is, Subversion manages records and directories, and the alterations made to them, over time. This makes it possible for you to get better and older models of your information or evaluate the historical past of how your data is modified. On this regard, many people suppose of a variation to manage procedure as a variety of “time computing device.”Before installing subversion, it should require apache. To install apache, use the following commands-$ sudo apt-get update $ sudo apt-get install apache2To get more information about apache installation, read this articleTo install ... Read More

Laptop Updates for January 2016

Samual Sam
Updated on 22-Jan-2020 07:23:11

124 Views

January 2016 has seen a lot of releases in the laptop arena that left the markets not only surprised but also crowded. Some of them have been setting new trends, while others are retaining the sales in the market. All in all, let us have a look at some of the best devices that are being listed in the trending gadgets currently.Asus Zenbook UX305 – Budget Friendly ?Weighing only 1.2Kg, it is easy to carry anywhere you go, and will never feel the burden. Lightweight always is seen along with a lot ofLightweight always is seen along with a lot ... Read More

Convert Ternary Expression to Binary Tree in C++

Ayush Gupta
Updated on 22-Jan-2020 07:23:09

267 Views

In this tutorial, we will be discussing a program to convert ternary expression to a binary tree.For this we will be provided with a ternary expression. Our task is to convert the given expression in the form of a binary tree depending upon the various paths(choices) possible.Example Live Demo#include using namespace std; //node structure of tree struct Node {    char data;    Node *left, *right; }; //creation of new node Node *newNode(char Data){    Node *new_node = new Node;    new_node->data = Data;    new_node->left = new_node->right = NULL;    return new_node; } //converting ternary expression into binary tree Node ... Read More

Install Sublime Text Editor on Ubuntu

Sharon Christine
Updated on 22-Jan-2020 07:21:23

544 Views

Sublime Text is a cross-platform source code editor with a Python application programming interface (API). It natively supports many programming languages and markup languages, and its functionality can be extended by users with plugins, typically community-built and maintained under free-software licenses.This article describes “How to install Sublime Text Editor on Ubuntu”FeaturesEditing files side by side.It supported all Platforms.It provides functionality to find and replace with regular expressions.The Command Palette gives fast access to functionality.“Goto Anything, ” quick navigation to files, symbols, or lines.Python-based plugin API.Compatible with many language grammars from TextMate.Installing SublimeThere are two version’s of Sublime Text is available ... Read More

Convert String into Binary Sequence in C++

Ayush Gupta
Updated on 22-Jan-2020 07:18:22

1K+ Views

In this tutorial, we will be discussing a program to convert string into Binary sequence.For this we will be provided with a string of characters. Our task is to convert each of the character into its binary equivalent and print it out spaced between for different characters.Example Live Demo#include using namespace std; //converting into binary equivalent void convert_binary(string s){    int n = s.length();    for (int i = 0; i 0){          (val % 2)? bin.push_back('1') :          bin.push_back('0');          val /= 2;       }       reverse(bin.begin(), bin.end());       cout

Install Rundeck on Debian 8 Jessie Server

Sharon Christine
Updated on 22-Jan-2020 07:16:25

277 Views

Rundeck allows you to run commands/scripts on a remote computer. It is used to create a job by defining a single step or a workflow that can execute any set of commands, scripts, or tools on any number of local or remote nodes. Jobs can be triggered by the scheduler or on-demand via the web interface or API. This article explains about ‘How to install Rundesk on Debian 8 server’Rundeck is written in java programming language, so it requires you to install java in your machine. To install Java programming on Debian, use the following commands –$ sudo dpkg --add-architecture ... Read More

Advertisements