49,761 Topics
| |
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 … | |
I'm self-teaching myself C with a complete reference book. Unfortunately that means that the author assumes that the reader is familiar with fundamental concepts and doesn't bother commenting the code. Here is an unnecessarily obfuscated code excerpt demonstrating "the use of return statements" along with my attempt to understand what … | |
Below is my crazy program.What i want it to do is that it should take two arrays from the user;the 1st array should be the memo & the 2nd should be answers.These two arrays should be passed to function compare of the type bool.In compare the 2 arrays should be … | |
Hi, I am new to this web site and new to C++ programming. I am still in school and learning everyday. I am not catching on to some things so I was wondering if one can Help me. My problem I am working right now has to do with averaging … | |
Can anyone figure out why I get -9.032654e something from my biWeeklySalary function? [code] #ifndef EMPLOYEE_H #define EMPLOYEE_H #include "HireDate.h" #include <string> using std::string; class Employee { public: Employee(); Employee( const string &, const string &, const string &, const HireDate & ); ~Employee(); void setFirstName( const string & ); … | |
Hi, I just installed the latest version of Visual C++ from Microsoft on a windows XP system. I have used this program before, but this time, on my new install, when I try to compile, I'm getting an error, "c:\documents and settings\user\desktop\r\listdbl.cpp(1) : fatal error C1083: Cannot open include file: … |
The End.