51,593 Topics
![]() | |
I am looking for some advice on where to start with building my guy. I will mostly be coding on my mac, but have the option of windows or linux. I am going to be building an application that will be based around a database for my business and want … ![]() | |
Hello. I am wondering how EOFs are indicated to either the cstdio functions or the fstream functions. Mainly I am wondering how it differentiates it from data. For example, if EOF is a 2-byte code wouldn't this break the system by inserting a 'false' eof flag: for (int i=0; i<256; … | |
Kindly take look at this code, it is giving me an error in the main function. #include<iostream.h> #include<fstream.h> #include<cstdlib> #include<cstring> ofstream re; class studentinfo { private: char* VUID; char* campusID; char* Studentname; char* Fathername; public: void Storefile(char*, char*, char*, char*); char* Display() ; studentinfo(char*, char*, char*, char*); ~studentinfo(); }; studentinfo::studentinfo(char* … | |
'Ello. I'm having a concern about the ability for several objects that require access to one another. Visual studio intellisence shows no errors, but the compiler does. Mostly that classes become unrecognized. I can get different errors by shuffling around the classes within the sapa namespace. Sorry, its a bit … | |
Starting output at console: Enter : Starting output at console: Enter : 1 for >>>> Ay=75,By=110,Cy=170 2 for >>>> Ay=100,By=150,Cy=250 3 for >>>> Ay=150,By=250,Cy=350 2 for >>>> Ay=100,By=150,Cy=250 3 for >>>> Ay=150,By=250,Cy=350 | |
in command line argument i am writing argument for the main function as follows int main(int argc,char*argv[]) here argc and argv is cleared to me but why we are using char* with argv... means why we are using * ??? | |
Hi everyone.. I have to ask this question even though it will look a little silly to some of you. If I have a plugin for some open source software then how to do Install it. I'm using FLTK and have found a pluging for it. Just the sourcecode and … | |
write an program which gets the data from posters and calculate the whole area.in these picture. http://www.upload7.ir/images/03547135115551138326.jpg there is a 7 posters in picture i wish understand these:| | |
Currently I have something like this: class FileWritter{ ofstream file; public: FileWritter(string filename,A_Class a){//A_Class is class which has defined the >> and the << operators file.open(filename.c_str()); file<<a; } ~FileWritter(){ file.close(); } }; what I want is to have something like this: template <class AbstractClass> class FileWritter{ ofstream file; public: FileWritter(string … | |
A loop continuouly runs 3*Y/8. In intel processor, how to optimize the speed of this computation: 3*Y/8 | |
Hi All Can somebody clear my query that why the second operand of '+' operator is called first in the code below? When operator '+' takes left to right. #include <iostream> using namespace std; class A { int i; public: A(int i=-1){cout<<"A const i = "<< i <<endl;} int operator+(const … | |
The plan is to build an app based around a database and have it run on a server. People will then use, mac, pc, linux, or mobile devices to access the server app, mainly to pull information from the database or add to the database. I have never done any … | |
I had connected mouse successfully using 33h interrupt in my program in turbo c++ 3.0. My problem is when i press right button it takes many input and automatically jumps select other menu options by just hovering cursur over them. I want to knw how clear this buffer after every … | |
hi guys. how we can find area of posters in the pan? i need a answer!! | |
I have to write a program that takes a two dimensional array of dice and sees the combinations the dice makes within 360000 rolls. I have my code to work, but what I'm completely stumped with is printing it in a matrix. I know you have to embedd 2 for … | |
Hi. Parden me if I do not express my question very well. A project I am considering would benefit greatly from the ability to to compile a dll at runtime, on machines which may or may not have appropriate tools installed (so I may be looking at using third party … | |
http://upload7.ir/images/61610816348365199387.jpg | |
ARP ARP LANGUAGE Introduction ARP ARP Talk is a fun variation of the English language. The conversion to ARP ARP is carried out as follows: 1. When a vowel or vowel sound (a, e, i, o, u, or y as in why) is found, arp is placed in front of … | |
char* f(){ char* result;//I have to return 'result' at the end of this function, where result should be containing i (i.e. int i=97) in it. int i = 97; //Do whatever you can return result; } | |
Can any body help me in inserting mouse pointer in my program. I m using turbo c++ and i m a novic in this field. | |
![]() | Design a function that computes integers whose factorial is less than number read from input data? |
can someone please tell me how much time will take to learn java , i have already learnt c++ and looking forward to learning java ![]() | |
I would like to learn the Win32 or the Windows API. But I have no clue. I just need some guidance to go ahead. Thanks ![]() | |
i wrote but the Read function is just for a single character any function for int numbers? int i = Console::Read(); Console::WriteLine(i); | |
design a digitally controlled washing machine that sets the wash temperature to 80degree celcius for cotten clothes 40degree celcius per quick wash and 1000 revolution for rinse and dry only using Microsoft visual STUDIO 2010 c++ programming //please this is all i could do, help improve in respect to the … | |
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, … | |
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 … | |
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. | |
// 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 … | |
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 … | |
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, … | |
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 # | |
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 … | |
This is strange, I looked it up and by default C# should pass parameters by value but I've always had them get passed by pointer. ie [ICODE] public class foo { public foo() { derp = 123456; } public int derp; } public static void dontcare(foo z) { z.derp = … | |
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...??? | |
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: … | |
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 … | |
| |
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. … | |
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. | |
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 | |
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. | |
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 | |
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 … | |
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 … | |
#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? | |
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"; … | |
In java this is how a DerivedClass can implement it's BaseClass's constructor. public DerivedClass extends BaseClass { //some properties public DerivedClass(param) { super(param); } } I have learnt C-Sharp's *base()* does the similar thing, but when I replace *super(param)* with *base(param)*, it does not gives what I'm expecting. How can … | |
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 … |
The End.