49,766 Topics
![]() | |
I got stumped can someone please help ? I’m working on this home work assignment and can’t get past this point. Here is how far I’ve got: [CODE] #include <iostream> #include <iomanip> using namespace std; using std::cout; using std::cin; using std::endl; int main() { int numbers,to,Enter,odd,even; int integer,positive,a; cout << … | |
It may not be the problem of my own procedure, because no matter what new projects I create, I got those 15 errors. who can copy his winuser.h file and send to me? I am using VC6.0++ Thanks a lot! my email: <<email snipped>> | |
Hi all, I have attched a code (inline c++) which is working fine if its alone run.But when I make it a package, giving package name; and putting 1; at the end ,,the calling script is not able to recognise new and says "cant locate object method new via name.perhaps … | |
[code] //The following example overloads the + operator to add two complex numbers and returns the result. // operator_overloading.cpp// compile with: /EHsc #include <iostream> using namespace std; class Complex { public: Complex( double r, double i ) : re(r), im(i) {} Complex operator+( Complex &other ); void Display( ) { … | |
Hi guys! I wanted to know how can i go about making a desktop application with C++? My application would need to do a lot of internet intensive processes and reside on the client's system, much like outlook express or evolution mail services.. i need to know what all packages … | |
does anyone have problem with linking to newmat library ? running [CODE]#include "newmat.h" int main() { Matrix A(2,2); }[/CODE] i got linker error: undefined reference i'm using dev c++ and have set the directories to point to the file where i stored all the header and source files .. any … | |
hey guys I have to write this program and I really suck at it.:sad: I need a doubly linked list which is ordered. I was told that I can pull one off the internet and just use it. Ive been looking for one but I cant find it, so I … | |
[cpp code] hIcon = LoadImage(NULL, "menu_two.ico", IMAGE_ICON, 32, 32, LR_LOADFROMFILE); error C2440: '=' : cannot convert from 'void *' to 'struct HICON__ *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast So I think I should make a cast to make this work at C++ compiler,but how? | |
[quote=Narue;139999]You're using a Win32 application project when you want a console application project. Win32 applications expect WinMain instead of main.[/quote] But it still doesn't work for me. I'm just a freshmen. I set up a blank workplace, then win32 application project, then a c++ cource file. Then type as below: … | |
Here is the solution to converting decimal no. to binary using while loop this code is in c++ [code] #include<iostream.h> #include<conio.h> void main() { clrscr(); unsigned long int y,i=0,j=0,r,k[50]; unsigned long a,x,b[50]; cout<<"\nEnter a decimal no. "; cin>>a; y=a; x=a-y; while(y>0) { r=y%2; k[i]=r; i++; y=y/2; } int m=0; while(m<10) … | |
Hello, I'm new to both C++ and these forums. What I'm trying to do is calculate the average of all values contained within an array. Is there a simple command that can do this for you, or does one need to set up some kind of loop? Any help or … | |
[code] #include <iostream> using std::cout; using std::endl; class aClass { public: aClass() { this->aString = new char [1];; this->aString[0] = '\0'; this->length = 0; } ~aClass() { cout << "Destructor" << endl; delete [] this->aString; } aClass(const char *); const aClass& aClass::operator=(aClass &); private: int length; char * aString; }; … | |
[B]jassi here[/B] [B] hello friends i m currently pursuing diploma in advanced computing from pune in india could u pliese help me sending most frequently asked questions in c and c++[/B] | |
[B]Hello![/B] I just recently registred at this forum and I must say it seems to be a nice and friendly place! :) I'm currently studying a beginners course in C++ and I'm a bit stuck right now.. So I thought perhaps it might be a good idea to ask soem … | |
[CODE] #include "stdafx.h" #include <iostream> using namespace std; int a=10; void main() { a=20; cout<<a<<endl; cout<<::a<<endl; } [/CODE] [CODE] output: 20 20[/CODE] I actually want the [INLINECODE]"cout<<::a<<endl"[/INLINECODE] output 10, but failed. Does "::a" mean a is in the gloable scope? What should I have to change the code to make … | |
[LEFT]hi!i am a engineering student.i am now facing a lot of problem to using the borland c++ solfware.the following is my problems:[/LEFT] [LIST=1] [*][LEFT]how to using borland c++ to draw a Mohr's circle to find principle stress?[/LEFT] [*][LEFT]how to solve cubic equation.[/LEFT] [*][LEFT]how to display matrice 3x3 on the screen?[/LEFT] … | |
I am new at this c++ programming thing and i got stocked in this program right here hope someone can help me out id appreciate that // Program Dinner prints out a dinner menu // 1 const SALAD = "Green Salad"; // 2 const MEAT = "Chicken Marsala"; // 3 … | |
hi every one, im working on a program to convert the binary number system to the decimal one. I have the code yet im wondering if it a while loop can be used instead of a for loop. i have major problems trying to work out for loops, stupid me! … | |
Ok i got a problem with trying to read off a file that doesnt exist yet something like this [code] string fname; ifstream InObj; cout << "Enter name of file name: "; cin >> fname; InObj.open(fname); [/code] Then i got this error: N:\VC++\LAB01A\F06Lab1a.cpp(97) : error C2664: 'void __thiscall std::basic_ifstream<char,struct std::char_traits<char> … | |
does anyone know where i can find a library for minimizing a function, given a set of parameters and contraints? (similar to Solver in Excel) i've searched around and found quantlib/solvers1d but am still at a lost of how to use it .. any help is appreciated, regards, | |
[COLOR=#000000]Write the following functions[/COLOR] [COLOR=#000000][B] [/B]draw_circle – draws a circle[/COLOR] [COLOR=#000000] draw_intersect – draws intersecting lines[/COLOR] [COLOR=#000000] draw_base – draws a base line[/COLOR] [COLOR=#000000] draw_triangle – draws triangle using intersecting lines and base line[/COLOR] [COLOR=#000000] draw_rectangle – using baseline and parallel lines[/COLOR] [COLOR=#000000] skip_5_lines – skips five lines between each … | |
can somone help me! where can i find a turbo C compiler that has a BGI! Coz i have a program that have some graphics but i can't run it through my compiler coz it doesn't have a BGI! is there someone who knows where i can find a complete … | |
hello, every one i have one query i want MAC address(hard ware 12 character addres) from my c ,VC++ program. pls tell me how i get this id from programing :?: :rolleyes: send it to[COLOR=red] [/COLOR]<deleted email as per forum rules>[COLOR=red] [/COLOR] | |
Please help, I am leaning C on my own so you are my only Hope :o I am using that "The C programming Language" E-book but it does not teach how to compile in linux - I was too long ago :rolleyes: when those Bell Lab guys wrote it :cry: … | |
i have a string that i want to convert to double. i know atof is a standard library function for that, however, the input argument to atof is (const char*), not string type that i have. does anyone know how i might convert my string num to double ? thanks … | |
hi i really need help on making c++ problems about the long math problems like long addition,subtraction, multiplication and division i've only began learning awhile ago so i just needed some samples or algorythms for this, if not both would be appreciated, if not a link to some guides about … | |
Hello, Could some body help me how could i delete any duplicate or same record of the input ? This is my plan but i am not sure it si working with C++ or not :- My program will be pass "number" values to this function and the function will … | |
I am in need to do a c++ program which will take in argument from command line and return output.I need to use it from my perl environment. Is it better to convert this program to an exe ? Or Is it possible to make an exe out of the … | |
Hi out there. I can't get the constructors in my header files to work. Here's a copy of my header file code: [code] #ifndef GUARD_PHEADER_H #define GUARD_PHEADER_H //The header file for the Person.cpp. //person_header.h #include <iostream> #include <string> //Person class declaration class Person { public: std::istream& read_surname(std::istream&); std::istream& read_name(std::istream&); std::istream& … | |
Hi, I want to create an application like character map, for only specific characters, and extra features. There is quite a large problem in doing this though. I want to have controls whos captions have these special characters. However when I am creating this using my IDE, Pasting these characters … |
The End.