64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tintincute

Hi I have a code here composed of Array. I would like to know what does this mean here: (please see last 3 lines) What does it mean? Thanks & regards ArrayList numbers = new ArrayList(); string yourValue; Console.WriteLine("Give the value (b to end)"); Console.WriteLine(); do { Console.WriteLine("Give the value:"); …

Member Avatar for tintincute
0
123
Member Avatar for doha786

i am very new in java. anyone pls tell me step by step that how can i make executable jar file for my ListFile.java file .... I made a directory named "Test" where put ListFile.java & ListFile.class file. then i made a "mainClass.mf" file in same directory where having this …

Member Avatar for BestJewSinceJC
0
101
Member Avatar for szita1

hi all, im new to php and im stuck with a "constant" problem. i was studying a code snippet and trying to creat a constant with define() like this: define("ABC",1,TRUE). i dont understand why it results nothing if the second parameter is 0. The consant type is boolean and it …

Member Avatar for ShawnCplus
0
87
Member Avatar for PhiberOptik

Hi Guys, I have been googling for a while, I think the problem is I don't know what I'm looking for is called. I want to write a program that watches my screen (I assume it would take screen shots really fast) and then analyzes them finding the moving pixels. …

Member Avatar for PhiberOptik
0
109
Member Avatar for BestJewSinceJC

I'm using the same file menu with the same menu items in multiple places. As such, they should have the same actionListeners etc since the same windows should open when they are clicked. How do I get netbeans to automatically do this (make them all use the same events and …

Member Avatar for Ezzaral
0
103
Member Avatar for ramanand

Guys, i have installed PHP 5 on my windows system, i am able to browse to info.php which shows a listing, but if i create another simple page with a echo statement then i and not able to browse that page. i get the HTTP 500 internal server error. i …

Member Avatar for ramanand
0
162
Member Avatar for Bladtman242

Hi, im VERY confused about this, and i get a lot of different explanaitions, so now im asking you guys, because you properly know:) What can .net be used for? what is it good for? .net vs. gtkmm? Can i use the .net framework with c++? and how? Thanks in …

Member Avatar for Bladtman242
0
423
Member Avatar for Newbie 123

Hi I have the following [CODE]$_SESSION('userid') = true;[/CODE] How is it i would get the user to logout? I guess by deleting the session? Thanks

Member Avatar for Newbie 123
0
81
Member Avatar for Designer_101

Hi I have this login box that drops down once clicked. I would like it so if the user doesnt click one of the fields within lets say 8 seconds then the box minimizes automatically. Here is what I have: [CODE] <script language="javascript"> function makevisible() { document.getElementById("dropform").style.display="block"; setTimeout("minimize()",4000); } function …

Member Avatar for Designer_101
0
114
Member Avatar for HITMANOF44th

i am having an issuse not sure how to approach this i have setup a area that grabs user's / user data by a search now i dont get the same results when i do lower case and uppser case any ideas ? [code]$query = "SELECT * FROM `users` WHERE …

Member Avatar for varmadba
0
136
Member Avatar for charlie81

I am getting an error saying NumberOperations can't be instantiated. Here is the code. [CODE][LIST=1] [*]public static void main(String[] args) { [*] // TODO Auto-generated method stub [*] // declare variables [*] int num1, num2, sum, diff, product, average, absolute, max, min, adjusted1, adjusted2, adjustedSum; [*] // Display Program Title …

Member Avatar for knowledgelover
0
173
Member Avatar for nitinmukesh

Hi, How can i find the OS name in C++ on which the program is executed. like Windows 2000, Windows XP or Windows Vista? Thanks for any help.

Member Avatar for nitinmukesh
0
297
Member Avatar for functionsys

Greetings to you .. gentleman First thanks for all ... and keep it up i'm using ASP.NET 2008 C#.NET i have controlpanel.aspx page .. this page i don't want from any user not login to see it .. when user login and user name and password is ok then show …

Member Avatar for functionsys
0
128
Member Avatar for pradeepfusion

Hi, Every body, I have one problem that I want to get window logged in user in asp.net, each and every time it is giving ASPNET, I want only window user. I have WindowsIdentity class, HttpRequest.ServerVariables, Environment Variable class. But still giving ASPNET, Plz help me. Thanks

Member Avatar for pradeepfusion
0
196
Member Avatar for kelechi96

I need someone to explain to me this code step by step: [code=cplusplus] /* File config.txt: num = 123 str = hello flt = 12.2 */ #include <iostream> #include <fstream> #include <sstream> #include <string> using namespace std; struct Config { int num; string str; double flt; string myadd; }; void …

Member Avatar for Ancient Dragon
0
141
Member Avatar for k2k

I fixed the StackOverFlowError problem from my last thread.. however, my ActionListener is still not working. if any GUI guru here may point out the issue, it would be great. i think this is something very simple and i miss it. [code] //my ActionListener class import java.sql.*; import javax.swing.*; import …

Member Avatar for k2k
0
115
Member Avatar for JainishP

I am currently writing a simple program that matches a already written program, with certain specifications that are required. For the most part I have written what seems like working code, but I do have problems. Here is the program that I have to make: [URL="http://mavdisk.mnsu.edu/wangj/lab10sol.exe"]Sample[/URL] 1st problem: When the …

Member Avatar for Clockowl
0
156
Member Avatar for meistrizy

Thanks in advance for your help. Ok...the last part of this program is where I am stuck. I am supposed to read data in from a file and sort by gender. But the output is supposed to read department, gender, first, last names, job title and salary -- then to …

Member Avatar for meistrizy
0
215
Member Avatar for julseypart

Hi, i would like to programatically send the user an email of all the files they have backed up + associated file information. My question is how can i send the body in a formated way for example To: userEmail() subject: File Backup Report Body: All users files here e.g. …

Member Avatar for julseypart
0
159
Member Avatar for sweetApple

Does anyone know of any open source libraries that provide a simple grid (2d matrix) structure- for simple game navigation? I am running into a lot of problems with the one I created for my ai project and it would be nice to have something reliable to work with. Thanks!

Member Avatar for ArkM
0
115
Member Avatar for k2k

hi, would someone please point out what is wrong with my ActionListener setup? [code] // in my menu class, parse JScrollPane and JTable to the showTable constructor in the ShowTable Class showTableMItem.addActionListener(new ShowTable(scrollPane, table)); [/code] [code] /* * set local JScrollerPane and JTable to be the JScrollPane and JTable from …

0
77
Member Avatar for konczuras

Hello, I'm new to javascript, and need some help, why the following code refuses to do anything. [CODE]<html> <head> <style type="text/css"> .btn { background:URL("elemer.jpg"); width:200px; height:100px; display:block; } .btn.sfhover, .btn:hover { background-image:none; } </style> <script type="text/javascript"> sfHover = function() { var sfEls = document.getElementById(„btn”); sfEls.onmouseover=function() { this.className+=” sfhover”; sfEls.onmouseout=function() { …

Member Avatar for konczuras
0
166
Member Avatar for thehivetyrant

I'm struggling on how to do this. For example. [code] for i in range (1 ,100): if i % 3 == 2: print i, " mod ", 3, "= 2"[/code] i think i need to understand what this does more. Firstly what does % mean? [B]if i is the square …

Member Avatar for thehivetyrant
0
3K
Member Avatar for bhushanpatil

I have 2 combobox(select) on html page and i want to populate data in second combobox based on data selected in first combobox by user.I am using jsp and ajax for that.I have Ajax code but i dont know how to return data in combobox from server side jsp page.. …

Member Avatar for bhushanpatil
0
403
Member Avatar for neutralfox

Hello friends, Got a new question, can someone explain to me how to put an HTML link in my Java program. Example ... "Click here to visit the developer website". So when someone will click on the link, the web page should automatically open in the browser. I searched on …

Member Avatar for neutralfox
0
105
Member Avatar for FREEZX

Why am i getting a segmentation fault when i try to compile this code? [CODE=c++]#include <iostream> using namespace std; int main() { bool x; string odgovori; cin>>odgovori; int xd[2], rez=0, vkupno=0, odlen=odgovori.length(); xd[1]=1; for(int i=0; i<odlen; i++) { if(odgovori[i]=='O') { if((xd[1]==1)&&(x==false)) { rez=rez+1; x=true; } else{ xd[2]=xd[1]*2; rez=rez+xd[2]; xd[1]=xd[2]; } …

Member Avatar for FREEZX
0
86
Member Avatar for queensrose

Hi guys! I've worked so hard on this really long program. I think I'll just post the relevant subprograms. I hope it's still easy to understand. This is just before the main function. [code] #include <iostream> #include <iomanip> #include <conio.h> #include <string> using namespace std; //function prototypes int cashier(); //generates …

Member Avatar for unbeatable0
0
139
Member Avatar for jesseb07

hello, quick question regarding template classes and pointers. I'm making a linked list kind of container system, and I'm running into trouble with it when I (don't know if the terminology is 100% correct here) declare an instance of it. An example would be best to explain what's happening: I …

Member Avatar for jesseb07
0
6K
Member Avatar for hurbano

i have my program doing what i want it to do untill it gets close to the end. the ouput that is transferred to the word document is not right. i have random charactes appearing before the "Date:". how can i fix this minor problem?? Thanks [code=cplusplus] #include <iostream> #include …

Member Avatar for hurbano
0
168
Member Avatar for smsamrc

i have to do a java program to perform polynomial operations. i can manage those operations part. but i have a problem when storing the terms of the polynomial in to a linked list. for example when it is given polynomial("4 2 5 3 6 0"); // 4x^2+5x^3+6 may be …

Member Avatar for smsamrc
0
2K
Member Avatar for cam875

Is this the best datatype to use for doing calculations for extremely large numbers such as computing pi . Or am I going to need to create my own algorithm for handling extremely large numbers? how does software like superpi handle such a large number, im assuming its all split …

Member Avatar for cam875
0
99
Member Avatar for want_to_code

1. [code] #include<stdio.h> int main() { int function(int); int t=function(1); printf("\tt=%d",t); t=function(2); printf("\tt=%d",t); t=function(3); printf("\tt=%d",t); return 0; } int function (int a) { int t; t = a<<2 + a; return t; } [/code] the output is t=8 t=32 t=96 i am not able to figure out why this is …

Member Avatar for Aia
0
174
Member Avatar for paramu

I have a clarification, with my project I added a dataset ,is having dataset [xsd] file name- DataSet1 and datatable table name -datatable1, also it's having the fields "id,item" with my form I have coding Dim ds As New DataSet1 Dim t As DataTable = ds.Tables.Add("datatable2") t.Columns.Add("id", Type.GetType("System.Int32")) t.Columns.Add("Item", Type.GetType("System.String")) …

Member Avatar for paramu
0
311
Member Avatar for inartistic

Hi, I have a site which lists the basic information of CDs and allows the user to click a link to see detailed information regarding each CD. I've been doing that for a long time by just putting the detailed information in a DIV and using a script to toggle …

Member Avatar for essential
0
123
Member Avatar for ganmo

Hello, I've written couple of overloaded operators in my file containing Set declarations. I want to use these operators within the declaration file. However it seems it isn't used. Instead it uses the standard operators. e.g. i have two overloaded operators say <= and == [code=cpp] bool Set::operator<=(const Set& b) …

Member Avatar for ganmo
0
130
Member Avatar for kcomeby

Hello and first sorry for my very bad english. i have little knowledge about c and c++ but im trying to learn win32 programming with c++. its little hard and im very new at that. im trying to do very very simple thing: i have an main window, 1 button, …

Member Avatar for stephen.id
0
183
Member Avatar for keanan

Hello, I am trying to store a single MYSQL result into a 2 dimensional array, for example I would like to end up with something like this: array[0][0] = result[0] , array[0][1] = result[1] , array[0][2] = result[2] ..... Here is my code: [code] $tempCat = array(); for ($i=0;$i<$numcat;$i++) { …

Member Avatar for keanan
0
164
Member Avatar for Clockowl

Hey guys, I was wondering, with this code: main.cpp [code=cpp] #include <iostream> using namespace std; class car { public: car (float speed) : speed(speed) {} car () : speed(0) {} void cruise(float speed) { this->speed = speed; cout << "New speed: " << getSpeed() << endl; } void brake(float power) …

Member Avatar for stephen.id
1
246
Member Avatar for serkan sendur

hi guys, i have a pocket pc application where i scan some barcodes, i want to stop scanning when i open a new form. do you have any ideas how to stop it?

Member Avatar for Ramy Mahrous
0
171
Member Avatar for killhha

i was wondering if it would be possible to use a timer in pascal. like for instance you have 10 seconds to answer a question. iv been thinking and i cant figure out how to do it. does anyone know how?

Member Avatar for FlamingClaw
0
3K
Member Avatar for fadia

hi guys,, i've this homework that i have to submit tomorrow.. and unluckily I didn't know how to do it.. it says : Write a program that outputs "Al Eid Song" words.. "The five days of Al Eid" Use a [B]switch statement [/B]to display the following output for the 5 …

Member Avatar for karthik.c
0
128
Member Avatar for skhan23

All questions involve this portion of a program: [CODE] if (y>x and y<z)or(y<x and y>z): print("You have entered Condition 1") elif not(x!=y and y!=z): print ("You have entered Condition 2") else: print ("You have entered Condition 3")[/CODE] 1. If x = 10 and y = 10, what is the value …

Member Avatar for adam1122
0
102
Member Avatar for cam875

Im having a problem with the while loop in my code, if I change what X2 is being compared to to anything other than 0 it doesnt hit the while loop, I am hoping its just some weird mistake. Thanks in advance for any help. [CODE] X2 = 0.5; while …

Member Avatar for cam875
0
107
Member Avatar for redmaverick

[CODE]public abstract class CircleShape { public double radius; public CircleShape(){} public CircleShape(double radius) { this.radius=radius; } public void setradius(double radius){ this.radius=radius; } public String toString() { return "radius"+ radius; } abstract String getDisplayText(); } [/CODE] [CODE]public class circle extends CircleShape{ private double area; public double area() { return radius*radius*3.14; } …

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for sciwizeh

Hello all, I'm trying to make a simple text box with SDL, I have loosely based it off of [URL="http://lazyfoo.net/SDL_tutorials/lesson23/index.php"]The Lazy Foo Tutorial on sting input[/URL], but this code doesn't seem to work... [CODE]if(event.type==SDL_MOUSEBUTTONDOWN){ if(isIn(event.button.x,event.button.y)){ hasFocus=true; } else { hasFocus=false; } } if(event.type==SDL_KEYDOWN){ if(hasFocus){ if(event.key.keysym.sym!=SDLK_BACKSPACE){ str+=(char)(event.key.keysym.unicode); } else { if(str.length()!=0){ …

Member Avatar for sciwizeh
0
145
Member Avatar for Akis2000

ok iam working on a password protection for my program but i have a problem..... if the user set wrong password the program do this Wrong password!! The program will be terminated in 5 seconds but i want sec, (which is my seconds) at every second - 1 5-4-3-2-1 without …

Member Avatar for Akis2000
-1
797
Member Avatar for Gonkawan

Greetings people. I've just recently discovered PHP, and have just created my first dynamic PHP-document, which fills a table with data from my SQL db. It works quite well, but what I'd like is to have hyperlinks in one of the three columns (header), pointing towards whatever adress posted from …

Member Avatar for Gonkawan
0
118
Member Avatar for nschessnerd

Is there any way to mix visual c++ with normal c++? like can i enable mixed code? i want to get rid of this error: 1>tab.h(32) : error C4368: cannot define 'p' as a member of managed 'Monitor4vc::tab': mixed types are not supported

Member Avatar for nschessnerd
0
226
Member Avatar for Turyturbo

Hello, This is my first time using forum to ask around for some assistance. I will make it briefly. [code] void main() { char *StringPtr; //pointer of char char String[26]; //array of chars strcpy(String, "abcdefghijklmnopqrstuvxyz"); if((StringPtr = new char[26]) == NULL) cerr << "\n\a allocation failed" << endl; else cout …

Member Avatar for ThundrbltMN
0
245
Member Avatar for abhi_elementx

hi. I have a jlist on a frame. I want to add items dynamically in the list. So, I am using DefaultListModel..Here's my code: [CODE]public class AdminFrame extends javax.swing.JFrame { private Statement S; private ResultSet R; DefaultListModel model = new DefaultListModel(); JList Employee_list = new JList(model); /** Creates new form …

Member Avatar for JamesCherrill
0
76

The End.