49,767 Topics

Member Avatar for
Member Avatar for senaddor

Hello: I would like to get a good grasp on single linked list. I am looking for easy to read, detailed article on linked list and how we can add, delete, print, insert nodes and such. Hopefully someone has a good suggestion. Thanks.

Member Avatar for Narue
0
111
Member Avatar for ervin_c2003

here is my code: [code]#include <iostream.h> #include <conio.h> int main() { clrscr(); int A[10][10],m,n,x,y,sum=0; // Ndertojme nje Matrice A cout << "Ju lutemi vendosni numrin e rreshtave dhe te shtyllave per matricen A : \n"; cin>>n>>m; cout << "Vendosni elementet e matrices A duke perdorur hapesine pas cdo elementi dhe …

Member Avatar for ervin_c2003
0
137
Member Avatar for aramakri011

Hi, I have a namespace in my header file and a variable declared in it. When I am trying to assign it to a value in my .cpp file in the format namespaceName::variableName = value , it is throwing a linker error saying it is already defined in .obj file. …

Member Avatar for jencas
0
134
Member Avatar for mmeyer49

I'm trying to make a program to allow me to enter information(mainly books) in to a sort of library. I read that <list> is an easy way to add things and sort them. Also by use a hierarchy I can use my base class and just add on to each …

Member Avatar for jencas
0
153
Member Avatar for bryansworld

I am trying to load in a list of words into my program using a dynamic array and the string class....for some reason, all the tutorials are using char which i have no idea how to adapt to my code.... [code] string *strWord; int Position = 0; string strHolding; //for …

Member Avatar for tux4life
0
129
Member Avatar for anandjaiswal

Hi Everybody, I have an existing and working VC++ project, and i wand to have an activex control for the same. Is there any method that i can convert or rap up my existing code into an activex control? Thnaks Anand

Member Avatar for ithelp
0
37
Member Avatar for DemonGal711

I've never done anything involving GUI before, but wanted to try it. I figured I'd start with something small at first like a simple calculation program before I try to do it with something more complicated. Where should I start and what kind of programs might be needed to do …

Member Avatar for tux4life
0
161
Member Avatar for gretty

Hi I have a algorithm I am trying to create but I cant seem to make it work? This is what i have to do: [QUOTE]Describe an algorithm that takes integer n and digit d as the parameters, and computes the number of occurrences of d in the decimal expansion …

Member Avatar for gretty
0
77
Member Avatar for danishamman

Q.no.1: What is the difference between zero and null values? Q.no.2: If we have double data type then why we use long data types? Q.no.3: How arrays make coding easy in C++? Q.no.4: If we are given 1-dimensional array. How can we code through single dimensional array?

Member Avatar for siddhant3s
0
154
Member Avatar for JLopeman

I cannot get this program to compile. It is bombing at the Outfit::Outfit constructor. I am getting an error stating that it is missing argument list and also illegal left operand type. Can someone point me in the right direction? Cheers - Jason [code=c++] // Outfit class contains Dress and …

Member Avatar for JLopeman
0
125
Member Avatar for queensrose

Hi! I'm supposed to input a large integer value(long int) and output it like this: e.g. input: 123456789 output: 123,456,789 I'm supposed to use recursion for this. I just need suggestions or partial codes - not a full code (I want to learn, not copy). I'm a newbie, and I …

Member Avatar for Duoas
0
174
Member Avatar for jam7cacci

Hi! I was wondering if someone could help me figure out what may be wrong in my installing process or in my compiler... I was installing Visual Studio 6.0 C++ and everything went well until I started compiling and this is what it shows: --------------------Configuration: try - Win32 Debug-------------------- Linking... …

Member Avatar for jam7cacci
0
148
Member Avatar for golden3159

Hey, guys im stuck on this problem. I'm supposed to make a base pyramid in the format: --------* ------*** ----***** Basically, it takes user input and subtracts two on the next line. (e.g. 5, 3, 1) Right now I can only make it go down one by one, I know …

Member Avatar for Lerner
0
96
Member Avatar for MoOou

I have a question I did not understand if anyone of you understood it please explain to me [B]suppose that m and n are integers and m is nonzero. Recall that m is called a divisor of n if n=mt for some integer t; that is, when m divides n, …

Member Avatar for Lerner
0
289
Member Avatar for shasha821110

Hi, all I am the STL beginner and also kind of new in c++. And i got one assignment about write the text utility class with pieces of STL. So the following two function implement totally freak me out. wordlengths() finds and returns the number of words of different lengths …

Member Avatar for orwell84
0
125
Member Avatar for jagsrocknfl

I am currently at Kutztown University enrolled in Computer Science II. I am struggling to finish writing the actual cpp for the program, the implementation and header files are finished. Here are the instructions of the program: Recall that a polynomial is a sum of terms in the form, f(x) …

Member Avatar for Lerner
0
2K
Member Avatar for NirmalRS

Hi! I am final year student doing my project on visual C++. As a part of my project i need to merge number of .avi files in to single .avi file. Could some 1 please advice me on a library that i could use to do that. Thanking you, Nirmal

Member Avatar for NirmalRS
0
102
Member Avatar for daviddoria

I have used boost's progress bar (it outputs ***** from 0 to 100% complete) to track the progress of long loops. It would also be nice to be able to see a counter along with that, like if I run 1000 tests, the *'s will go from 0 to 100%, …

Member Avatar for daviddoria
0
114
Member Avatar for danishamman
Member Avatar for redhotspike

Working on a simulation which closely resembles waiting in a line at a bank. Program runs the simulation based on the user's inputs of # of servers, simulation time, average time between arrival, and transaction time. Here's what I have so far: [code] /*~~~prog3.cpp~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | | Author: …

Member Avatar for redhotspike
0
238
Member Avatar for rEhSi_123

Hello everybody, Ran into a bit of trouble! During compilation I get the following error: [code] fatal error C1083: Cannot open include file: 'login.h': No such file or directory [/code] The login.h does exist in my directory folder. Please let me know where I have gone wrong. I am attaching …

Member Avatar for rEhSi_123
0
151
Member Avatar for FallenGenesis77

I was wondering how I would go about saving data within an executable, I'm not exactly sure If I happen to be wording this right so I will elaborate. For example lets say I had an application that would ftp upload specified files, but I did not want to use …

Member Avatar for MosaicFuneral
0
239
Member Avatar for vsha041

Hi, I am trying to write a program, in which it will ask the user to enter a string of length exactly 9. I have got a dictionary file with me which contains over two hundred thousand words. My job is to output all the possible words between lengths 4 …

Member Avatar for iamthwee
0
114
Member Avatar for prabhu_kar

What is the output of printf("%d") What will happen if I say delete this Difference between "vector" and "array"? How to write a program such that it will delete itself after exectution? Can we generate a C++ source code from the binary file? What are inline functions? Details about profiling? …

Member Avatar for tux4life
1
145
Member Avatar for sommanatt

How do I get the memory usage of my c++ program? Which instruction that i can put in my program and it can tell the size of memory that my program used? Thank you

Member Avatar for myle
0
3K
Member Avatar for lauren316

Here's my code: [code] #include <iostream> #include <string> #include <stack> using namespace std; int main() { string input; cout << "Enter text for palindrome checker. No spaces or punctuation please." << endl; getline(cin, input); stack<char> stackOne; for(char i = 0; i < input.length(); i++) stackOne.push(input[i]); stack<char> stackTwo; for(char j = …

Member Avatar for lauren316
0
155
Member Avatar for ganmo

Hi, I have some problem to implement the constructors from set.h. There was no problem to implement the empty constructor. But as for: Set(int a[], int n); I have some problem. It is supposed to use insert() function from node.cpp. And since the class Set is friend a friend to …

Member Avatar for Lerner
0
133
Member Avatar for avishekgc_22

Ok, so heres the thing. Firstly I use windows operating system and the Borland C++ software. My program has to do the following:- 1> Open a source code, which is in .cpp format. 2> Monitor the flow of execution and print a message for every occurrence of a semicolon [;] …

Member Avatar for tux4life
0
177
Member Avatar for power_computer

I have to do this user defined function return type: double parameters: one (1) type: ifstream (by reference); variable used to read the file description assume the file has already been opened successfully in main() read through the file, average the numbers and return the average to main() to be …

Member Avatar for power_computer
0
116
Member Avatar for edb500

Hi there I have the following problem! Please help! [code=cplusplus]class Base { //private methods void printMyType() { cout << "this is base type" << endl; } //public methods void printAllInfo() { cout << "this An accout" << endl; printMyType(); } }; //end base class class derived : public Base { …

Member Avatar for edb500
0
88

The End.