Hey all. (the reason i dont post code is a)because i think its far too long because the whole program is not just about that and b) because i think you might be able to help me w/o code,as it is kind of wierd problem)~~ So i wrote this program which basically opens a simple 5-line file,each line containing words and numbers,and what i wanted to do is separate and store each word and each number using an array for each of them.so i had array1[] for the first word,array2[] for the second etc and had some counters so that …

Member Avatar
Member Avatar
-2 forum 2

Hi, i have a little problem, i dynamic generate a buttons in two columns [CODE=c#] for(i=0;i<=10;i++){ Button prz = new Button(); prz.Location = new Point(12,40+i*25); prz.Name = "But"+(p-i)+"up"; prz.Image = Image.FromFile(picture_from_file_1); prz.ClientSize = new Size(20,20); prz.Click += new System.EventHandler(this.Button_Click_Code); Controls.Add(prz); Button prz1 = new Button(); prz1.Location = new Point(45, 40 + i * 25); prz1.Name = "But" + (p - i) + "down"; prz1.Image = Image.FromFile(picture_from_file_2); prz1.ClientSize = new Size(20, 20); prz1.Click += new System.EventHandler(this.Button_Click_Code); Controls.Add(prz1); } [/CODE] and [CODE=c#] private void Button_Click_Code(object sender, EventArgs e) { Button myBut = (Button)sender; switch (myBut.Name) { case "But0up": break; case "But0down": break; …

Member Avatar
Member Avatar
+0 forum 7

i am having trouble displaying my database table...i am new to php and mysql (just started last week)... this is the code iam using: [CODE]<?php //connect mysql_connect("","","") or die(mysql_error()); mysql_select_db("") or die(mysql_error()); //query the db $getnews = mysql_query("SELECT * FROM shows ORDER BY id DESC") or die(mysql_error()); while ($row = mysql_fetch_assoc($getnews)) { //get data $id = $row['id']; $venue = $row['venue']; $date = date("m/d/Y", strtotime($row[date])); $city = $row['city']; $state = $row['state']; $exceptions = $row['exceptions']; $countries = $row['countries']; echo "&theDates=$date|&theStates=$state|&theCities=$city|&theExceptions=$exceptions|&theClubs=$venue|&theIDs=$id|&theCountries=$countries| <br>"; } ?>[/CODE] but it is display it like this on the browser: &theDates=date01|&theStates=state01|&theCities=city01|theExceptions=exceptions01|&theClubs=club01|&theIDs=id01|&theCountries=countries01| &theDates=date02|&theStates=state02|&theCities=city02|theExceptions=exceptions02|&theClubs=club02|&theIDs=id02|&theCountries=countries02| I need it to display like this: …

Member Avatar
Member Avatar
+0 forum 2

clienthint.js [CODE] var xmlhttp; var parameters=""; function showHint(url) { var myform = document.forms[0]; if (myform != undefined) { parameters = getRequestBody(myform); } if (url.length == 0) { document.getElementById("txtHint").innerHTML = ""; return; } xmlhttp = GetXmlHttpObject(); if (xmlhttp == null) { alert("Your browser does not support XMLHTTP!"); return; } xmlhttp.onreadystatechange = stateChanged; xmlhttp.open("POST", url, true); xmlhttp.send(parameters); } function stateChanged() { if (xmlhttp.readyState == 4) { document.getElementById("txtHint").innerHTML = xmlhttp.responseText; } } function GetXmlHttpObject() { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari return new XMLHttpRequest(); } if (window.ActiveXObject) { // code for IE6, IE5 return new ActiveXObject("Microsoft.XMLHTTP"); } return …

Member Avatar
Member Avatar
+0 forum 12

I have an Asus G1Sn laptop that is stock except for a CPU upgrade. Instead of the T5550 at 1.83 ghz (800 mhz FBS) I now have a T9500 at 2.6 ghz (800 mhz FSB). My problem is that when running a diagnostic program like CPUZ the processor is displayed at the correct amount but only runs to 1.2 ghz maximum. Even when I put a load on my computer such as playing a game or running background programs, the current state does not increase. My CPU sits a multiplier of 6 and refuses to change, it does not scale …

Member Avatar
Member Avatar
+0 forum 1

Hi, As I'm new to C++, but not to programming, I tried to start simple by reading off value from the registry. I'm talking about standard values such as the processor's name. I made a little function which checked how many processors the user has, that works fine. But I would then like to give the user the names of the processors. But I'm having trouble with the RegQueryValueEx function from Windows.h. I use this function to retreive the name: [code] char * processor(double index) { HKEY key; LONG succeeded; succeeded = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\"+(char)index, NULL, KEY_READ, &key); if (succeeded == …

Member Avatar
Member Avatar
+0 forum 7

At the moment Im developing a java application but Im having a problem. Im using a JFrame that takes different JPanels, I mean i change its ContentPane for another JPanel everytime i want to show new information. Im using a database too, im reading data from it im writing them in a JTable, But... when i try to do this my program freeze and stop working until i minimize and maximize my JFrame.!! I need help with this.!! What should i do?, Should i add some Threads?? This is part of the code im using: [CODE] // Class Search table …

Member Avatar
Member Avatar
+0 forum 2

ehh, this is a wierd one... only a small fraction of my css is working when i put it in a external sheet. works perfectly in internal/embedded css. here's my css code: [CODE]body,td,th { background-image: url(images/bg.png); background-color: #828281; font-family: Arial, Helvetica, sans-serif; } #top { width:851px; height:201px; } #middle { background-image:url(images/middle.png); width:791px; padding-left:30px; padding-right:30px; } #bottom { background-image:url(images/bottom.png); width:851px; height:45px; } #all { position:absolute; width:851px; left:50%; margin-left:-425.5px; top:50px; } #ad { background-image:url(ads/ad1.jpg); position:absolute; width:811px; height:102px; left:20px; top:98px; } .high { position:absolute; background-image:url(images/highlight.png); width:66px; height:31px; } [/CODE] and my html if you want it.. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" …

Member Avatar
Member Avatar
+0 forum 2

hey so i think i got this virus from downloading a game from frostwire a few weeks back. i checked it for viruses with my avg and it said there was nothing and when i opeded it nothing happen. so i did a scan immeditly and it said there was like 2 or 3 infections and i tried to remove them but wasn't able to. it was telling me i wasn't able to get into the virus vault and is still saying that. and now my computer seems to be getting slower, and sometimes even freezes. so i tried deleting …

Member Avatar
Member Avatar
+0 forum 1

Assignment Write a C++ program to implement employee directory, which will let the organization to perform the following functions: 1) Insert the record of new employee 2) Delete the record of an existing employee 3) Find the record of an existing employee 4) Display Report Following information of each employee will be stored Employee ID: an integer value to store the unique id for each employee Employee Name: the name of each employee. Employee Address: Address of each employee Employee Salary: a float value to store salary of each employee. Hint: Following information of each employee will be stored Employee …

Member Avatar
Member Avatar
+0 forum 1

Assignment Write a C++ program to implement employee directory, which will let the organization to perform the following functions: 1) Insert the record of new employee 2) Delete the record of an existing employee 3) Find the record of an existing employee 4) Display Report Following information of each employee will be stored Employee ID: an integer value to store the unique id for each employee Employee Name: the name of each employee. Employee Address: Address of each employee Employee Salary: a float value to store salary of each employee. Hint: Following information of each employee will be stored Employee …

Member Avatar
Member Avatar
-1 forum 1

Write a class Employee. An employee has a private first name (string), private last name (string), private job title (string), private employment ID (string), private monthly income (double), private joining date (string), and private mailing address (string). Provide a default constructor, a parameterized constructor, and a clone constructor. Write separate setters and getters for each private instance variable. Your Employee class should also keep track of number of employees that have been added to your system. Write another class BusinessConcern, which acts as your main class. Inside main method, create a one-dimensional array of objects of Employee type. At the …

Member Avatar
Member Avatar
+0 forum 6

Hello, I am new to c++ and attempting the for command. This is my code #include<iostream> #include<string> int main() { for (int x=1; x<=10; x++) { cout <<"Hello"; } } but the error : undeclared identifier comes up for cout. I have tried other commands such as cin but none of them works inside the brackets.( For{}) Please help thanks.

Member Avatar
Member Avatar
+0 forum 3

Hi, I have the following code: [CODE=ASP.NET]<asp:FormView ID="myFormView" runat="server" SkinID="DetailsFormview"> <ItemTemplate> <table width="400"> <tr> <td align="right"> <b>This is the label: </b> </td> <td align="left"> <asp:Label ID="myLabel" Text="Label Text" runat="server" /> </td> </tr> </table> </ItemTemplate> </asp:FormView>[/CODE] And in the code behind (VB.NET): [CODE=VB.NET]Protected Sub BindFormView() Dim myLabel As Label = myFormView.FindControl("myLabel") myLabel.Text = AnotherLabel.Text End Sub [/CODE] However, myLabel is always nothing. As you see, my formview has only an ItemTemplate. I tried setting hte DefaultMode to ReadOnly but I still have the same problem: myLabel = Nothing! Any suggestion of what is wrong? Thanks, Ana

Member Avatar
Member Avatar
-1 forum 1

I have been using web browser for many years now (Firefox, Internet Explorer, Opera, Crome, Safari) and with heavy use of the internet, I have found that all of those browsers except Opera crash after the first few hours of having 20 tabs open with them constantly opening and closing. I know that Internet Explorer was based on Mosaic just like Firefox and possibly Safari. Then Crome was based on Safari. So I'm asking is it possible that a memory leek in mosaic has caused devastating side effects for nearly all browsers based on mosaic code. The memory leek I …

Member Avatar
+0 forum 0

Hey there good folks! :) I am working on a thread task called, Lab Alarm, and I am nearly done with it. We're suppoosed to work with the "producer-consumer" problem and It's just teacher code that one is supposed to modify and add some own to it. Now, I am almost done with this thing - but I keep getting some errors - which I don't fully comprehend. If anyone could shed a little light over it, and what next step I should take, I would be grateful. :) The lab consists of 7 classes - they are not big …

Member Avatar
Member Avatar
+0 forum 5

This is a program for generating a state table for flip flop circuits. My problem is that the program does not get anything from the Textfield which gets the value for KAEquation, but for JAEquation, it works just fine. [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; /** * @author Jenielle Gabriel * */ public class FFGen extends JFrame{ private String FlipflopType = ""; private boolean isOneFlipflop = true; private boolean isInput = false; private boolean isOutput = false; String JAEquation = ""; String KAEquation = ""; String JBEquation = ""; String KBEquation = ""; String OutputEquation = ""; public void …

Member Avatar
Member Avatar
+0 forum 2

I have noticed that since the upgrade, when previewing the text that we are about to post, the previewed text is smaller than it should making the number of words per line misleading and at times hard to read. Also in this same preview area, code boxes with a line of code that's really long makes the code box go off screen where as when the post is submitted the code wraps. Again annoying as editing a post is the only way to find the correct display result intended. I'm using Opera 9.63 and suspect it's a css bug. Can …

Member Avatar
Member Avatar
+0 forum 2

On visual studio watch1 "NumbersLcl(xc, yc)" is 6, "NumbersLcl(x1, y1)" is 7. Both "y1" and "yc" are 0. All variables are byte and NumbersLcl is (2,2) as byte. How can the following statement evaluate as true? If y1 = yc And NumbersLcl(xc, yc) = NumbersLcl(x1, y1) Then isfound = False

Member Avatar
Member Avatar
+0 forum 13

The End.