199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rathmal

please help me to write a program in c++ to find sum of first and last digits of any number

Member Avatar for SpS
0
130
Member Avatar for AS_82

I/P : Input array[] = {4.0, 6.5, 34.0, 2.0, 56.0, 73.0, 5.0, -5.0, 22.0, 45.0, 52.0, 42.0, 421.0} O/P: Sorted array[] = {-5.0, 2.0, 4.0, 5.0, 6.5, 22.0, 34.0, 42.0, 45.0, 52.0, 56.0, 73.0, 421.0} Sorted array using bubble sort. public class BubbleSort { double[] getBubbleSort(double[] values) { [COLOR="Red"]return new …

Member Avatar for javaAddict
0
93
Member Avatar for icewizard

I have a very simple question. I am trying to link the following 2 files, but I get an error saying "multiple definition of function()" In a.cpp int function(){ return 1; } In main.cpp #include "a.cpp" int main(){ return 0; } I know I can fix the error by making …

Member Avatar for John A
0
262
Member Avatar for RexxX

I'm getting a segmentation fault when I try to run my program. It's probably because I'm not referencing my pointer to a string right, or dereferencing whatever it's called. This is basically what my code looks like. [code] #include <stdio.h> FILE *myFP; char filename[20]; char *pstr = finlename; void func(char …

Member Avatar for Aia
0
112
Member Avatar for Rasjoe

Hello friends...I was given a task that ,taken a image u have to convert it into pixel values... And I have to find the difference in pixel values in various parts of the image..ie when u take ur own photo u have to pixel values of eye portion and other …

Member Avatar for Rasjoe
0
98
Member Avatar for Koldsoul

I am brand new to java this semester. So far it has been going well, but having trouble figuring out how to do this one part of a program I am working on. This program requires the user to input a playing card, abbreviated, such as 9D for 9 of …

Member Avatar for Koldsoul
0
85
Member Avatar for afro007

I am working on a school project, I need to do a keystroke to simulate filling car with petrol. There is two program I have done below but none of them work. I use Borland developer studio 2006 (Delphi Pascal) and does anyone know how to clear the screen in …

Member Avatar for Duoas
0
144
Member Avatar for Mquin

How do I change the ASCII value of the character? It seems to give me the values but I don't know how to change them. I am not sure how to do it right. [ICODE] public void toUpperCase(){ // if ((ch >='a')&&(ch <='z')) // return(char)(ch-32); // Explicit // return ch; …

Member Avatar for joshSCH
0
121
Member Avatar for isomillennium

Hey my name's izzy and i have been around the web designing game for a while and i was trying to figure out how we can get the explode function to support javascript in a web page when splitting .. here's the code : <? function snp($str_to_look_for, $str_to_stop_at, $html) { …

Member Avatar for nav33n
0
146
Member Avatar for mrjoli021

I am getting the following error: I am using vs2008 and e-mail.h is included in the project Error 1 error LNK2028: unresolved token (0A00004A) "public: void __thiscall MyEmail::Createfile(void)" (?Createfile@MyEmail@@$$FQAEXXZ) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ) test.obj e-mail Error 2 error LNK2019: unresolved external symbol "public: void __thiscall MyEmail::Createfile(void)" (?Createfile@MyEmail@@$$FQAEXXZ) …

Member Avatar for John A
0
98
Member Avatar for KONE BREAD

Hello, I am trying to run this program, but I have no idea where the problem is. I get these 3 errors in my error list when I try to run it: Error 2 The best overloaded method match for 'Project_1.Client.Client(Project_1.SharedClick, Project_1.SharedMsg, System.Windows.Forms.TextBox, System.Windows.Forms.Button, System.Windows.Forms.Button)' has some invalid arguments Error …

0
69
Member Avatar for prs55

I have a problem on getting the nth list item( function: DataType get(int n) const ),though it may seem easy. here is my code.. [code=cplusplus] #ifndef ORDERED_LIST #define ORDERED_LIST #include <fstream> using namespace std; template <class DataType> class OrderedList { public: OrderedList(); ~OrderedList(); void clear(); DataType get(int n) const; void …

Member Avatar for prs55
0
105
Member Avatar for Just a beginner

I am writing a calculator program in C. I need a function definition for a function called Subtract() that will allow me to calculate the difference of several numbers entered by the user also need one for division

Member Avatar for John A
0
92
Member Avatar for foundsheep

I have a drop down that will be auto populated when the user selects a previous drop down. The one in question is referencing a particular piece of equipment attached to the company that was selected. The database is set up with a manufacturer table, equipment table, and customer equipment …

Member Avatar for SheSaidImaPregy
0
144
Member Avatar for saketbash

Our teacher wants us to take an array and output it via these instructions. The array conists of grades (ie 92 72 83...etc): "Write the output to a text file. In it, display the original grade array, 10 per line, in fields of 5." My question is, what does that …

Member Avatar for saketbash
0
170
Member Avatar for TobbeK

Need some help with a nested loop. This one (my example code below) prints out a correct 3 column HTML table with the recordset with proper opening and closing HTML tags AS LONG as the GRUOP BY clause is set by the topcategory Db table. I think I may need …

Member Avatar for TobbeK
0
1K
Member Avatar for ObscureOne

[code=c] #include <stdio.h> __declspec(dllexport) void DisplayHelloFromDLL() { printf ("Hello from DLL !\n"); } [/code] This above code has been written using VS 2005. I opened this project as a win32 application and chose the option to build a dll and not a exe. The name of the project is DLLProctTest …

Member Avatar for Ancient Dragon
0
5K
Member Avatar for sonygamer

I'm trying to use the switch function to compute the resistance of resistors. Basically, a person types in 3 letters, each representing a color; each color has a different value. Then v throws back the resistance by going through the equation. This is what I have so far. [code=c++] #include …

Member Avatar for Narue
0
1K
Member Avatar for werks

Hello experts could someone tell me how can i combine multiple records into one value. Sample in MS Access: (Lastname & "" & "," & " " & Firstname) AS Name How can i do this in MySQL?..tnx in advance

Member Avatar for nav33n
0
96
Member Avatar for kabbo

Hi, i am trying to use a library. included the header in my code set the path (-L) and the library (-l), but i get the following error and a bunch of undefined symbols. Does anyone have an idea? What am i doing wrong? Thans in advance. PB:~/Downloads/lp_solve_5.5.0.11_c max$ gcc …

Member Avatar for kabbo
0
303
Member Avatar for saketbash

Hi guys. This is my first post and I hope I can get some help. Thanks so much in advance for this. I have what I'm sure is simple but I'm missing something here. I have a file being read from (input.txt) which has no more than 50 grades w/ …

Member Avatar for saketbash
0
88
Member Avatar for Jennifer84

This code(Files) does return the whole directorypath like this: C:\Documents and Settings\User\Desktop\Text.txt What should be changed if you only want to return the fileName wich is: "Text" Code: System::string ^ Files10 = "c:\\"; array<System::string ^> ^ Files = System::IO:: Directory::GetFiles(Files10,"*.txt");

Member Avatar for Jennifer84
0
145
Member Avatar for justapimp

I have this webservice that connects to my database via a table adapter and I am trying to read the column value based on the controls passed by an AJAX script that I wrote. I tried to use a hash table to replicate the actual database column. What I like …

Member Avatar for justapimp
0
93
Member Avatar for wingwarp

ok ihave looked through google and cprograming.com and cant find much to do with opning documents like... i am trying to do... run the c++ program select a number and open an html document ... ... yes i know basic html... thanks... --wingwarp--

Member Avatar for VernonDozier
0
311
Member Avatar for ad_ms

gud evening.. seems there are no replies regarding my project based on adpative detection of deisgn flaws , anyways i am persuading on,, i would like to have few datasets if possible. please try to post in,..the subject regarding my dataset are shapes eg:circle, square..etc.... incoporating machine learining technique with …

Member Avatar for ad_ms
0
86
Member Avatar for ad_ms

hi people, I havent received any replies for the question i had putforth regarding the mini project adaptive detection of design flaws,and im glad to inform you all that i have proceeded with the project effectively and i have choosen "C4.5" algorithm (decision tree).i am also incorporating the machine learning …

Member Avatar for ad_ms
0
109
Member Avatar for csnoob

i was asked to create my own boot disk that would just display my name in the screen. I was told that i am not allowed to use the files from microsoft and that i should create all the files. I've read some articles on the net and most of …

Member Avatar for sanzilla
0
94
Member Avatar for srikanth882003

hii can any one help me in setting path for jdk1.5 plssssss help me my jdk1.5 is loacated as follows C:\Program Files\Java\jdk1.5.0_05\bin

Member Avatar for masijade
0
107
Member Avatar for swetha bandaru

what is meant by generic linked list. how to insert and delete the elements in the linked list which is generic

Member Avatar for Narue
0
428
Member Avatar for dagray

The code will read in a file and build a table with the ctn_no and seq_no which works fine. I want to change it so that when I find a break mark I build a table of ctn_no + 1 and seq_no + 1 rather than a table of ctn_no …

Member Avatar for woooee
0
82
Member Avatar for yaz123

-------------------------------------------------------------------------------- hi guys I'm a final year student, in engineering. i've just signed up to this forum. Hope all is good. i'd appreciate any help. I have a piece of matlab code which used to work like last year. but i am having some trouble with it now. Before i …

Member Avatar for pintu72
0
201
Member Avatar for mistercow.pnoy

first off, this is my very first post, so sorry if i sound a little noobish. also, i've only been learning C++ since september, and we're going pretty slow. so yesterday I got an assignment, using [b]only[/b] [i]for loops[/i], and [i]if statements[/i], enter a number, find it's factors, and tell …

Member Avatar for Nemoticchigga
0
121
Member Avatar for gyanu

//I tried to fix the errors but I failed. //pls do it for me....... [code=c] #include<stdio.h> #include<conio.h> void main() { int a; void scanchar(char**); int scans(char**,char*,int,int); int scani(char**,int,int,int,int,int,int); int myscanf(char *); int smyscanf(char*,char*); clrscr(); printf("enter"); myscanf("%d",&a); printf("%d",a); getch(); } static void scanchar(char **str) { extern int getchar(); if (str) { …

Member Avatar for Narue
0
145
Member Avatar for sbv

hi all i want to know following...... as usual we do... For( i =0; i++ ; i<4) but i want for( i = "a"; ????? ;i<"d") plz help.

Member Avatar for SheSaidImaPregy
0
65
Member Avatar for fpaquin

Hi to all, I am using Java version 1.3 with IBM Websphere and DB2. I would like to create a page that you can save and retrieve an image from DB2 and post it on a web page using a stored procedure. My questions are: 1. How should I create …

Member Avatar for fpaquin
0
122
Member Avatar for gmerch80

[code=c++] #include<iostream> #include <string> using std::cout; using std::cin; using std::endl; using std::string; using namespace std; class Invoice { public: void setPrice(int price); int getPrice(); void setQuantity(int quantity); int getQuantity(); void setPartnumber(string); string getPartnumber(); void setDescription(string); string getDescription(); int getInvoiceAmount(int Quantity, int Price); private: int Quantity; int Price; string Partnumber; string …

Member Avatar for Ancient Dragon
0
101
Member Avatar for ajithraj

[B]haiii i want to generate dynamic buttons(that is , the number of buttons depend on the number in database).... and want to get the value of the button when clicked...how to set the values... thanksss[/B]

Member Avatar for ajithraj
0
60
Member Avatar for ashercharles

hai guys.................. hey anybody got i dea abt how to restrict the user from viewing the JS source .......... pls help

Member Avatar for ShawnCplus
0
130
Member Avatar for gsivaram
Member Avatar for Adventa

Quick one here really, Basically there is one page with say, All Articles, When a user clicks on an article I want to go to a new page that displays the article clicked on. All I need to know is what method to use here. Should I use the link …

Member Avatar for Adventa
0
85
Member Avatar for StepIre

Hey guys, im trying to extract the top 10 links from a yahoo search results page. i can get all the links using the code below.. but that could be 70 links. Any idea how i could get just those top 10 ranked ones? and not the adverts etc. ie …

Member Avatar for StepIre
0
199
Member Avatar for web_lock

I have got a page which has a link pertaining to a close window function. The window.close() function works perfectly fine in the case of IE based browsers , however it fails to respond on a Mozilla browser(working on tab panes) . I have tried to make use of self.close(), …

Member Avatar for web_lock
0
111
Member Avatar for vsc33

Hello, I have a vb.net application that runs on a server. There are five client PC's that are connected to the server and all the data is saved on the server from my vb.net application. To add a record, two sql runs under Commit transaction. One runs an insert statement …

Member Avatar for Ramy Mahrous
0
169
Member Avatar for nuch1311

/** Program name: MonthlySales.java Author: Dominick Saccoccio Date: 2-19-08 Description: The program provides an end-of-the-year sales analysis for a company. The revenue contains total sales for each month, where revenue ={ 16692, 2504, 2463, 1857, 2369, 2684, 3374, 2630, 2531, 1928, 2692, 2578} presents the sales of January to December. …

Member Avatar for DangerDev
0
126
Member Avatar for eddy556

Hey, I'm having a problem with an if statement. I want to check if variable key and id are the same. They are both strings and when I print them to screen they certainly look the same. However when using them within an if statement it always returns false. Here …

Member Avatar for eddy556
0
171
Member Avatar for ajithraj

haiii friends.. i want to generate buttons at the run time...and want to get the value on "onclick"... The code is like this.... <html:button property="button1" onclick="getButton();" styleClass="FORM"><%=list.get(x)%></html:button> x is incrementing...this code is inside a for loop...... thanksssssssss.....

Member Avatar for ajithraj
0
95
Member Avatar for fl00d

I'm trying to import a function exported by a dll. So far: [CODE] #pragma comment(lib, "hookHop.lib") extern "C" void hhPostMessageA(HWND Hwn, UINT Msg, WPARAM WParam, LPARAM LParam); extern "C" LPARAM CursorPosTolParam(VOID);[/CODE] The lib and dll are in my project directory and my dll is in my debug directory. I get …

Member Avatar for 4ng3licDew
0
152
Member Avatar for someguy88

Hello Spike here. I've been teaching myself C++ for awhile now, but im still not very good at it. I was actualy wondering about the .bmp image files. I know in games they are read as little animations of some sort but they are on a flat image just in …

Member Avatar for someguy88
0
78
Member Avatar for jimJohnson

For the half of you that whine and complain that the new people don't use code tags please do not respond to me but for the people that did a great job helping me before: I was asked how to use code tags and i am sorry but this is …

Member Avatar for WaltP
0
288
Member Avatar for pohyf

hi everyone. can i know how to encrypt the password using different addition. example: 1st char +1 2nd char +5 3rd char +2 etc. i have mine done,but i only know to use hard coded password encrypt method. this is my code. [code] Dim Password As String Dim i As …

Member Avatar for pohyf
0
87

The End.