49,757 Topics

Member Avatar for
Member Avatar for John Linux

In a past prac. exam for an algorithm course I'm doing is the challenge below, and their are no solutions but it seems like a really interesting one to solve. Can someone please help and point me in the right direction, I would like to try this on my own, …

Member Avatar for Sergio_1
0
504
Member Avatar for ppotter3

Hello! My name is Page, and I am still in the process of becoming a more seasoned programmer. I am trying to get a .txt file with first names in it to be sorted after I read the file and input it to a array from a function. Now I …

Member Avatar for jawad.ikram
0
3K
Member Avatar for subash sonar

Hi, I m new in programming language and i m using turbo c . Can it be possible to give the header file windows.h in turbo c ? And if it is possible then please give the detail function and related code of it.I will be remain thankful to you.

Member Avatar for Moschops
0
343
Member Avatar for Vasthor

// 9-2. If we define the name function as a plain, nonconst member // function, what other functions in our system must change and why? based on the question, the answer would be // answer bool compare(const Student_info&, const Student_info&); // because this function uses the member function as it's …

Member Avatar for mike_2000_17
0
269
Member Avatar for wumeed

where is the run-time error in that code? void main(){ .... char *fruites[5] = {"apple", "banana", "orange", "apricot", "pineapple"}; bubble(fruites,5,10); } void bubble(char *a[], int size, int columns) { int j,i; char * x= new char[columns]; for (int z=0; z<columns;z++){ *(x+z) ='0'; } for (i = size - 1; i …

Member Avatar for Ancient Dragon
0
148
Member Avatar for eldiablo1121

Hello, I'm having trouble with one of my coding assignments. I have to compare 2 arrays to see if they're identical. My code compiles fine, but i'm not getting the correct results. Mind you I'm in a beginner's course so I cannot have any advanced coding, I appreciate those suggestions, …

Member Avatar for Moschops
0
197
Member Avatar for Ajay krishna

I want a programe witch automaticaly open a html typed file . Please help me to create a c++ programe # How to open internet explorer using a c++ programe #

Member Avatar for nksridevi
0
519
Member Avatar for soche123

compiler is showing this error but I don't know where I went wrong with my simple structure program. #include <iostream> #include <conio.h> using namespace std; #include<iostream> #include<conio.h> using namespace std; struct distance //structure { int foot; float inches; }; int main() { distance a,b; distance c={3,6.34}; cout<<"Enter feet and inches …

Member Avatar for tinstaafl
0
373
Member Avatar for Abhinisha

i am studying c++... and i have come across the topic constructors.. and in that i am confused between ...basic constructors, copy constructors, dynamic constructors... please explain what are these and also the program in which they can be used...???

Member Avatar for crescendo
-1
191
Member Avatar for mahesh113

Hi All, Could you please clear my doubt why this second catch block is called when exception is thrown only once. #include <iostream> using namespace std; class E { public: const char* error; E(const char* arg): error(arg) {} }; class B { public: B() {}; ~B(){cout<<"~B() called"<<endl;} }; class D: …

Member Avatar for deceptikon
0
347
Member Avatar for subash sonar

Hello, I m new in programming languge and using turbo c . I need your help in completing my projects. I want to display the numbers in column with classification as even, odd, prime and composite numbers. And i want to use int array for 8 numbers. That is, first …

Member Avatar for Lucaci Andrew
0
178
Member Avatar for Abhinisha
Member Avatar for sid78669

I am working on an assignment that does the following three things when a valid expression is provided: 1. Convert to postfix 2. convert to prefix 3. Evaluate expression. I'm using stacks and Binary trees to do this and have been able to do the first two without a hick. …

Member Avatar for Chandana Ravali
0
569
Member Avatar for subash sonar

Hello, I m new to the programming language and i m using turbo c++. If any one kindly give me a link for the meaning and definition and the uses of the different type of header file used in the c++ and there different types of function.

Member Avatar for subash sonar
0
149
Member Avatar for Mak!zZz

Can someone help me with this problem I need program in c++ ,that can sum number DIGIC COMPLEMENT and RADICAL COMPLEMENT IF the input is in DC 1111111111110101 0000000000100010 my output should be 0000000000011000 Please help

Member Avatar for Labdabeta
0
151
Member Avatar for subash sonar

Helo, I m using turbo c++. I want to give menu bar with drop down list. I actually don't know the code for this. So, can u plz. help me to this by giving the source code to this. I shall be thankful to u.

Member Avatar for Ancient Dragon
0
170
Member Avatar for vishalonne

Hi All I have a query regarding constructor and destructor. How accessibility of constructor and destructor affects the scope and the visibility of their class. If someone give some explaination on this I will be thankful. Regards

Member Avatar for David W
0
257
Member Avatar for rakibtg

friends please do me a help, please solve this: All class must have encapsulation, constructor, destructor and in any one solution you must have to use operator overloading 1) Define a class name DVD_DB. Include the following members. `DATA MEMBERS:` Name of DVD – private character array, size 10 Price …

Member Avatar for tinstaafl
0
1K
Member Avatar for RLS0812

For some reason my string is spitting out pure trash, and I have no idea why it's doing it. There are no errors kicked out when debugging. #include <iostream> #include <string> using namespace std; void main(){ string xx = ""; string yy = ""; for( int x = 0; x …

Member Avatar for Lucaci Andrew
0
162
Member Avatar for Abhinisha

#include<iostream.h> class counter { private: int count; public: counter():count(0) { count 1 } }; int main() { counter c1; return 0; } whats wrong in this program i am not able to know?

Member Avatar for Lucaci Andrew
0
122
Member Avatar for mahesh113

Hi all, Please answer this question. Why the output is ACA?? In the line obj = obj+6; the 6 should have been converted to obj type but, why it is converting the obj to int type? Please help... #include <iostream> using namespace std; class Base { public: Base(int m_var=1):i(m_var){ cout<<"A"; …

Member Avatar for Lucaci Andrew
0
153
Member Avatar for Vasthor

this is what the question said. // 9-1. Reimplement the Student_info class so that it calculates the // final grade when reading the student's record, and stores that grade // in the object. Reimplement the grade function to use this // precomputed value. this is what I thought! 1. Reimplement …

Member Avatar for Vasthor
0
226
Member Avatar for tooota

hi every ; i want to know how to start **simulation using c++** , i searched in many websites in order to find some hints about this subject but i found nothing . Best regards

Member Avatar for tooota
0
223
Member Avatar for one-unicorn

hello everyone, I seek help please to find a program c + + that can read images from different types bmp, jpeg, png and put the pixels values in a vector, modified pixels valus, then saved the picture change to a different location, I inform you that I am working …

Member Avatar for mike_2000_17
0
722
Member Avatar for yxBen

Hi, I've been learning about the std::copy function in the <algorithm> header and I'm stuck on this exercise that I gave my self. Let's see the code snippet first: #include <iostream> #include <vector> #include <algorithm> #include <iterator> using namespace std; ostream& operator<<(ostream& os, const int p_val) { os.put( p_val*2); return …

Member Avatar for yxBen
0
486
Member Avatar for islam.fci.3

I want to write a class that do operation on two matrices by 2D vector but i have some problems with the 2D vector , any one can help me?

Member Avatar for tinstaafl
0
268
Member Avatar for subash sonar

Hi, I m using turbo c++. I need ur help by sharing the code for moving to the field on the output screen by pressing arrow button from the keyboard. Please help me out from the problem.

Member Avatar for subash sonar
0
94
Member Avatar for Stefano Mtangoo

As heading shouts, I need to make source code formatter to format PHP Codes. RobertoP have written nice Lexical analyzer that means no need for me to tokenize file. I just do not know how to "juggle" with tokens to produce the formatted code. I appreciate any pointer especially simple …

Member Avatar for Stefano Mtangoo
0
146
Member Avatar for narlapavan
Member Avatar for liliafan

Hi I am attempting to pass a reference to an object from one function to another, is this even possible, if so what is the syntax this is an example of what I want: [code] class SomeClass { public: int a = 100; }; void second_function(SomeClass & ref_to_classobj) { std::cout …

Member Avatar for Lucaci Andrew
0
210

The End.