49,761 Topics

Member Avatar for
Member Avatar for kimw

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 …

Member Avatar for ~s.o.s~
1
99
Member Avatar for codeme

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 …

Member Avatar for ~s.o.s~
1
165
Member Avatar for linq

[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?

Member Avatar for Ancient Dragon
1
65
Member Avatar for bobeagle

[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: …

Member Avatar for GloriousEremite
1
159
Member Avatar for vinay raja

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) …

Member Avatar for WaltP
0
566
Member Avatar for Maxxpower

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 …

Member Avatar for ~s.o.s~
1
135
Member Avatar for saishn

[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; }; …

Member Avatar for saishn
1
107
Member Avatar for jashwant kumar

[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]

Member Avatar for happygeek
1
64
Member Avatar for Natrius

[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 …

Member Avatar for WolfPack
1
165
Member Avatar for linq

[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 …

Member Avatar for ~s.o.s~
1
104
Member Avatar for mom2006

[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] …

Member Avatar for ~s.o.s~
1
475
Member Avatar for GsxRacer

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 …

Member Avatar for andor
1
220
Member Avatar for becki

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! …

Member Avatar for WaltP
1
182
Member Avatar for Daijing

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> …

Member Avatar for ~s.o.s~
1
190
Member Avatar for kimw

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,

Member Avatar for kimw
1
179
Member Avatar for hygy486

[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 …

Member Avatar for Ancient Dragon
2
192
Member Avatar for comp_sci11

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 …

Member Avatar for ~s.o.s~
2
163
Member Avatar for abhikamune

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]

Member Avatar for Grunt
1
81
Member Avatar for Tlhokomelo

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: …

Member Avatar for John A
0
158
Member Avatar for kimw

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 …

Member Avatar for Dave Sinkula
2
300
Member Avatar for blahhh101

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 …

Member Avatar for Salem
1
205
Member Avatar for bh_hensem

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 …

Member Avatar for Bench
1
152
Member Avatar for kararu

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 …

Member Avatar for kararu
0
101
Member Avatar for V1RuZ

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& …

Member Avatar for Dave Sinkula
1
233
Member Avatar for bops

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 …

Member Avatar for Ancient Dragon
1
128
Member Avatar for VinC

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 …

Member Avatar for VinC
1
124
Member Avatar for ze_viru$

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 …

Member Avatar for mostafadotnet
1
122
Member Avatar for Starfighter330

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 …

Member Avatar for VinC
1
8K
Member Avatar for SHWOO

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 & ); …

Member Avatar for Salem
1
270
Member Avatar for analeah

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: …

Member Avatar for Salem
0
302

The End.