199,114 Archived Topics
Remove Filter ![]() | |
How could we implement the code if I want to read a grayscale image file into two dimensional byte array? Since we don't always know the number of rows and columns binary file has beforehand, how can I read that into 2-D array? A grayscale image is single band image … ![]() | |
Hi, i am given an array of atomic numbers, and I need to arrange them in order from 1-100 or something. the program i wrote is this [code] for(fill = 0; fill < (m-1); ++fill) { if(atomic_num[index_of_min] <= atomic_num[fill]) { temp = atomic_num[index_of_min]; atomic_num[index_of_min] = atomic_num[fill]; atomic_num[fill] = temp; } … ![]() | |
Good morning, I am sure this has been asked before. So here it goes. I've been playing with these two php functions and was wondering if I have the logic right. let's say I wrote a function called crazy encrypt [CODE] <?php function crazyencrypt($password){ $is="isthis"; $overkill="overkill"; $pass = $password.$is; $pass1=md5($pass).$is; … | |
Can anyone point me in the direction of a small app that displays 2 panels on a frame, where one panel is small and at the top taking up about 20% of the frame, and the other panel takes up 80%. I would like it to be possible using wxBoxSizer … | |
Is there a function to remove punctuation from a string, or check to see if a char is a letter? This is a home work assignment to: 1 Write a class stack and a class queue 2 Test your classes by writing a program that will ask the user for … | |
Hi all, I need to write this program today and I really struggle :-( Would you be able to help at all? public class ISPN { private int[] authorId; private int[] programId; /** * Creates a new instance of ISPN */ public ISPN(int[] anAuthorId, int[] aProgramId) //constructor that takes two … | |
Hello All, This is suppose to be my finished code for my "PacMan Game". All this "game" is suppose to do is to allow a Pacman to eat dots that can be placed on the screen at any location by clicking the mouse. It has a main class and a … | |
Hi, I have a linked list which I created in a function? I want to allow the user to enter a name for the linked list, and then after he/she can display the list by typing in the title. This is part of my code [code]struct llistt{ char str[100]; // … | |
Hi, basically i want to parse an image of a small FAT SD memory card that i have aqquired to display its directory structure. Ive tried scowering the web for some information or resources to study but i cn't find anything. Does anyone know of any info available to allow … | |
[b]Code[/b]: [b]NumeroReal.h[/b] [code] #pragma once #include <iostream> #include <cmath> #include <cstdlib> using namespace std; class NumeroReal { private: double n; public: NumeroReal(); // default constructor NumeroReal( double n ); // parameter constructor NumeroReal( const NumeroReal &unNumeroReal ); // copy constructor ~NumeroReal(); // destructor void setNumeroReal( double n ); double getNumeroReal() … | |
Hello, We are re-writing an application and are going to use soap as the communication protocol. Our product is installed on one or more machines in a network and communication is cross-process and/or cross machine. we are looking at iis or a lighter weight host such as cassini. I have … | |
Is there a way to accept keystrokes through c# in a console app? Basically I want to apply macros/the f-keys to my program, thanks. | |
i need some help with the SlowMovevertical method, i dont know how to incorparate it correctly into my source code to make it work? thanks if you can help. | |
Hi, I'm hoping that someone can help me out as I'm sort of new to programming. I recorded a macro that uses microsoft query to get data from an access database. It works fine as it is, but I want to change the final filter to a variable and I … | |
Basically for part of my assignment, I have to write my own int to string. This is done, however the problem is I can only enter 6 digits to convert otherewise my program crashes. Out lecturer also wants us to use the abs function as the value passed in can … | |
Hi, I want to ask if there function in library of c++ to search word in file ?? thank you | |
As an example, consider the following array of 9 integers in the range 1 to 5: [2, 3, 2, 1, 4, 5, 2, 3, 1] The count array would contain the following values: [2, 3, 2, 1, 1] Working from this set of counts, the sorted array would be: [1, … | |
Hi, I tried this code: [ICODE]<?php session_start(); $id=$_GET['fileid']; if($id=="1") { $dwnld = "File1.zip"; } else if($id=="2") { $dwnld = "File2.zip"; } else if($id=="3") { $dwnld= "File3.zip"; } if($id) { header("Content-type: application/download"); header("Content-disposition: filename=$dwnld"); readfile($dwnld); } ?>[/ICODE] I want the user to download those files from a folder named Archives... Example: … | |
I am a final year student and thinking of a project topic to do. Any suggetion? | |
Hello~I am having trouble with my homework. I could not have them done. Please Please help me with it. Thank you all. God bless... The question is ""Add temporary, administrative, permanent, and other classifications of employees to the hierarchy from the three coding. Implement and test this hierarchy. Test all … | |
I need to get an image to move a number of twips at a timer interval determined by a variable (no problem) for a number of iterations through a for/next loop (problem). I've tried it without variables without success: first: Form_Load() Dim jumps as Integer jumps = 1 For jumps … | |
Hello people, I've completed my second year of B.Sc Computing Degree and currently finding a good project idea for my final year project :-/ . I'm more interested in mobile computing area but also interested in Web and Desktop applications. I have only another three weeks to start my final … | |
i need a code sample to capture the value of a record id from the selected row so that i can send it as a parameter to the oracle procedure that deletes the record. thanks | |
I was wondering if someone would be willing to assist me. The program listed below compiles, but when I run it I get the following error an exception 'System.FormatException. I think my error is possibly convertinting the string in the readLine to a boolean inorder to test the true false … | |
html page <form method="get" action="sort2.php"> <table> <tr> <td>id</td><td><input type="text" name="id"></td> </tr> <tr> <td>From</td><td><input type="text" name="from"></td> <td>To</td><td><input type="text" name="to"></td> <td><input type="submit" name="submit" value="submit"></td></tr> </table> </form> sort2.php <?php $id=$_REQUEST['id']; $to=$_REQUEST['to']; $from=$_REQUEST['from']; $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or die("unable to connect"); $query="(select name,id from member where id=(select day,time from attend where day between '$from' … | |
Program terminated with signal 11, Segmentation fault. Environment: FreeBSD 6.2, Python 2.4.4, MySQLdb 1.2.2, SQLObject 0.9.1 I faced with an error in our multithreaded, network oriented application, wich interacts actively with MySQL database. Brief information from core dump is below (more detailed one is in the file attached). Though I … | |
I have a 2D array like this: [code]$cart = array(array("Item", 6.99), (array("Item 2", 13.99)); [/code] i am using this for a shopping cart i am making. I can add to it fine. What i need to be able to do is remove items from the array. I have been racking … | |
hi, i'm a novice user of VB. a freshman student of saint mary's university, can you please help me in my problem,, i'm having trouble in our VB 6.0 coz i dont have any knowledge regarding in this,, can you pls provide me a code which in cpu scheduling which … | |
I have this code that i used for shoopping and adding to cart. but the problem here is that when i add to cart it'll not display the artist song that i choose and add 'em to cart rather it uses the one from another class. Please how do i … | |
hi i have a form where the user will enter the data based on the user input i want to retrieve data ex 1st textbox one get the standard (class of the student) 2nd & 3rd textbox get the range (ex rank 1 to 10) when the user clicks submit...i … | |
Hi guys. i can explain for my doubt with example.see.my table have multiple type of employee details like as Managmment,Programmer,Designers,Accountants,Contra ctEmployees.Each type of department having many employee details.Now my drop down list having types of department names like that above types of department names..if i select any one type of … | |
Hi, I'm quite a beginner and not sure if I can be helpful in the future. But I'll try! anyway, here is my problem... I've been searching on the net & looking up books but still don't have a clue of how to get it work. I have to simulate … | |
please i need some help with this, i want to display the curent date n time at the bottom of this page. when i run it . THANKS. [code=java] import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.event.*; import java.util.Calendar; /* <applet code=" The.class" height=20 width=20> </applet> */ public class The … | |
Hello frenz, I am trying to modify the templateField itemized hyperlink on my GridView. My problem is , I have 3 types of status, 'KIV','Complete'&'Incomplete'. I must display 'KIV' in Red color font with its coresponding linkA. As for 'Complete', it has to be in 'Green' and matched to linkB. … | |
I have a checkbox form where different check boxes need to send the form to different email addresses. Right now, no matter the check box, it goes to the same emails. <span class="clients"> <input type="checkbox" name="blah" value="checkbox" /> Blah</span></p> <p> <span class="clients"> going here: <SCRIPT LANGUAGE="php"> $email = $HTTP_POST_VARS[email]; $mailto … | |
Please suggest me a Control or Object (Other than MDI Form) In vb 6.0 which can hold a Form. I want to call another form from within a form in a control like TabStrip. Pl. suggest me at earliest. Thanking you; Pankaj Kumar | |
Hi folks, Perl === Instead of using following command printing output to a file; $ perl AAA.pl > /pathto/name_of_file is it possible adding "print file function" to the script 1) If YES Please advise how to make it. 2) Can I add following bash syntax to the script user=$(whoami); now=$(date … | |
I am am for the first time here,since it is the first time I needed help.I have read all the rules and I agree with you for the homework case...But this is getting frustrating!I am working on this on my own,practicing for the mid term but what am I doing … | |
o.k., so as i stated in my first post, I'm very new to this, and not very good at it. I have been able to get though the labs up to this point. But I am having some issues with my final lab. One thing I want to make clear … | |
Hey guys I need some help on this code. I'll just post the parts of the code needed to do thing I'm stuck on. [CODE]class Robot { public: // Constructor Robot(Arena* ap, int r, int c); // Accessors int row() const; int col() const; // Mutators void move(); private: Arena* … | |
here is my problem ... I have a bunch of usernames in a listbox called listBox1, how can i store each line of text into a mulitiple arrays of a string? i cant seem to figure it out I want to do this so later i can use "usernames[x]" so … | |
I thought this script was working. I absolutely cannot get IIS to fully and completely work on my home comp. After making a special trip to school to test this thing out, it ends up that it's only displaying the last data entered instead of the averages, totals, etc. This … | |
I must to write i program in C which will carry into clause(sentence) from keyboard and count how much "," have how much spaces " " have and how much times occur the word "The" for every clause(sentence). And in the end program when you carry into clause(sentence) must print … | |
Hi friends again. Can you tell me how I will justify right edit box components in delphi. Ok I have found the memo to justify right for my input variables. But when I delete the text inside the memo components. Some of strings in memo components are not coming to … ![]() | |
I can't seem to get OleDb controls to show up in C# Express. Are they excluded for some reason? I have made sure they are selected in the "Choose Toolbox items..." dialog, where they are listed, but they don't appear anywhere on the toolbar. I tried to add them to … | |
Hey all, I'm not gonna ask for help with code or anything. What I would like is some help with an idea for a project I have, it's for college. Basically the spec for it is: Design a new keypad for a phone, to type sms' with one finger, and … | |
Hi people, I am wantng to read a key in as an argument that will duplicate itself to the exact character length as the plaintext , read from a text file. E.g. key = deceptive Then i need it to repeat until the end of the plaintext file length as … | |
Hi guys and girls. I’m a bit of a newbie and I hope I haven’t posted in the wrong thread but I need a little help. I am trying to mess about with Greg calendar. I have been told to make a diary app and was hoping to use this … ![]() | |
Im trying to move picture used on one button to another button, i tried Icon pic = btnA1.getIcon(); btnA1.setIcon(pic); | |
I have been working on this for days and it's the most annoying error. For some reason, everything works correctly the first time through, as you can see from the sample output. However, if you go through a second time (as the input is from the command line, i.e. if … |
The End.