Posts
Showing posts from 2021
How to make heart with name in C++
- Get link
- X
- Other Apps

How to make heart with your name using C++ Solution: #include <stdio.h> #include <string.h> #include <iostream> using namespace std; int main() { char name[50]; int len; int i, j, n; cout<<"Enter your name:"; gets(name); cout<<"Enter value of n : "; cin>>n; len = strlen(name); for(i=n/2; i<=n; i+=2) { for(j=1; j<n-i; j+=2) { cout<<" "; } for(j=1; j<=i; j++) { cout<<"*"; } for(j=1; j<=n-i; j++) ...
How to insert image into table using C# in ASP.net |Part 1
- Get link
- X
- Other Apps
Link list using C++ improved version 2021
- Get link
- X
- Other Apps

Link list using C++ improved version 2021 source code: #include<iostream> using namespace std; class Node { private: int object; Node * nextNode;//address of next node public: int get() { return object; }; void set(int object) { this->object = object; }; Node * getNext() { return nextNode; }; void setNext(Node * nextNode) { this->nextNode = nextNode; }; }; ////////////////////list class////////////////// /* The List class */ class List { public://methods or function //declare the functions List(); //constructor void add (int addObject); //add new object int get(); //get node bool next(); friend void traverse(List list); friend List addNodes(); //add new node //// // position currentNode and lastCurrentNode at first element void start() { ////headNode currentNode lastCurrentNode ...