132,726 Archived Topics
Remove Filter ![]() | |
Hi, I am working on a project where I need to save data which the user inputs for future reference and manipulation. I know one can use a database or a binary file. I would like to use a database but I don't know where to begin. I know one … | |
please help me to write a program in c++ to find sum of first and last digits of any number Software Development c++ | |
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 … Software Development java | |
![]() | 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 … Software Development c++ |
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 … Software Development c | |
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 … Software Development java | |
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 … Software Development java | |
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 … | |
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; … Software Development java | |
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) … Software Development c++ visual-studio | |
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 … Software Development client-server windows-server | |
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 … Software Development c++ linked-list storage | |
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 Software Development c | |
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 … Software Development c++ | |
[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 … Software Development c++ | |
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 … Software Development c++ | |
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 … | |
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/ … Software Development c++ | |
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"); Software Development c++ | |
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-- | |
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 … Software Development assembly | |
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 Software Development java | |
what is meant by generic linked list. how to insert and delete the elements in the linked list which is generic Software Development c linked-list | |
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 … Software Development python | |
-------------------------------------------------------------------------------- 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 … Software Development algorithm engineering | |
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 … Software Development c++ | |
//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) { … Software Development c | |
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 … | |
[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 … Software Development c++ | |
| |
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 … Software Development python | |
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 … Software Development client-server sql vb.net | |
/** 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. … Software Development java | |
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..... Software Development java | |
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 … | |
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 … Software Development vb.net | |
Hi, I would like to create, modify insert del and read from excel files I found some articles on daniweb and other sites and even on msdn but they are very difficult and not complete. I was wondering if someone could please give some tutorial link to explain how to … Software Development c++ | |
hello friends, i am sending selection formula from code. something like ... CrystalReportViewer.selectionFormula = {MyViewForReport.Q_code}=" & cboQ.Item(i).value my req. is i want to send multiple values with " and " , "or" what i did is - "{VoterRegDetail_Qry.QualificationCode} = 1 and {VoterRegDetail_Qry.CasteCode} = 19 Or {VoterRegDetail_Qry.CasteCode} = 20" But its … Software Development vb.net | |
I've never coded in c before but have to for a class that I'm taking. I'm using miracle c as my compiler but am having a strange error when I try to execute a program. The program executes, but the command window instantly closes so I can't even tell if … Software Development c | |
For a school project I am doing we are required to take character input through the command line and convert the character to its ascii value. I would think, therefore, that the line of code: printf("%d",(int)argv[1]); would print out 97(ascii for a) if i were to type 'a' as the … Software Development c | |
I am in the last part of the program and everything is working but one final thing. I need to get all the Subtotals, taxes, and total cost to add up....I tried using sums, counts, and change the variable names and still having trouble....this program has been a real pain … | |
i have found out how to track the mouse and the click of the mouse when it is over the for, how can i track it outside the form? also how do i record it and the timing of when keys are pressed? i need to make this program so … Software Development vb.net | |
I'm having some issues retrieving data from an OLEDB database. In a certain column it contains about 400 or so characters, but when I read it into my dataset or read it using a DataReader, all I get is the first 199 characters. I'm completely stumped as to why the … Software Development dataset | |
a = 2; b = 3; a = (a + b) % 2; b = b – a; a = a * b; cout << a << "\n" << b ; What is the output for a and b? ------------------------------------------------------------ Why is a [B]3[/B] and b[B] 2[/B] is this one … Software Development c++ | |
My problem: Use an Iterator to go through all of the elements in the list, getting each element's textual representation, and displaying this text neatly inside the text area. My thoughts: Do I use an add method to add elements from the list to display onto the text area? Software Development java | |
Assignment was to take information about sales made, hours worked and number of dependents from a file, calculate the gross pay expected on one of two plans Plan A 10% commission on sales, and 9.50 an hour with 1.5x overtime after 40 hrs Plan B 30% commission then we had … Software Development c++ | |
I have managed to create a file (Sample.txt). So what I need now is to put the contents from array (ReadLines[]) to this file, line by line and the file name should be what is written in textBox3. [code] array<System::String^>^ ReadLines = gcnew array<System::String^> ( textBox2->Lines->Length ); ReadLines = textBox2->Lines; … Software Development c++ file-system | |
Hi I wrote a visual basic program years ago for a friend. I retained the source, but I get a load error on some of the files. Apparently they are saved in binary (or tokenized?) format. I would like to read them so I can update the program and even … Software Development visual-basic | |
/** 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. … Software Development java |
The End.