199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Lxyslckr

[CODE]import java.util.Scanner; import java.text.DecimalFormat; public class Assignment3 { public static void main(String [] args) { Scanner scan = new Scanner(System.in); String first,last ; int id; //First and last names and ID input System.out.println("Welcome to the Grade Calculator"); System.out.print("Please enter your first name:\t"); first = scan.nextLine(); System.out.print("Please enter your last name:\t"); …

Member Avatar for NormR1
0
135
Member Avatar for burcin erek

distance does not name type mistake even though I suppose that I am right. pls help [CODE]#include <cstdlib> #include <iostream> #include <conio.h> #include <sstream> // struct unit with loop inside.... using namespace std; struct distance { int mt; float cm; }; struct room { distance length; distance width; }; int …

Member Avatar for burcin_erek
0
99
Member Avatar for kracko

Hey ppl. I use apach and i've got a problem that i cant fix when i write this code .. [CODE] <img src="Z:/home/localhost/www/ImageGallery/Images/mmbg3xmx3g.gif" width="100px" height="100px" name="imgPreview" /> [/CODE] no image is shown. Whats wrong? The image surely exists in the specified path. And one more problem with this is that …

Member Avatar for kracko
0
105
Member Avatar for Invecta

Whats wrong with my code? [CODE=c]#include <stdio.h> main() { char x[10]; printf("Enter [True/False] : "); scanf("%s", x); if(x=="true") printf("Great..\n"); else printf("What's wrong?\n"); } [/CODE] result: [CODE]root@invecta:~# gcc -o result if.c root@invecta:~# ./result Enter [True/False] : true What's wrong? root@invecta:~# [/CODE]

Member Avatar for justiceigwe
0
87
Member Avatar for jmcorpse

I think there may be a math error in my program and I may not be seeing it. Is it possible for someone to go over it just to make sure it is ok. I have done everything I could think of to try to fix it, but it is …

Member Avatar for Kanoisa
0
121
Member Avatar for avataralien

I am trying to create a cpp file that will enable user to download the content from a web URL & stored it to a desired html file. I am running on Linux. The program will call GNU wget CLI program to grab the content & stored it to a …

Member Avatar for avataralien
0
189
Member Avatar for freda173

Below is code from an assignment I am working on, the parts in bold are what I have added. What I have to do is add command line argument "-c filename". Basically the code is a hashtable that when -c is used, user will enter a list of words into …

Member Avatar for freda173
0
160
Member Avatar for ManishS

I made a Login and logout page but whenever i login and press backspace i am redirected to the login page .... what to do to prevent it from going to the login page even if i have not pressed logout option

Member Avatar for qazplm114477
0
61
Member Avatar for dawsonz

Hi, I'm trying to create a Web Form in C# - the form has a username and password textbox. The user enters there username and password which I want the program to check if it exists in the SQL database. I'm trying to create a login.cs class and then run …

Member Avatar for dimastea
0
368
Member Avatar for arjen

hello guys can u help me with this my code [CODE] Dim myFile As String = "C:\report.html" Dim stream As New IO.FileStream(myFile, IO.FileMode.Create) Dim writer As New IO.StreamWriter(stream) writer.WriteLine() writer.WriteLine("" & TextBox8.Text) writer.WriteLine("" & DateTimePicker1.Text) writer.WriteLine() writer.WriteLine() writer.WriteLine("Customer Name | Cost | Number of hours | Time Start | Time …

Member Avatar for GeekByChoiCe
0
250
Member Avatar for silvertooth07

i'm having problems with the edit function on my program. when i enter something, it crashes. it prints out "File not found" endlessly. [code] #include<iostream.h> #include<fstream.h> #include<conio.h> void info() { cout << " **********************************************" << endl; cout << " * Case Study - 2 *" << endl; cout << " …

Member Avatar for silvertooth07
0
142
Member Avatar for olivebibi

Good evening, I'm trying to generate an xml file based upon the result of an SQL query. I'm making some good progress so far but there is 2 problems I can seem to solve. My php code is the following: [CODE]<?php require ("Connection.php"); $db_handle = mysql_connect($server, $user_name, $password); //load the …

Member Avatar for P0lT10n
0
256
Member Avatar for jackparsana

HI, pls help me in this.. How to import Excel Sheet data into SQL Server 2008.? i use Excel 2010. SQL Server 2008. how to import data? thanks in advance. jack

Member Avatar for Bruce100
0
243
Member Avatar for jonow

Hello. To start off I am pretty bad at MySQL and PHP. I want to set something up that people can enter their cell phone numbers and it would be added to a server. Then I could go and send a message out to all of these numbers. I want …

Member Avatar for Bruce100
0
108
Member Avatar for sutanu_halder
Member Avatar for deepak_1706

I've just started programming in c#, its a simple Forms application with single form. I have a class written in a separate .cs file in its own namespace. The rest of the code is in the Form1.cs file. I am able to create an instance of the my class and …

Member Avatar for deepak_1706
0
685
Member Avatar for JasonQiao

Could anyone instruct me about the Python code for magic square 3*3, I got some instructions but still made no dent in program. Could anybody send me the code? O(∩_∩)O Thanks! here's the instrctions: magic3 # In recreational mathematics, a magic square of order n # is an arrangement of …

Member Avatar for Gribouillis
0
94
Member Avatar for anam_nazir

hello to all i m student of software engineering. i m making my semester project on hotel room reservation i want to get all records from ms acess in data grid.. plz help me... thankx

Member Avatar for pragashny
0
120
Member Avatar for raul8

I want to call a jsp form my PHP code. I caqme across that it can be done using XML-RPC. Is it possible & where I can find any tutorials for this? Thank You

Member Avatar for P0lT10n
0
86
Member Avatar for pixelss

I'm very new to programing, anyways, i was instructed to crate a program to calculate the are of rectangle, using the input from the user ( width, lenght ) using functions here is what i have, but i'm getting a error at the end [CODE] recWidth = input ('Please enter …

Member Avatar for pixelss
0
83
Member Avatar for bStiffler582

I don't fully understand how to modify the datapaths/control signals to account for instructions. I have to make the single-cycle datapath able to do the instructions: jr lui addi bne I've been starting at this thing for an hour or so and haven't made much progress. With the jr instruction, …

Member Avatar for LibraTaimur
0
158
Member Avatar for RobotFX

Hi! I'm looking for a way to search and replace certain strings in a database table I have. Those are the commands I execute now from within phpmyadmin: [CODE]UPDATE `feeds` SET `title` = REPLACE(`title`,"ă","a") UPDATE `feeds` SET `title` = REPLACE(`title`,"î","i") UPDATE `feeds` SET `title` = REPLACE(`title`,"ÅŸ","s") UPDATE `feeds` SET `title` …

Member Avatar for RobotFX
0
2K
Member Avatar for sky_B

I don't know what is wrong with my code here, the if conditions there never run true.[CODE] String words [] = new String[10];{ //Store the word string words[1] = "apple"; words[2] = "ice cream";} String searchData = ""; JTextField mySearchArea = new JTextField(7); public void init() { setLayout(new FlowLayout(FlowLayout.RIGHT,10,10); add(mySearchArea); …

Member Avatar for sky_B
0
121
Member Avatar for junjun61991

[COLOR="Green"]Function booklvwRec(str As String) Dim rs As New ADODB.Recordset catlvw.ListItems.Clear rs.Open str, connect, 2, 3[/COLOR] [COLOR="Red"](this section has an error, what is the error in this section) and the error state that: "[B][U]the connection cannot be used to perform this operation. it is either closed or invalid in this connection[/U][/B]"[/COLOR] …

Member Avatar for kinwang2009
0
58
Member Avatar for piso_mojado

Hi, I am new to the world of assembly and am trying to understand the flags and interpretation between an asm file and my cpp code. I basically have an asm function called by cpp file that runs a divide routine and am dereferencing to return parameter value for pointer: …

0
121
Member Avatar for Rated X

I am working on a assignment in PHP but cannot get my results to show up now on a separate page, or at all. After adding in my IF statements, everything stopped working but I am not getting an error message. Any help would be appreciated. I have supplied all …

Member Avatar for Rated X
0
104
Member Avatar for sixdegreesunder

Hi everyone, I m running program but got stuck in after if/else if statements, Jpane doesnt show anything.I couldnt figure out. Thanks [CODE]public class FancyGuessingGame { public static void main(String[] args) { Scanner console = new Scanner(System.in); int guess; int num; String name; String Guess; name = JOptionPane.showInputDialog(null, "Please enter …

Member Avatar for NormR1
0
146
Member Avatar for kkjava

HI All, can any one help me how to convert customize date formats like these below "JAN FY2010" "Q1 FY2010" [CODE]DateFormat df = new SimpleDateFormat("?")[/CODE] as i couldnt find any matching date formats to these. Appreciate your help!!!!!

Member Avatar for NormR1
0
164
Member Avatar for Delphi10

Delphi has been always a preferred technology to develop desktop based applications, but now we can develop browser based application using Delphi component. Benefits: Transition to browser based easily using Delphi coding Easy debugging Ajax Techniques Full cross-browser applications We can host it on Apache If you are you looking …

Member Avatar for Wolfgan
0
225
Member Avatar for plasticfood

[CODE]public static int totalCorrect(String [] studentArray, String [] ansArray){ int numCorrect = 0; for (int i = 0; i < 6; i++){ if (studentArray[i] == ansArray[i]) numCorrect += 1; } return numCorrect; } [/CODE] instead of returning the actual number, it always return 0. here is the whole program: [CODE]import …

Member Avatar for plasticfood
0
131
Member Avatar for y2kshane
Member Avatar for cortez716

I'm trying to write a function called (sumTo) that takes as [B][U]arguments two integers[/U][/B]. My function should use a loop to sum all of the numbers between the two (This includes the starting and ending numbers) and return the sum. I want the function to allow for either argument to …

Member Avatar for cortez716
0
186
Member Avatar for OneRunner

So, first off lemme explain what a substitution code is in case you don't know. In cryptography, it's a system by which one letter is replaced with another predetermined letter. For example, if "I" turns to "E", and "F" turns to "V", the word "If" would be written as "Ev". …

Member Avatar for OneRunner
0
175
Member Avatar for ekailan

I am trying to convert char to wchar , but its not working !!the else case always executed in this code [CODE] char p[500]; while(getline(inFile1, line)) { //we read p from file that contain only one word "why"............for testing strcpy_s(p, 500, line.c_str()); string search = p; const size_t newsize = …

Member Avatar for ekailan
0
280
Member Avatar for vello

[CODE]#include <iostream> #include <fstream> using namespace std; char a[11][11]; bool free(int x, int y) { if (x < 1 && x > 10) { return false; } if (y < 1 && y > 10) { return false; } for (int i = -1; i < 1; i++) { for …

Member Avatar for Lerner
0
206
Member Avatar for Duece_68

Hey can anyone explain the following code to me [CODE = C++] #define SQUARED(x) {x * x} int main() { int i = SQUARED(3 + 2); return 0; } [/CODE] Why does 'i' in the above code = 11 and not 25????

Member Avatar for arkoenig
0
151
Member Avatar for zyaday

Hi everyone, I'm trying to write this code. Whenever a user types a letter that matches what is already displayed, it should clean up the list box..the problem here is it is not detecting the keyDown event. What is wrong? Thanks for the help. [CODE]namespace TypingGame { public partial class …

Member Avatar for Momerath
0
124
Member Avatar for TahoeSands

For several weeks, I have been trying to wrap my brain around the concept of the paint(Graphics g) method. I have a pretty good idea how it works, but I am still struggling with the "practical" application of the paint method with respect to OOP. I can write small apps …

Member Avatar for TahoeSands
0
172
Member Avatar for NewOrder

[CODE] public class InnerEx7 { public static void main(String[] args) { Foo foo=new Foo(); Foo foo2=foo.stam(55); foo2.print(); } } class Foo{ String word="bye"; void print(){} // what does this fucntion do. why do i need it if it is empty public Foo stam(final int x){ final int y=10; class Inner …

Member Avatar for NewOrder
0
115
Member Avatar for Premsathishbe

i am getting the error as "Can't move focus to the control because it is incisible, not enabled , or a type that does not accept the focus" ,when i am trying open the login page plz help to give suggestions to solve this problem. and my scipt is [CODE]function …

Member Avatar for Taywin
0
102
Member Avatar for kobi

hello, I have this button element which i can recognize only through his xptah FORM[1]/TABLE[1]/TBODY[1]/TR[1]/TD[2]/TABLE[5]/TBODY[1]/TR[1]/TD[1]/A[1]/IMG[1] how can preform a click runing a java script Thanks Kobi

Member Avatar for Taywin
0
144
Member Avatar for niche1

This works: $result = mysql_query("SELECT * FROM plan WHERE begin BETWEEN '2010-09-01' AND '2010-09-30'") or die(mysql_error()); I need some version of this to work where begin and end are currently timestamped columns in my table: $result = mysql_query("SELECT * FROM plan WHERE date("Y-m-d") BETWEEN begin AND end") or die(mysql_error()); What's …

Member Avatar for niche1
0
88
Member Avatar for helpfullProgram

Hello everybody! This is an amazing place you have built up here and I have never ceased to be amazed by the knowledge available... I have just one question which might seem quite easy to the right person so here goes. I am working with the console in C++ so …

Member Avatar for SgtMe
0
198
Member Avatar for neil_mahaseth

Is there any difference between a sorted link list and an ordered link list? If there is any difference please show it by giving an example. Thanks

Member Avatar for Narue
0
201
Member Avatar for bhavesh561988

how to know idle user without refresing page using ajax plz give me solution and i also change the icon when user is idle like a facebook if our friend is online then its icon is green but when he is idle its icon r changed without reloading page ...give …

Member Avatar for Brillig
0
63
Member Avatar for dan_ord

Hi all, I'm currently working on a holidays database where i need to retrieve the latest offers and display them. I've managed to get that working fine. However what i want to be able to do is kinda like a SELECT DISTINCT to only show 1 destination, and have the …

Member Avatar for Brillig
0
163
Member Avatar for NotSneaky

I need help with my sort. it will sort first name but when it gets to last name and DOB it wont. Please help me I tried bubble sort and it didnt work. I would like to use bubble sort. import javax.swing.*; import java.util.Scanner; /** * @(#)program 2.java * * …

Member Avatar for Ezzaral
0
104
Member Avatar for teedoff

Hi ok I have a table: "rlbTerms" that contains basically a list of terms and their definitions. I create a page with a query that returns all the terms and definitions in a table layout and are order by terms ASC. What I want is a way to create anchor …

Member Avatar for teedoff
0
103
Member Avatar for kandyhyatt

I'm having a hard time figuring out what i'm doing wrong. Can someone help ? this is the question : In the game of Craps, a "Pass Line" bet proceeds as follows. Using two six-sided dice, the first roll of the dice in a craps round is called the "Come …

Member Avatar for Ezzaral
0
107
Member Avatar for dwdata

I have the need for a FUNCTION: Transpose($Song, $direction) The logic I need is pretty straight forward, but I am having a hard time replicating it using PHP functions. I will try to break it down to it's simplest form: I have a field that has several lines of text. …

Member Avatar for diafol
0
222

The End.