Category : append

#include<bits/stdc++.h> using namespace std; // Linked List Node class Node { public: int data; // Data Node *next; // Pointer Node(int x) { data=x; next=NULL; } }; void append(Node **head, int val) { Node temp; if(head==NULL) { head=new Node(val); temp=head; } else { temp->next=new Node(val); temp=temp->next; } } // This function prints contents of linked ..

Read more

I have this code where I put the directory for each file. #include "TFile.h" #include "TTree.h" #include "TBranch.h" #include "TSystem.h" #include "Riostream.h" #include <iostream> #include <cmath> #include <math.h> #include <cfloat> #include <string> using namespace std; // ————————————————————————————— int PosiDataProcess( TString Data_in, TString Root_ou ); // ————————————————————————————— void ReadFile(){ const int NFile = 3; TString DataIN[NFile], ..

Read more

I am making a movie program for my school project and all the other functions are working properly except for the append, returnMovie function. All I want is for the chosen code to be appended to the end of my list. Node *newNode, *nodePtr; newNode = new Node; string mCode; system("pause"); system("CLS"); cout<<"Return a Movie!"<<endl; ..

Read more

I have to find the LCM of 2 strings given that a multiplication operation exists between a number and a string which dictates that if x is a number and s is a string, then s*x is equal to the string s taken x times. the strings given are "baba" and "ba". Now I am ..

Read more