132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wheelz

:confused:I got this assignment to write a program using the switch statement or the functional decomposition, that inputs a letter and outputs thr corresponding international Alpabet. A Alpha B Bravo C Charlie so on and so on Is there anybody that can help me with this program?

Software Development c++
Member Avatar for Infarction
1
283
Member Avatar for Akks_3

I'am new to wingdi. As I tried to include my wingdi.h in my borland C++ 5.5 program, the compiler shoots the following errors: Error E2303 C:\BORLAND\BCC55\INCLUDE\wingdi.h 269: Type name expected Error E2139 C:\BORLAND\BCC55\INCLUDE\wingdi.h 269: Declaration missing ; Error E2303 C:\BORLAND\BCC55\INCLUDE\wingdi.h 270: Type name expected Error E2238 C:\BORLAND\BCC55\INCLUDE\wingdi.h 270: Multiple declaration …

Software Development c++
Member Avatar for Ancient Dragon
1
143
Member Avatar for Flay

I have a question about the map-question JoBe asked at the start of this post. I'm also trying to build a program using <map>, but when i compile i get error that point to code inside the MAP-file. I saw your post here, and i tried your small program, but …

Software Development c++ first-post storage visual-studio
Member Avatar for GloriousEremite
1
281
Member Avatar for sameer.mastek

I'm creating a code which will map two distict strings. I used two ways for that: 1) created a MAP and added raw data to it from file. It is not that efficient.:sad: 2) created an object holding mapped values: eg. class c { string str1,str2; public: /// opearations }; …

Software Development c++
Member Avatar for ~s.o.s~
1
113
Member Avatar for adalita_m

I need to know how to get change in 5c 10c 20c 50c $1 $2 $5 $10 $20 $50 $100 in the smallest possible denomination. In AUS dollars.

Software Development visual-basic
Member Avatar for Yomet
1
90
Member Avatar for rxgmoral

CString Convert to LPCTSTR i write DLL file,it is static dll i want CString type Convert to LPCTSTR but error Code: <<<<<<<<<<<Dll File>>>>>>>>> <<<<<<<A.H>>>>>>> class AFX_NOVTABLE dll { public: __declspec(dllexport) LPCTSTR Fun(); }; <<<<<<<A.Cpp>>>>>> LPCTSTR dll::Fun() { CString Rxg=_T("rxg"); LPCTSTR lpszStr=Rxg.GetBuffer(); return lpszStr; } <<<<<<<<Exe>>>>>>>>> #pragma comment(lib,"dll.lib") #include "A.h" .................. …

Software Development c
Member Avatar for rxgmoral
1
189
Member Avatar for gampalu

I'm doing a dialog application in C++ to calculate something, but I want the result to be with 2 decimal number, how to do this? here is the function: [CODE]void CCalculatorDlg::Oncalc() { // TODO: Add your control notification handler code here UpdateData(TRUE); if ((m_amostras >= 1) && (m_elementos >= 1) …

Software Development c++
Member Avatar for gampalu
1
121
Member Avatar for Maux

I'm new to these forums,and really new to C++,but here is what i need to know.I made a simple calculator in C++ and i was wondering what i need to be able to keep useing it without opening the program everytime... [code]// simple calc // Chris Wilson #include <iostream.h> int …

Software Development c++
Member Avatar for rinoa04
1
128
Member Avatar for gampalu

Hi, can you please indicate me some ebooks about C for beginners, thanks

Software Development c
Member Avatar for gampalu
1
94
Member Avatar for the.future.zone

Hi guys. Hope all is well. There's another concern too. If one is to write a code in which a number would be changed into its binary equivalent, and the binary equivalent would be printed, how does one untie this knot? [CODE] #include<stdio.h> main() { int n; /* the number …

Software Development c
Member Avatar for rinoa04
1
113
Member Avatar for complete

I got a Link error 1181 with fresh code from source safe. It is looking for a dll that is in the windows/system32 directory and cannot find it. [QUOTE] Linker Tools Error LNK1181 cannot open input file "filename" The linker tool could not find "filename" because it does not exist …

Software Development c++ open-source
Member Avatar for dwks
1
183
Member Avatar for FrstratdProg

Hello, everyone. Since I am new to this site, I have both a question to ask regarding the subject tags, and also about a while exercise I am working on. However, before I state the while exercise, I first need to know exactly how one uses the subject tags to …

Software Development c
Member Avatar for Dani
1
100
Member Avatar for kharri5

So I have a question regarding ifstream and reading a file. I have to read in this file, but some of the lines of the file will have missing sections of data. These lines I want to just throw away and then continue reading the file on the next line …

Software Development c++ file-system
Member Avatar for Ancient Dragon
1
264
Member Avatar for govinda.attal

[code] int main() { int var; char string[50]; (var, string); (0); (0, 1, 2); return 0; } [/code] Reply ASAP Thanks in advance Govinda Attal.

Software Development c
Member Avatar for andor
1
205
Member Avatar for insamd

hey guys, i am trying to get my code to count the number of characters in a file. However, the program is continuously going through the characters (so it goes from a-z thousands of times) when i want it to say how many times 'a' occured and 'b' and so …

Software Development c++
Member Avatar for insamd
1
453
Member Avatar for ariyan

How to store a 64 bit value into 2 unsigned long variable (of 32 bit)? Let, [code]: unsigned long a; // variable 'a' will be incremented regularly and 'll be stored in b void fun(void) { unsigned long double b; // It may be a global variable b += a; …

Software Development c
Member Avatar for ariyan
1
132
Member Avatar for Fabii23

I am getting this error: .c:28: warning: assignment makes integer from pointer without a cast -any fixes thank you [code]#include <stdio.h> #include <string.h> void addValue(); void changeId(int data, char *name); int main() { addValue(); changeId(2, "Bill "); getchar(); return 0; } struct Node{ int data; char *name; }node; void addValue() …

Software Development c
Member Avatar for Ancient Dragon
1
92
Member Avatar for himanjim

unsigned int a =0xffff; ~a; printf("%x",a); gives output ffff Complementing function works here. What's use of 0x in 0xffff as unsigned int is of 2 bytes only??? Can anybody suggest???

Software Development c
Member Avatar for Dave Sinkula
1
539
Member Avatar for CurtisBridges

[IMG]file:///C:/Documents%20and%20Settings/Curtis%20Bridges/My%20Documents/My%20Pictures/Dinosaurs/scan.gif[/IMG]

Software Development c++
Member Avatar for Anonymusius
1
109
Member Avatar for CurtisBridges

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

Software Development c++
Member Avatar for CurtisBridges
1
121
Member Avatar for linq

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

Software Development c++ email
Member Avatar for Ancient Dragon
1
109
Member Avatar for Marthy

[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( ) { …

Software Development c++
Member Avatar for Micko
1
107
Member Avatar for royaloba

Hello to everyone, i have a project which base on text file. and i already know how to view the text file using a listbox, what i want to know is on how to delete a specific row in text file.. thanks;)

Software Development file-system visual-basic
Member Avatar for WaltP
1
472
Member Avatar for whitemoss

Hi All, I've write a code for client and server. It works well so far but the server just acknowledge the client of what it received. How to recode this program to make sure that once server acknowledged the client that the data sent by the client have been append …

Software Development c client-server mysql
Member Avatar for whitemoss
1
143
Member Avatar for misiom

Hello, I have a Activex exe, that makes use of multi threading. I have two PCs. A and B. When I run the program on A ( both in debug and compiled exe) it executes fine. I then created a package, installed it on PC B and the exe ran …

Software Development multithreading visual-basic
Member Avatar for Comatose
1
155
Member Avatar for Gigs_

What are something.X files and how to edit them? Thanks!

Software Development c
Member Avatar for ~s.o.s~
1
98
Member Avatar for linq

pop out so many errors, which seemed don't even exist: --------------------Configuration: 12 - Win32 Debug-------------------- Compiling... StdAfx.cpp c:\program files\microsoft visual studio\vc98\include\winuser.h(3) : error C2143: syntax error : missing ';' before '.' c:\program files\microsoft visual studio\vc98\include\winuser.h(3) : error C2501: 'winuser' : missing storage-class or type specifiers c:\program files\microsoft visual studio\vc98\include\winuser.h(3) : …

Software Development c storage visual-studio
Member Avatar for ~s.o.s~
1
320
Member Avatar for anksphenomenon

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 …

Software Development c++
Member Avatar for anksphenomenon
1
703
Member Avatar for nhandal

Hi, I am trying to create a treeview control in a window that includes a toolbar and a status bar, I need to position the treeview immediately below the toolbar. In order to do this I need to calculate the height of the toolbar and used it as the Y …

Software Development c
Member Avatar for nhandal
1
105
Member Avatar for linq

how can I assign this values then I could deside where and when to create and paint.

Software Development c
Member Avatar for Ancient Dragon
1
107
Member Avatar for BombAppetit

erm greetings.. i have a situation here regarding picturebox. there are 2 boxes, 1 is for template image, and one for image to be compared with. i planned to make the user able to draw a box in template image picbox, as a region where the image the other picbox …

Software Development visual-basic
Member Avatar for Comatose
1
159
Member Avatar for viki

hi , I am trying for partial fraction deomposition of polynomials. I have problems in solving the denominator and in applying different conditions for special cases . Is there any stright forward method for this.

Software Development c
Member Avatar for DavidB
1
707
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 …

Software Development c++
Member Avatar for ~s.o.s~
1
102
Member Avatar for dsraju

1)Can you suggest me how to assign a pre-defined 2-dimensional array to a pointer.The intension here is to pass 2-D array to a funtion so that changes in the function will reflect the 2-D array . [code]void main(){ int array[40][40]; fun(array); } void fun(int **array){ ........}[/code] The above code is …

Software Development c c# c++
Member Avatar for ~s.o.s~
1
141
Member Avatar for bilalmuslim

Could you also email it to me at [EMAIL="bilalmuslim@gmai.com"]bilalmuslim@gmai.com[/EMAIL]

Software Development email visual-basic
Member Avatar for bilalmuslim
1
75
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 …

Software Development c++ linked-list
Member Avatar for ~s.o.s~
1
169
Member Avatar for Seba Sama

can someone hlep me with this ? i have the user names. now i need to find the name of the machine they are logged on to. how can i do this? i mean known : username, domain needed : machine name pls help i really need this one.

Software Development visual-basic
Member Avatar for Comatose
1
171
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: …

Software Development c++
Member Avatar for GloriousEremite
1
161
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 …

Software Development c c# c++
Member Avatar for ~s.o.s~
1
140
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; }; …

Software Development c++
Member Avatar for saishn
1
110
Member Avatar for aaholland

I am writing a program for my college class :eek: It has to record a password, but it cant display it on the screen. It is a unix based enviroment. Does this look correct to you guys? [CODE] main() { int i; char buffer[80]; initscr(); printw("Please enter a password => …

Software Development c unix
Member Avatar for ~s.o.s~
1
98
Member Avatar for promiscuoustx

Hi all!!! I have been tearing my hair out trying to figure out how to make the below program calculate and display the total sales tax for each location. If anyone can please look at my code and send me in the right direction, I am hoping I can get …

Software Development c
Member Avatar for WaltP
1
960
Member Avatar for smagee12

In a statement like this [code] void mousebuttonhandler(int button, int state, int x, int y) { int counter; if (button == GLUT_LEFT_BUTTON && state == 0) counter ++; printf("Mouse button event, button=%d, state=%d, x=%d, y=%d\n, ", button, state, x, y); glutPostRedisplay(); } [/code] It appears that im trying to count …

Software Development c
Member Avatar for ~s.o.s~
1
122
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 …

Software Development c++
Member Avatar for WolfPack
1
167
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 …

Software Development c++
Member Avatar for ~s.o.s~
1
112
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] …

Software Development c++ engineering
Member Avatar for ~s.o.s~
1
476
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 …

Software Development c++
Member Avatar for andor
1
224
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! …

Software Development c c# c++
Member Avatar for WaltP
1
190
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> …

Software Development c++
Member Avatar for ~s.o.s~
1
194
Member Avatar for pavanpalaksha

Hi All, I am using system function to decrypt an encrypted file, But it's taking too much of time, as a result of file access i want to know how to store the output of system( ) function into local variables instead of a file. Code goes like this. sprintf(syscommand,"des …

Software Development c
Member Avatar for Ancient Dragon
1
291

The End.