Parth Kamalparthkamal.hashnode.dev·Jun 16, 2024C++ Best Practices : Naming ConventionsThere are various popular naming conventions which are common among various languages, the relevance of these conventions comes from , the legacy which they hold and other factors like readability, purpose, programming cababilities, for example , we ...Discusscpp
暮秋geez.hashnode.dev·Apr 23, 2024Cpp 基础学习第二章 变量和基本类型 复合数据类型 引用 引用也即给对象起别名 int i=0; // ri为i的引用 int &ri=i; 引用注意事项 // 引用必须时对一个对象的引用 int &ri=10; //错误 // 引用必须为同一种类型 double pi=3.14; int &rpi=pi; //错误 // 引用必须要有初始化 int &ra; //错误,为初始化 指针 类型指针 指针本身是一个对象,它的值为一个对象的地址,它可以赋值与拷贝。因为是一个对象因此与引用不同,它可以不初始化...Discuss#cpp #guide
GAURAV YADAVgaurav246blogs.hashnode.dev·Jan 9, 2024151 DSA Problem journeyQ21:Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sum to target. Each number in candidates may only be used once in the combination. Note: The...Discuss·16 likesC++
GAURAV YADAVgaurav246blogs.hashnode.dev·Dec 27, 2023151 DSA Problem journeyQ18:Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. Example : Input: nums = [1,2,3] Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]] Solution: class Solution { public: v...Discuss·13 likesC++
GAURAV YADAVgaurav246blogs.hashnode.dev·Dec 26, 2023151 DSA Problem journeyQ17:Given an array Arr[] of size L and a number N, you need to write a program to find if there exists a pair of elements in the array whose difference is N. Example : Input: L = 6, N = 78 arr[] = {5, 20, 3, 2, 5, 80} Output: 1 Explanation: (2, 80) h...Discuss·17 likesC++
GAURAV YADAVgaurav246blogs.hashnode.dev·Dec 25, 2023151 DSA Problem JourneyQ16:Given an array Arr of N positive integers and another number X. Determine whether or not there exist two elements in Arr whose sum is exactly X. Example : Input: N = 6, X = 16 Arr[] = {1, 4, 45, 6, 10, 8} Output: Yes Explanation: Arr[3] + Arr[4] ...Discuss·14 likesC++
Mayank Aggarwalblogsbymayank.hashnode.dev·Oct 9, 2023A Comprehensive Guide to C++ ProgrammingWelcome to this comprehensive guide on C++ programming! Whether you're a complete beginner or have some programming experience, this guide will take you through the essential concepts and features of C++ step by step. We'll break down the topics into...Discuss·83 likes·8.1K readsC++mayank
Aditya Bhawarcoderab.hashnode.dev·Sep 29, 2023Understanding Basic C++ SyntaxIn C++, a program is a collection of objects that interact by calling each other's methods. Let's break down the fundamental terms: class, object, methods, and instance variables. Objects: Objects in C++ have states (like color, name, breed) and beha...DiscussC++ Tutorialscpp
Aditya Bhawarcoderab.hashnode.dev·Sep 29, 2023Set Up EnvironmentSetting Up Your Local Environment Preparing your environment for C++ programming involves two essential components: Text Editor A reliable text editor is indispensable for coding. Choose one that suits your preferences and platform. Some popular opt...DiscussC++ TutorialsEnvironment variables
Aditya Bhawarcoderab.hashnode.dev·Sep 29, 2023C++ IntroductionC++ is a versatile and powerful programming language that finds wide application across various domains. Originally developed as an extension of the C programming language, C++ encompasses both procedural and object-oriented programming paradigms. It...DiscussC++ Tutorials#cpp #guide