199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lordvoldemort

How do I multiply two arrays? Assuming that the numbers in the arrays are all single digit integers, which makes the array a big integer. Now I want to multiply these two big integers formed from arrays and also at the same time display steps. Please don't use multidimensional arrays …

Member Avatar for mrnutty
0
468
Member Avatar for jemz

hello can you help me i want to make my program to executable file is there a software for this to create a jar file?...hoping for your positive responds...

Member Avatar for Ezzaral
0
77
Member Avatar for leviaeon

i have a problem... i am new to python... and i have found a program that reads an sms directly from the phone's inbox... i am using nokia 6600... i just want to ask how will i be able to copy the sms file to a string? here is the …

Member Avatar for leviaeon
0
105
Member Avatar for lewashby

First off, I did google this before hand but most of the answers I got were about assigning attributes, but that's the the trouble I'M having. I'M trying to understand the "this" keyword beging used as a parameter/argument. Here some sample code There is a class by the name Elephant. …

Member Avatar for Szpilona
0
116
Member Avatar for gregarion

Hey, i was reading up on find function and i came across this line. size_t find ( const char* s, size_t pos, size_t n ) const; Correct me if im wrong, but it basically allows us to search a string based on the information inside an array right? After searching …

Member Avatar for mrnutty
0
156
Member Avatar for PDB1982

How would I, if it's even possible, create an array to read/store the input values from a input text file? Here is what I was thinking, but I want to pretend as if I don't know the amount of values in the file. Input File Has: 21.22, 13.23, 43.12, 123.54, …

0
71
Member Avatar for conandor

I compiling with Solaris 10 SPARC, jdk 1.6 from Sun, Ant 1.7.1 from OpenCSW. I have no problem running hadoop 0.17.2.1 However, I have problem compiling/integrating hive with the error 'cannot find symbol', although I followed the tutorial. I have the hive source code from SVN exactly from tutorial. How …

Member Avatar for masijade
0
927
Member Avatar for jprogram

I have been trying to do this assignment for the past 4 days. I thought I was doing good but the functions seem to be screwing up. All the greater than and less than functions are messing up. Also the add and subtract functions are messed up. Any suggestions would …

Member Avatar for WaltP
0
119
Member Avatar for lighten123

This is the code section from inno setup.My intention is to make two Checkbox where at a time one is being selected. But this code return error. procedure CheckBoxOnClick(Sender: TObject); var Box2,CheckBox: TNewCheckBox; begin if CheckBox.Checked then CheckBox.State := cbUnchecked; Box2.State := cbChecked; else //THIS LINE RETURNS AN ERROR: "Identifier …

Member Avatar for Ionelul
0
694
Member Avatar for Atomika3000

i have a program that generates a grid of 20x20 using a 2d array, it then populates it by randomly generating 2 numbers as co-ordinates, and then filling it with either an 'x' or an 'o' it has a maximum of 5 x's and 100 o's. What i need it …

Member Avatar for Lerner
0
4K
Member Avatar for jcao219

Most people would do something like this: [icode]input("Press any key to continue") #or raw_input[/icode] This way, if the user presses a key other than the Enter (return) key, then the program will still continue. It looks something like this: [URL="http://i42.tinypic.com/2yvp9hj.png"]http://i42.tinypic.com/2yvp9hj.png[/URL]

0
220
Member Avatar for 3cats

I have never posted to a forum before. I am taking a beginning C++ prgmming class. I am getting the error "error C2181: illegal else without matching if " I have tried everything I can think of to fix it, I can't tell if its a syntax error (such as …

Member Avatar for 3cats
0
170
Member Avatar for Lukezzz

Hi, I have a .txt file named: myTextFile.txt on my hostingaccount that contains this string: "Hello" Now my hostingprovider says this: "Any file that you can access via your domain can be accessed through a Secure Socket Layer (SSL) connection as well." When I type this manually in the address …

Member Avatar for Lukezzz
0
140
Member Avatar for BuhRock

I need help with this program write a payroll class that uses the following arrays as fields: *employeeID.- an array of seven integers to hold employee identification numbers. The array should be initialized with the following numbers: 5658845 4520125 7895122 8777541 8451277 1302850 7580489 *hours.- An array of seven integers …

Member Avatar for Ezzaral
0
1K
Member Avatar for frugalfreeloade

Hi, I've been searching for hours for an answer to this. I have a coupon saving website and I'm trying to allow people to print off a shopping list by checking checkboxes that once submitted will send you to a basic white page with just those item selected displayed so …

Member Avatar for metalix
0
216
Member Avatar for Syakoban

Hi, I'm trying to get an "app" created to run a com port on my local machine to control some electromechanical equipment. The issue is connecting to the local machine from a phone or laptop using WiFi and pulling up a "web page" (in PHP???) that can then communicate to …

Member Avatar for metalix
0
136
Member Avatar for lishannx

ive created a new picturebox with the image to be directed from my directory. but it came be the case that the directory path will always be on my desktop. how do i make the path not hard-coded? pictureBox = new PictureBox(); pictureBox.Image = Image.FromFile(@"D:\Documents and Settings\12344\Desktop\Model Products 40x40 v2\Model …

Member Avatar for Diamonddrake
0
1K
Member Avatar for jjennings11

My program is to display a menu choice for the user, they will then pick one of the choices and the program will perform a calculation for the user. It contains four functions (menu, sum, power, and gcd) and it must contain reference parameters...i have most of the program, it …

Member Avatar for jjennings11
0
112
Member Avatar for srikanth754

I have an object like this. List<TSQLBeginTransactionBlock_Ext> beginTranList =new List<TSQLBeginTransactionBlock_Ext>(); Now i want to make some changes to this object but i want the original object as well. I tried created a temporary object like this List<TSQLBeginTransactionBlock_Ext> tempBeginTranList =new List<TSQLBeginTransactionBlock_Ext>(); tempBeginTranList = beginTranList; then I've made changes to this temp …

Member Avatar for Diamonddrake
0
794
Member Avatar for Odena

Im trying to run some codes i found of JDom for a home work (super hard to find good material) any way. I was trying to run it on NetBeans and I dont have the library " org.jdom " Anyone, can please give me the right link to download this …

Member Avatar for peter_budo
0
106
Member Avatar for Tops

US --9--15--13--37 GE --10 --13--7--30 CA-- 14 -- 7 -- 5-- 26 (those dashes are meant to be spaces) How do i remove the first column of the text above so the output would look something like this? 9--15 --13 --37 10 --13--7--30 14 --7-- 5--26

Member Avatar for TrustyTony
0
2K
Member Avatar for kayblack

Hi guys, I'm trying to create a php script that'll send information gathered from a form and send it as an html email with the info arranged in tables. Can't seem to get it to work. Here's the message part of the script (containing the table): [CODE]$to="o.oloyede@feeslimited.net"; $message=" <table width="500" …

Member Avatar for cjohnweb
0
6K
Member Avatar for sallecpt

Hey guys. First of all, its been 2 days, and already 2:30am in the morning. I've eaten a steel fork, jumped over the moon, broke an arm, and cant get it to work. Will somebody please assist me in this; The end result sound simple, and maybe it is, but …

Member Avatar for sallecpt
0
155
Member Avatar for AltF4me

I've got a constructor that sets some floats (x,y,z) and then I have a function called setXYZ. Now the constructor and the function do exactly the same thing. What's the best thing to do in this situation? Should I put the code in the function then call this from the …

Member Avatar for AltF4me
0
121
Member Avatar for tennis

I saw the following sentences from a book “A difference between a destructor and other member functions is that, if a regular member function has a body at the derived class, only the version at Derived class gets executed. Whereas in case of destructors, both derived as well as base …

Member Avatar for mrnutty
0
111
Member Avatar for rickymak

Hi, I don't understand the portions I put in bold in this function for converting Fahrenheit to Celsius. The texts are "FtoC." I am guessing "FtoC" is a variable; I really am confused about why "to" is in there. What does the paranthesis (float f) indicate? [CODE]#include <stdio.h> float [B]FtoC[/B](float …

Member Avatar for Narue
0
108
Member Avatar for Aparna Bharath

Hi, I have a python simulator file sim.py. I need to start, stop and restart this simulator from a C/C++ test file test.cpp. I tried using system( "\sim.py" ) in my test file. This starts the simulator but in the same window as test.exe. In this case how do i …

Member Avatar for Software guy
0
157
Member Avatar for michael_r

hi every one this is my first post in any forum i have got an error while inserting a row to mysql this is my code: $query = "INSERT INTO flight(date,from,to,depart_time_hr,depart_time_min,arr_time_hr,arr_time_min) VALUES('$_POST[date]','$_POST[from2]','$_POST[to2]','$_POST[hours1]','$_POST[minutes1]','$_POST[hours2]','$_POST[minutes2]')"; the error shown is: 1064 You have an error in your SQL syntax; check the manual that corresponds …

Member Avatar for michael_r
0
157
Member Avatar for Corbula

I have a lot of tables and to get it to post some of the data into a form. So say i have a location and a start date and end date, and when i select a radio and click submit the location and dates get put into the corresponding …

Member Avatar for Airshow
0
3K
Member Avatar for dylank

Hey Daniweb; Ive scoured the internet for scripts that make a <div> follow the mouse, and have found one that seems to work well. However, I want the <div> to stop moving when the CTRL or the SHIFT key is pressed, I dont care which. Hopefully, I can have a …

Member Avatar for Airshow
0
471
Member Avatar for adrian75

can anyone help me with this c++ program? its a little much but i would really appreciate it Project specifications: Create a 2-player game that utilizes the “a s d f” and “4 5 6 8” keys on your keyboard. It would be a modified rock, paper, and scissors game, …

Member Avatar for tonymuilenburg
0
382
Member Avatar for twilitegxa

I have a checkboxlist and I need to know how I can send the values of all checked items to a text file. I already have other controls on the form sending their values to my text file, but I don't know how to get the values of the checked …

0
74
Member Avatar for mrcniceguy

i`m having this problem after whenever include or require is Used. help please i dont know how to solve this. Fatal error: Cannot redeclare validateemail() (previously declared in C:\wamp\www\kislat\functions\functions.php:3) in C:\wamp\www\kislat\functions\functions.php on line 26 [code=php] <?php session_start(); require "config.php"; $user=$_SESSION['user']; $id=$_SESSION['id']; if(!session_is_registered('user')){ header("Location: checklogin.php"); exit; } define('INCLUDE_CHECK',1); require"functions/functions.php"; require"includes/functions.php"; //$user=$_POST['user']; …

Member Avatar for mrcniceguy
0
832
Member Avatar for thompsonSensibl

Hi folks, ThompsonSensibl, so I'm new to Python. This is probably a noob question... I want to convert a String input to an Integer. I usually do it like this: number = int(someString). However this time this approach doesn't seem to be efficient at all. So far I have: [CODE] …

Member Avatar for megaflo
0
8K
Member Avatar for new_divine

as a undergrad student i am thinking of making a mobile application online traffic system and informer using java specially for nokia mobile devices i have almost finished developing its algorithm and some design works are on progress but i am really stuck and confused about which ide should i …

Member Avatar for new_divine
0
73
Member Avatar for Ron_HL

there are some problems in my coding which showing errors C2664 and C2562. i have no idea how to fix it...wish someone can point the problems and solutions too... [CODE]#include <iostream> using namespace std; const int listSize = 10; void fillArray(int list[],int listSize); void largest(const int list[],int listSize); void printArray …

Member Avatar for Salem
0
97
Member Avatar for summey

[CODE] #include <iostream> #include <string> #include <iomanip> using namespace std; // //CLASS DECLARATION SECTION // class EmployeeClass { public: void ImplementCalculations(string EmployeeName, int hours, double wage); void DisplayEmployInformation(void); void Addsomethingup(void); string EmployeeName; int hours , overtime_hours, iTotal_hours, iTotal_OvertimeHours; double wage, basepay; double overtime_pay, overtime_extra; double iTotal_salaries, iIndividualSalary; }; int main() …

Member Avatar for summey
0
103
Member Avatar for DaveTran

I would like to skip the remainder of a function and call another should a statement prove true. [CODE] public bool A(int i) { if (i > 5) { // Skip the rest of A() and return B() return B(i); } // Do stuff to i } public bool B(int …

Member Avatar for caovan
0
316
Member Avatar for PierlucSS

Thank you for reading, I am currently trying to pass through a project or whole sites containing many pages to determine wether they are xhtml-strict or not with a local xhtml-strict.dtd file. I cannot go through a webservice it would be too overkilling for server and host might even probably …

Member Avatar for PierlucSS
0
238
Member Avatar for skybomb0

I have read quite a bit on this topic and am pretty sure that the correct method would be to use invoke, but I can't wrap my mind around how to call it (been working with c# for about a week). I have a HandleCommand method in the MainForm class …

Member Avatar for skybomb0
0
116
Member Avatar for dan345

hi, im quite new to java, and i've been trying to understand this code, but i have no clue about the red parts. does anyone have any idea of what the red parts of this code do? [CODE] import java.io.*; public class BWTEncode { public static void main(String args[]) { …

Member Avatar for masijade
0
149
Member Avatar for jtodd

Hey guys! This is a relativity simple program. It compiles fine but when I try to execute there is a problem. Any insight or advise would be greatly appreciated. Thank you import java.util.Scanner; public class Power { public static void main( String[] args ) { Scanner input = new Scanner( …

Member Avatar for vchandra
0
105
Member Avatar for RossThels

Hey again guys, I've been stressing over this problem for the past few hours now, and cannot figure out why it's doing what it's doing. I'm rather new to java...but here we go :) I currently have a slideshow class -and here it is. Sorry if it's sloppily written code...but …

Member Avatar for Ezzaral
0
122
Member Avatar for conandor

I running MySQL 5.1.30 on Solaris 10. As I have a table which I partition into 12 according to each month. The table structure as follow [CODE] mysql> desc my_events; +-----------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+--------------+------+-----+---------+----------------+ | event_id | bigint(20) | …

0
172
Member Avatar for lukeduke

Hi, I'm exporting from a datatable to excel document (not CSV because I need some cell formatting) using this method found here: [URL="http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/08d69589-4052-410f-a85c-c38493c0a664/"]http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/08d69589-4052-410f-a85c-c38493c0a664/[/URL] Locally, it works fine, but when I upload to the server, I have been getting errors. The latest one is this: [CODE]Microsoft Office Excel cannot open or …

Member Avatar for lukeduke
0
225
Member Avatar for wtzolt

Question regarding compiling *.py script. Everything works fine when I compile the script except that there is no "theme". It looks like it's using win 98 skin or something. Looks very bad. Would like to know how to preserve [COLOR="Green"][I]gtk-theme-name = MS-Windows" [/I][/COLOR]. Which packages or modules should I include …

Member Avatar for wtzolt
0
121
Member Avatar for sana zafar

Hi I am attempting to write a code that will input the name of a file and output the number of times each letter appears in the file, and it is case-insensitive.For example : a|A : 5 b|B : 3 c|C : 0 d|D : 7 e|E : 0 so …

Member Avatar for Freaky_Chris
0
248
Member Avatar for digitalsindhx

Dear Frined my simple update statement is not working on my database software with .mdb CompanyDa.Update(CompanyDs, "DisplaycenterData") it works but only in cache, when i restart my application the record is not updated. i solved my problem with some informal steps. i m attaching vb projects zip file, plz open …

Member Avatar for samxcui
0
140
Member Avatar for vesnushka

I want to use $#array. But # makes the next words commented. Is it possible to avoid such situation? [CODE] for ($i =0; $i <= $#array; ++$i) [/CODE]

Member Avatar for vesnushka
0
66
Member Avatar for vbx_wx

can anyone point what is wrong with my RegQuerryEx() function? Altough it return 0 :| [CODE] char buff[3] = {0}; DWORD size = sizeof(buff); DWORD type; if(RegOpenKeyEx(HKEY_CURRENT_USER , "Software\\vBx" , 0 , KEY_QUERY_VALUE , &hkey) == ERROR_SUCCESS) { if(RegQueryValueEx(hkey , "log" , NULL , &type , (LPBYTE)buff , &size) == …

Member Avatar for vbx_wx
0
95

The End.