64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Fadam360

Hello everyone, I need to make a program for Java that has the user enter in 2 numbers,1-9, then prints a top row and column with those numbers in it, then prints a multiplication table for those numbers. I need to use a for loop or for loops. Ex. 2 …

Member Avatar for muraj
0
169
Member Avatar for VBNick

Hi. I was wondering if someone could offer a bit of advice on this. I have made a web server, and everything seems to be done correctly as far as I can tell. It works and loads web pages just fine. The problem is, that when big files are requested …

Member Avatar for VBNick
0
285
Member Avatar for Peter_morley

Ive pasted the code for actor.cpp, date.cpp and the main function. This is alot of stuff I pasted but I believe it is necessary to show my problem. At first I get the date of the individuals birth and that gets displayed and everything turns out as it should. When …

Member Avatar for Peter_morley
0
152
Member Avatar for jimbennett57

Due to a *quirk* in our domain forest, I need to change how I'm getting a logged on user's group membership. When a user authenticates into this application I need to see if they belong to one of 4 groups. In our test environment I was using: [CODE] ArrayList groups …

0
83
Member Avatar for cmccully

Hi all, I have an AJAX script that pulls a radio group list from PHP. I would like to then read which of those options the user subsequently selects. My AJAX script: [CODE]function showCharacteristics() { xmlhttp1=new XMLHttpRequest(); xmlhttp1.onreadystatechange=function() { if (xmlhttp1.readyState==4 && xmlhttp1.status==200) { document.getElementById("charList").innerHTML=xmlhttp1.responseText; } } xmlhttp1.open("GET","ctrPanelProc.php?selection=getCharacteristics",true); xmlhttp1.send(); }[/CODE] …

Member Avatar for hielo
0
87
Member Avatar for Anon17

At the moment, I have the following to do MySQL queries: [code] MySqlCommand Command = new MySqlCommand(Query, SQLConnection); IAsyncResult Result = Command.BeginExecuteReader(); return Command.EndExecuteReader(Result); [/code] This is a static command in a server in the database class, which includes a static connect/disconnect function (used once when the server starts and …

Member Avatar for Anon17
0
183
Member Avatar for coolboym99

I'm writing up a program for a class I'm taking where I need to make a linked list stack & queue. Right now I'm not quite done, but I'm having problems calling the functions from the .h file. What's happening is in the while loop, I'm trying to get data …

Member Avatar for coolboym99
0
202
Member Avatar for Fadam360

Hello everyone, I need to make a program for Java that has the user enter in 2 numbers,1-9, then prints a top row and column with those numbers in it, then prints a multiplication table for those numbers. I need to use a for loop or for loops. Ex. 2 …

Member Avatar for VernonDozier
0
81
Member Avatar for plasticfood

[CODE]import java.util.Scanner; public class Inti{ public static void main (String [] args){ Scanner kb = new Scanner(System.in); System.out.println("enter name: "); String input = kb.nextLine(); char name1 = input.charAt(0); int blank = input.indexOf(' '+1); char name2 = input.charAt(blank); int lastBlank = input.lastIndexOf(' '+1); char name3 = input.charAt(lastBlank); System.out.println(name1 + "\n" + …

Member Avatar for plasticfood
0
109
Member Avatar for ujjval dave

hi every one, i need your help in php code. my error is for profile page. after implementing lots of php code in this page,my page became auto refresh in every 2secound. i don't know what happend to it. i m attaching my code pls elp me. [CODE] <?php //get …

Member Avatar for ujjval dave
0
173
Member Avatar for Kanoisa

Hi guys, Im working on a small console app to seek out all those pesky and disk consuming .ncb files and debug folders left from VS and destroy them so the space i need to backup the files is considerably reduced. I have got my recusrion algorithm to scan as …

Member Avatar for Kanoisa
0
2K
Member Avatar for mahdi68

Hi how can i read one line from string ??? i have string like this : [QUOTE]hello ; boy ; sun welcome;google;pink[/QUOTE] how can i read first line only ? thanks

Member Avatar for peter_budo
0
125
Member Avatar for |hex

how would i be able to make sure the user inputs the correct data. for example, if i wanted a command in my code to be run (filename). how can i display a message if the user forgets to add the name of the file or the 'filename'. i hope …

Member Avatar for |hex
0
370
Member Avatar for benhowdle89

I'm sure this has been answered many times but its something i've struggled with doing, if i wanted a user login on one page, when, for example "John" logs in he goes to an area that only "John" can see, "Jill" cannot see this area and cant access it by …

Member Avatar for benhowdle89
0
161
Member Avatar for neoraghav

Hi, I want to create a log file that captures all the actions happening...anyway i got code for that from internet. Now what i want to do is, make that [COLOR="Red"][U][B]file read only[/B][/U][/COLOR] so that the data is not modified by external application or user. [code=c++]log(char* msg) { time_t now …

Member Avatar for neoraghav
0
2K
Member Avatar for jbisono

Hi all, i have a little problem here trying to print a crystal report document using the PrintToPrinter method. This process is trigger by the event click in a asp:button control, basically i just saying this. [code=csharp] rpt.PrintOptions.PrinterName = @"PathToPrinter"; rpt.PrintToPrinter(1, false, 0, 0); [/code] this solution works fine if …

Member Avatar for jbisono
0
340
Member Avatar for alexchen

How can I create the map size, [CODE] #include <iostream> #include <fstream> #include<string> using std::ifstream; bool msize(int Height,int Width){ //add code return true; } bool draw_map(char* Filename,int Width,int Height){ if(Width<1||Height<1) return false; msize(Height,Width); ifstream file; file.open(Filename); if(file.is_open()){ while(!file.eof()){ for(int x=0;x<Height;x++){ for(int y=0;y<Width;y++){ if(c!=']'){ file >> map[x][y]; file.get(c); }else map[x][y] = …

Member Avatar for daviddoria
0
174
Member Avatar for kracko

hey ppl. I have many submit buttons in a form. Each of them does its thing in different php pages. But when, for example, 'add' button goes to 'add.php' it does its work but stays there) how to redirect page back? thanks

Member Avatar for kracko
0
198
Member Avatar for samm22

My professor has given me the code and I wanna run it. I use Visual Studio2008. Code contains data structure "queue". He defines one queue as "queue<int> Q;" But my compiler gives an error and says "error C2065: 'queue' : undeclared identifier" Do we need any separate header file to …

Member Avatar for Fbody
0
260
Member Avatar for aska07

Hi All, I am developing a window form where in my form, i have 3 buttons, insert, delete and update, a SAVE menutoolstripbutton and a datagrid to display the data get from database. now I want is for example whenever a user want to insert a new data (click the …

Member Avatar for aska07
0
598
Member Avatar for varun mca

[B]Hello sir.. I want to know that if there is any difference between Parameter and Argument of a function[/B]....?

Member Avatar for creeps
0
120
Member Avatar for Melow

So i had to do the following assignment in GWT: 1.Implement a selection/de-selection component as described below: The selected item in the first list goes into the second list and is removed from the first list when the >> button is pressed. The selected item in the second list goes …

0
162
Member Avatar for TayKaye

I am needing help figuring out how to get this program to function correctly. The program is developed in order for a user to type in any number and it will tell if the number is prime or not. This works, however, I cannot figure out how to get it …

Member Avatar for caut_baia
0
151
Member Avatar for swathys

hi, Does anyone know how to accumulate total in sql.I have made a function to add a amount to sql.i wants the amount which i have add to be accumulated in total column in sql.How do i make it work. please help [CODE] Public Function Update_TotalBalance() As Boolean Dim myConnection …

Member Avatar for swathys
0
118
Member Avatar for mrbungle

My form fields will populate an Excel workbook. No problems there. My question is how do I call it to enter the data into an Excel template I have already created? The location of the template sits in my C drive- C:\DailyLogs\DailyLog.xlsx Here's my code so far: [CODE]# ' Here …

Member Avatar for mrbungle
0
2K
Member Avatar for varun mca

[B]hello sir.. I am not being able to make a program that accepts any number and displays it in words.... for example: when user enter 3456 then output should be three thousand four hundred fifty six.... 12 then print twelve.....9 then print nine...and so on....[/B]

Member Avatar for varun mca
0
93
Member Avatar for Rastabot

Hello, I'm trying to make a program that will multiply 2 matrices using shmget() and fork(). For example, I would need to multiply a 64 x 64 matrix using 4 processes or 16 processes, and the multi-processes will be created using fork. Each process will calculate a partition of the …

Member Avatar for sree_ec
0
1K
Member Avatar for sandawg

First I apologizeif the answer to my question is somewhere in the hundreds of posts listed. I am new to java and basically clueless. I am suppose to pass an array to a method and then sort the array. I get an "illegal start of expression error when attempting to …

Member Avatar for Ashok Agarwal
0
129
Member Avatar for maichy

hi guys thanks for all your help previously,i am having a problem displaying the grand total.this is the scenario: i have several buttons which are used to compute various taxes e.g D1, D2,D3....subtotal i would like when i compute using D1 i get the total displayed,if i press d2 i …

Member Avatar for jhai_salvador
0
148
Member Avatar for gunbuster363

I am studying further about C++ and come across a topic which describe method to avoid multiple inclusion of header file, which may cause compilational problem. But I never seen such problem, I've tried to mimic the situation with the below files in Visual C++ 2008 express, no error prompted …

Member Avatar for gunbuster363
0
1K
Member Avatar for Akilah712

Hi, I am working on a program for one of my courses. The program requires the use of a command line argument. I am using JCreator and as such my code does not work. Is it not possible to run a program with a command line prompt from JCreator? Thanks

Member Avatar for masijade
0
1K
Member Avatar for Wumbate

Hi, I have a UI built in Tkinter. The user can type in some inputs and hit "Run" When the "Run" occurs, a program executes that could take 30 seconds or more! The problem is that this blocks the graphics updating. At the beginning, I set a Label to "Running …

Member Avatar for D33wakar
0
29K
Member Avatar for chun0216

Hello, I am trying to run a program that uses raw file as an input file and then use a function that requires input file data into uint8_t array type argument. The problem is that when I use the sample input raw file, it works perfect but when I use …

Member Avatar for chun0216
0
138
Member Avatar for hsquared

i was able to make an add functin for a binary tree. in my code, i am able to add a string for the name, university and and int value for an id. now, i need help being able to search the binary tree for a specified id, then return …

Member Avatar for chiwawa10
0
103
Member Avatar for bettersaid

helo! can anyone help me in automatically saving files with fixed filename in python? the OUTPUT would be like this: FILE- A01.txt FILE- A02.txt FILE- B01.txt File- B02.txt i was hoping that i could save a file automatically after making some changes in the older version. Thank you, Gene

Member Avatar for bettersaid
0
445
Member Avatar for cguan_77

hi guys, need your help. got this code from this site: [url]http://www.vbdotnetheaven.com/UploadFile/prvn_131971/mailvb11172005000829AM/mailvb.aspx[/url] [code] public static void Send(String from, String to, String subject, String messageText). SmtpMail.Send("mcb@mindcracker.com", "webmaster@mindcracker.com", "Subject", "Message body"). [/code] just need your help guys, what's the equivalent code of this in vb express 2010. Thanks. :)

Member Avatar for cguan_77
0
329
Member Avatar for gingerfish

Hello I have a code here. it generates random 2d array [B]kMean[2][3][/B] and then this program calculates the distance between random generated [B]kMean[2][3][/B]s and [B]data[][][/B]. but the problem is, when the random kMean is 1, then it calculates the distance, but when the number or kMean becomes more than one, …

Member Avatar for gingerfish
0
136
Member Avatar for phaedrusGhost

Hi all, I am implementing a dropdown list that finds people from a "State" and "City". The states and cities are stored in the DB when a user registers. Since there are several times "California" exists in the DB, how can I display "California" in my dropdown list once and …

Member Avatar for P0lT10n
0
115
Member Avatar for Emver

Hey, ive been creating this number guessing game, it works perfectly but I need to add a limit to the amount of turns a user can have. Any help would be greatly appreciated. [CODE]Module Module1 Sub Main() 'This program plays a simple number guessing game. Dim RandNum As Integer Dim …

Member Avatar for crapulency
0
247
Member Avatar for Tekkno

Hello, I have a div (#disclaimer) that has the css property of "display:none." The following jquery script is supposed to show it when the #test select option is clicked. The #quest,#comp,and #other divs are supposed to hide it again. It works fine in FF but does not work in IE. …

Member Avatar for fobos
0
250
Member Avatar for Wootens

Hey guys, I recently wrote this program and it compiles and works but I have two issues that need addressing and I'm a bit confused on how to solve them. Question 1) [CODE]System.out.println("What's your name?"); name = Scan.nextLine(); System.out.println("How old are you?"); age = Scan.nextInt(); [/CODE] I always thought Scan.next …

Member Avatar for Wootens
0
246
Member Avatar for aldm

Hi, I'm working on one sites and having troubles with these: I have tables catecogires and subcategories in database. When user add article, he select categorie from select tag and under that tag appears another select tag with subcategories of selected category. Code in jquery: [CODE] $("#ka").change(function(){ function PostaviPodatke(podaci){ $("#pka1").show(); …

Member Avatar for hielo
0
116
Member Avatar for eduard77

I have an exercise again and I got blocked again. The exercise is: Daphne invests $100 at 10% simple interest. That is, every year, the investment earns 10% of the original investment, or $10 each and every year: interest = 0.10 × original balance At the same time, Cleo invests …

Member Avatar for eduard77
0
233
Member Avatar for emilyhedgecock

Hi I have just written this code (am just starting out with c++ so took a while :s) Works fine.... untill character 2 is created. When the program is run the character 1 is fine and every time the users is asked "Please enter x" they can and it is …

Member Avatar for emilyhedgecock
0
461
Member Avatar for FNHA

I'm writing a deque implementation with ArrayList as required by my instructor. So far the body of the class looks like this [code=java] try { while (!endOfFile) { character = inputFile.readChar(); while (!character.equals('\u0003')) { if (character.equals('\u0008')) deck.removeBack(); else deck.addToBack(character); } } while (!deck.isEmpty()) { character = deck.removeFront(); if (character.equals('\u0003')) System.out.print("\n"); …

Member Avatar for FNHA
0
142
Member Avatar for guru_iyer

I have been told to sort an array of structure(student) depending on one of its members(per) using bubble sort. I need to sort the 'student' structure in descending order of 'per'. Please help. I'm stuck!! [CODE] #include<stdio.h> #include<conio.h> struct student { char sname[20],dept[25]; int rollno; float per; }s[30]; void accept(int …

Member Avatar for guru_iyer
0
936
Member Avatar for dragonflame17

I wrote this program for a class, the only problem is that it returns the anwser for assessmentValue twice. I can't figure out what to do to fix it...please help!! [code=php] def main(): #Get the actual value for the property. actualValue = input ("Enter the actual value of the property:$") …

Member Avatar for TrustyTony
0
108
Member Avatar for Philosophy

First off, I do want to state that I have read the forums and have not found an issue directly regarding this exact problem, though it is possible I may have overlooked it or something and if so please just point me in the right direction and I will leave …

Member Avatar for Philosophy
0
176
Member Avatar for arjen

hello guys.. can u help me in my code that if i change the value of empno all the corresponding data in the empno the empname, empaddress and so on will also change because i can't figure out that when i change the value it will also change all the …

0
76
Member Avatar for chintan@dani

Hello Readers I am trying to create Categorytree.In which i want to display subcategories under its parent category.I got the code to develop category tree that display using <ul><li> but i want to display it in dropdown. How can i do that? For Example Parent1 __Child1-Parent1 __Child2-Parent1 __|__Child1-Child2-Parent1 Parent2 __Child1-Parent2 …

Member Avatar for chintan@dani
0
1K

The End.