199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for abshah

Hi, I am facing a bit of issue in writing a network software. When I try to send or receive a struct that contains a data type of 8 bytes the next sent or received struct is somehow affected. I have a few things in mind but first I wanted …

Member Avatar for abshah
0
481
Member Avatar for AngelSword

Hi guys I have some questions about this code: This is a contact form “template”, but I’m totally nob on this matter and I want to know how I can activate the button of send to send all the info to my email address and also how can I change …

Member Avatar for pritaeas
0
160
Member Avatar for Jessurider

i've created a project .....in which on executing the h.java the second window3.java appears slowly as you can see that by running the below source code.............but the problem is that the second form i.e window3.java on displaying does'nt shows the noire look and feel environment as well as no noire …

Member Avatar for masijade
0
334
Member Avatar for ssreevidya.m

Hai , I have 2 tables 1. [B]Transport_Details[/B] having columns user_id FareStageId StartDate EndDate and 2. [B]Route_Fee[/B] having columns FareStageId monthId fees I need to get a monthwise list by passing monthid. My problem is that , if start date and enddate of a user are 02-08-2011 and 20-02-2012 and …

Member Avatar for urtrivedi
0
208
Member Avatar for FBG

Hi everyone, I'm a beginner in working with PHP and I'm stuck with an annoying problem. With the help of a tutorial I've made a pagination for database results that works great. Now I'm trying to adapt the code and use the same pagination for a search-page on my website, …

Member Avatar for FBG
0
2K
Member Avatar for thijscream

hi, i just figured out how to write to a csv file form a textbox, i have the following code: [code] private void BtnOpslaan_Click(object sender, EventArgs e) { string[] lines = { textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text}; System.IO.File.WriteAllLines(@"C:\output.csv", lines); } [/code] but i was wondering how i can write to the …

Member Avatar for GuggiTanvi
0
211
Member Avatar for TrustyTony

This is my code for anagrams not utilizing the ready prepared file of anagram synonyms to celebrate 11.11.11 11:11:11. If you start program it warns you about missing subdirectory dict and creates it. You may put any word files, one word per line, to file <dictionary name>.txt. Program lists available …

0
2K
Member Avatar for Hersch

Hey. I am fairly new to VB.NET so I research alot when I run into bugs. Problem is I cannot find a solution to this, or anything remotely dealing with it. I am developing software to connect to a remote mysql server, run a query, and come back with a …

0
142
Member Avatar for varoluscu_prens

Hi There; I have a problem during connection to a MS-SQL server. I copy the code there: [url]http://www.webcheatsheet.com/PHP/connect_mssql_database.php[/url] [CODE] <?php $myServer = "localhost"; $myUser = "Murat"; $myDB = "examples"; //Point 1 //connection to the database $dbhandle = mssql_connect($myServer, $myUser) or die("Couldn't connect to SQL Server on $myServer"); //Point 2 //select …

Member Avatar for varoluscu_prens
0
299
Member Avatar for andy106

Hi i have a foreach loop, but it is just showing everything in one long line, so I wanted to put it in a table like this <table> <tr> <td>data1</td> <td>data2</td> <td>data3</td> </tr> <tr> <td>data4</td> <td>data5</td> <td>data5</td> </tr> </table> here is my loop: [CODE]<?php foreach( $products as $product ) { …

Member Avatar for pritaeas
0
1K
Member Avatar for Ruchi224

Hello !! I have a windows form having combobox and textbox controls.. I have to generate a part number, consisting of combobox and textbox values included.. I can explain in detail.. This is the code i have used to define a variable "type".. [CODE] If ComboBox1.SelectedIndex = 0 Then type …

Member Avatar for Ruchi224
0
138
Member Avatar for mankamat
Member Avatar for crapped

Im a beginner.. What i want to do is converting user textbox input into Float value. Okay to the point ----- [QUOTE]I have textbox with 3 inputlimit I want if user input '200' itll give result to 2.00 (floatvalue), and if user input '12.3' the result will be 0.123 (floatvalue) …

Member Avatar for pritaeas
0
194
Member Avatar for jhamill

So i made a face using several ovals, a arc, and a polyline in the graphics class. I want to be able to change the size of the face based on the number input into the JTextField. Right now the value for the textfield is the variable "size" in the …

Member Avatar for mKorbel
0
1K
Member Avatar for veledrom

Hi, I insert into database with Submit button in same page. After clicking submit, i want whole page to be refreshed. How can i do it? Code is below and where can i add something to refresh after insert. Thanks [code] <form name="form1" method="post" action=""> ..... <input type="submit" name="Submit" value="Add" …

Member Avatar for tarun305
0
207
Member Avatar for nchy13

i don't know why but my compiler reads only upto insert statement. this is what compiler looks like: [B]nchy@ubuntu:~/Desktop$ g++ tree.cpp nchy@ubuntu:~/Desktop$ ./a.out 2 insert 0 14 10 85 15 70 20 60 30 50 65 80 90 40 5 55[/B] [COLOR="Red"]i want to implement following input format[/COLOR] 2 insert …

Member Avatar for jmichae3
0
120
Member Avatar for 1stoptutorials

Hey Everyone, hope all good. i have a problem with some php that is not randomly selecting an ip. I will try to explain my problem below. I have a state form [CODE] <select name="State"> <option value="0" selected="selected">Select a State</option> <option value="AL">Alabama</option> <option value="AK">Alaska</option> <option value="AZ">Arizona</option> <option value="AR">Arkansas</option> etc..... </select>[/CODE] …

Member Avatar for samueal
0
376
Member Avatar for squall730

I have a homework assignment where I'm supposed to use pass by references. I'm reading my text and don't really get it. The assignment is to create a program that converts Fahrenheit to Celsius and vise versa. It's also supposed to contain a print function that will output the results …

Member Avatar for selina12
0
330
Member Avatar for charleneok

Anyone know how to do this question? Use recursion to implement the following recurrence relation f(x): f(x)=1 where =1 f(x) = f((x+1)/2) +1 where x is odd f(x) = f(x/2) +1 where x is even This is what i did: [CODE]#include<stdio.h> int func (int x) int main() { int x; …

Member Avatar for selina12
0
206
Member Avatar for furlanut

i posted on this earlier and with forum help get my function code to work as I want when I test it. But when I insert it into the php document I only get errors. The function is: [CODE] <?php function fix_it($name) { $name=ucwords(strtolower($name)); echo $name; } ?>[/CODE] The document …

Member Avatar for Stefano Mtangoo
0
149
Member Avatar for shahiduop

hi i display images from database, i want that there should be at most 4 photos in each row,when the number photos exceeds 4, it should displays the remaining images in next rows, the code i have written displays all images in the same row, i don't know how to …

Member Avatar for andy106
0
951
Member Avatar for RobotFX

Hi I'll get straight to the point. I'm using this code [CODE] $sex = @$_GET['v'] ; $sex= trim($sex); //trim whitespace from the stored variable $sex = htmlentities($sex); $age= @$_GET['age'] ; $age = trim($age); //trim whitespace from the stored variable $age = htmlentities($age);[/CODE] ... to get the age and sex credentials …

Member Avatar for Sorcher
0
252
Member Avatar for gary91
Member Avatar for showman13

Hi All, I know this sounds like a simple issue, and it may in fact be, but I have never figured out how to give the admin of a website an easy to use ability to enter the body of an email that they want to send to their members. …

Member Avatar for showman13
0
101
Member Avatar for ananth3125

here in the below coding i cant able to view the (.rtf) and (.doc) files so kindly guide me with below coding [CODE] Imports System.IO Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Using fold As New OpenFileDialog fold.Filter = "document files (*.doc)|*.doc …

Member Avatar for Pgmer
0
330
Member Avatar for ibthevivin

//This program will prompt for user to enter in the Fahrenheit temperature and convert it to Celsius. import java.util.Scanner; public class Project4 { public static void main (String[]args) { double temperature; double celsius; Scanner scan = new Scanner (System.in); System.out.println("Enter the current temperature in Fahrenheit: "); temperature = scan.nextDouble(); celsius …

Member Avatar for niranga
0
236
Member Avatar for garyrichard

I want to create a dynamic drop down list box in which Locality is loaded on page load then Depending upon selected Locality... Sub locality , Ward will be Loaded... .. I done it by using form with 'get' method.. but I want to done it using post method.. so …

Member Avatar for decade
0
750
Member Avatar for rickymohanty

i am new to Python. And I am trying to make a drop down menu which will have some options (eg 4 options). I also need a Ok button in the same window. The user needs to select an option and click on "Ok". I need only single selection. When …

Member Avatar for Stefano Mtangoo
0
29K
Member Avatar for ladybug21

//I have this running but when the user inputs a different character than the program just out puts the error //message and that its. I want it to go back and ask the user if they would like to run the program again. Any //ideas? Thank you! [CODE]int main () …

Member Avatar for mzimmers
0
266
Member Avatar for express690

I'm having trouble writing an array program that deletes duplicate numbers in an array. I can't figure out the code for find the array size. I have the array max set to 25 but my array doesn't have 25 numbers in it. (let's say it only has 10 numbers in …

Member Avatar for WaltP
0
356
Member Avatar for phorce

Hello I'm trying to display the memory location(s) of an array of pointers. It works, but it prints the memory locations out as: e.g. [code] (0x7fff672e19a0) [/code] I know that is the memory location, but in other examples, I've seen it being displayed as [code] 4041 [/code] Here is the …

Member Avatar for L7Sqr
0
126
Member Avatar for lbgladson

I have the following program written where Square extends Rectangle. I cannot figure out how to get the correct display for the x and y coordinates. It should display Expected: Square[x=5, y=5, width=30, height=30] but instead it displays Square[x=10,y=20,width=30,height=30]. [code] import java.awt.Rectangle; public class Square extends Rectangle { private int …

Member Avatar for niranga
0
117
Member Avatar for spoyer62

public class SimplifiedMath { public double max (double first, double second) { if ( 58 > 100) { return first; } else { return second; } } public double min (double first, double second) { if (35 < 13) { return first; } else { return second; } } public …

Member Avatar for niranga
0
108
Member Avatar for triumphost

Hey guys I'm here again with another problem. I want to search in a string for a string with quotes in it. Example: [CODE]String to search = {' </a></div></div></div><div class="clearfix"><table cellspacing="0" class="wsod_quoteData"><tr><td class="wsod_last wsod_lastIndex" nowrap="nowrap" '} What to search for = {' <table cellspacing="0" class="wsod_quoteData"> '} Then if found, from …

Member Avatar for triumphost
0
173
Member Avatar for gnomelook

Help!! How to print this using loop & condition starements... 0 1 1 1 1 -1 0 1 1 1 -1 -1 0 1 1 -1 -1 -1 0 1 -1 -1 -1 -1 0 help pls..asap...

Member Avatar for gnomelook
0
136
Member Avatar for crownedzero

Using strings [CODE] #include <iostream> #include <string> using namespace std; string replaceSubstring(string, string, string); int main() { string string1 = "the dog jumped over the fence", string2 = "the", string3 = "that", newString; cout << "This program will replace a keyword in a sentence with another word.\n\n\n"; cout << "Our …

Member Avatar for mzimmers
0
2K
Member Avatar for Firzin

So I have question regarding a program I need to write. I need to read a text file which consists of a location and the coordinates of it's longitude and latitude. The program should be able to read any amount of spaces and tabs in between the tokens. So it …

Member Avatar for mzimmers
0
190
Member Avatar for Mirfath

hi! i have a form to enter data i want to put validations in the text boxes and prompt the user if he/she enters the wrong data i want to put validations for phone number Date of birth email i tried using regex but it says that i am missing …

Member Avatar for Mirfath
0
138
Member Avatar for ibpet11

Code Warriors, I need to set a value in my SQL database as (1 or 0 ) (true or false) so that when i click a button to insert into the database the column register 1 and when i click the button delete the column register 0. do any warrior …

Member Avatar for buddylee17
0
90
Member Avatar for ananth3125

here is the coding for creating a table with book name, author name, isbn , tile etc,........ in the below coding i need the insert , retrieve, and update coding as vb.net coding [CODE] DataGridView1.ColumnCount = 4 DataGridView1.ColumnHeadersVisible = True Dim colhdrstyle As New DataGridViewCellStyle DataGridView1.ColumnHeadersDefaultCellStyle = colhdrstyle DataGridView1.Columns(0).Name = …

Member Avatar for Phasma
0
299
Member Avatar for unmatchedz

hey ppl Trying to get this code working for this gui cube game It is an assignment so i'm being honest, I have know idea on how to get the tkinker function to work. have searched the internet but still having problems in getting it too work. I have tried …

Member Avatar for unmatchedz
0
212
Member Avatar for phorce

Hello, I am working on a script that reads each individual character from a txt file and then outputs it depending on whether it's in the alphabet or not.. The problem is, it won't output spaces or anything apart from the string.. e.g. The text file reads: [code] Hello, my …

Member Avatar for Red Goose
0
108
Member Avatar for angeriel1

the program runs but fails to read the double word states (e.g New Jersey). am getting the error.java.lang.NumberFormatException: For input string: "Hampshire" [CODE] import java.text.DecimalFormat; import java.util.*; import java.io.*; import java.lang.reflect.Array; import java.nio.CharBuffer; import java.awt.*; //import java.awt.event.*; import javax.lang.model.type.ArrayType; import javax.swing.*; import javax.swing.event.*; public class PJ5 extends JFrame implements ListSelectionListener …

Member Avatar for hfx642
0
223
Member Avatar for Start4me

Hello everyone! I need to make a simple yet cool program for my professor. The program is this: To get the program to work, the user first presses a button on the form. Then, when the user presses an up arrow on the keyboard, the cursor will change to a …

Member Avatar for Reverend Jim
0
479
Member Avatar for maynardjk13

Hi! I'm almost done with this program, but I have a problem: Whenever it displays the prime numbers, it throws in non prime numbers that are odd (like 9 and 15) Here is the code so far. [CODE] /* File: isprime.cpp Created by: Ricardo Renta Creation Date: 11/8/11 Synopsis: This …

Member Avatar for mrnutty
0
252
Member Avatar for DaniwebOS

Hello everyone, I think I need a second eye on the code. I'm not sure where I went wrong but it was working at some point. Everything should run without a problem any idea what is going on? A second opinion would be highly appreciated... [ICODE]import java.util.Calender; import java.util.GregorianCalendar; public …

Member Avatar for DaniwebOS
0
212
Member Avatar for lxXTaCoXxl

I need some help with networking information. I've figured out most of the simple stuff and made it simpler still with an application extension, however there are a few things that still confuse me. With sockets it "appears" as though I have the ability to send information such as text …

Member Avatar for lxXTaCoXxl
0
153
Member Avatar for pkrdimos

Hi all, As the title says, I have to create a C++ program (for my thesis) that will solve all the motion equations and have a graphic of the moving engine system. I've done all the "heavy" lifting but I am stuck on the graphics part as I haven't work …

Member Avatar for mrnutty
0
204
Member Avatar for libathos

Is there a way i can modify the Bresenham circle algorythm in a way so that it actually draws arcs with specified start and end angle instead of complete circles? the algorythm in c is like this [CODE]void DrawCircle(int xM,int yM,int radius) { int f = 1 - radius; int …

Member Avatar for Adak
0
194
Member Avatar for BWall

How are you guys doing today? I'm having a hard time with my CS project. I have to write a hangman python code but it is kinda different from what I've seen around. I'll post my code and then explain what I am having trouble with: [CODE]from hangman_support import * …

Member Avatar for woooee
0
181

The End.