64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ben25x

Hello, I've been having a lot of trouble with a variable type called "float64". I'm trying to create a do{}while loop to make the number count up each time. data is also defined as an array. [CODE]float64 data[1]; int i; do{ for(i=0;i<1;i++) { data[i]=data[i]+.01; if(data[i]>9.99) data[i]=-9.99; } }while('0'=='0');[/CODE] Any guidance …

Member Avatar for ben25x
0
129
Member Avatar for CoderNH

I am new to Vb.net so I will need some handholding. I have been searching everywhere but can't find what I need. I'm creating an app that has two forms. Each form has two comboboxes. The comboboxes are populated via a list and the list is populated by reading a …

Member Avatar for Unhnd_Exception
0
229
Member Avatar for naz1234

Hello there,ihave given the assigment to make the c program to print the asterisks to represent the grades.. My question is , why the asteriks does not appear ? I think i got problem at the looping for asterisk.. actually my output should be like this : the graph such …

Member Avatar for naz1234
0
173
Member Avatar for IceyRed

Hello everyone, I'm trying to get some text via a C# console app from a web page. The text I'm trying to get is the current players from our Battlefield 3 server we are renting. The url is: [url]http://battlelog.battlefield.com/bf3/servers/show/bcc85e8a-c2fd-41a4-98f4-21548297a9b1/[/url] Obvious, the text I need is this: [url]http://prntscr.com/4qbiz[/url] I have some …

Member Avatar for IceyRed
0
190
Member Avatar for DavidKroukamp

For now the code isn't to complex. Built in Netbeans 7 java 6.... just the basis for now but its very safe connection so thought i'd post it for anyone who needs it. A quit command may be sent to any client by specifying its ID and then press enter …

0
433
Member Avatar for M.Waqas Aslam

Hello Every One ! i was using my code [CODE]textbox1.bgcolor = ___colorname___[/CODE] on the gotfoucs event of my textbox , but if i have 34 textboxes then i have to write this line 34 times , which cost lots of time , can any one help me to make any …

Member Avatar for Reverend Jim
0
199
Member Avatar for The 42nd

Hello. The title pretty much says it all. I would like to know if and how you can print a number (type is double) with the same amount of decimal spaces as the one you entered. If I enter 12.34 I would like the output to be 12.34 and not …

Member Avatar for Narue
0
243
Member Avatar for Stickie

Hi, My name is stefan and I've been trying to develop a php/mysql based CRM for private use. I've stumbled upon a problem a few days ago and I just can't figure it out, so if you could help me, I'd really appreciate it. The problem is the following: I …

Member Avatar for PsychicTide
0
185
Member Avatar for dancks

I have a larger program that I want to write, but I can't complete it unless I get this down. I have an array, need to put in a string value to be read out. the program generates characters of data at a time, not as a whole string so …

Member Avatar for dancks
0
171
Member Avatar for Goshutu

Hi, i am doing a multiple-file project and i come across a difficult obstacles. I want your help, DaniWeb readers on this problem, which i find very strange: [CODE] #include "stdafx.h"//i have included vector header here #include "globals.h" #include "functions.h" using namespace std; #ifndef CPIECE #define CPIECE class CPiece { …

Member Avatar for Goshutu
0
347
Member Avatar for libathos

I'm using a JFreeChart which I found in this link [ICODE]http://www.java2s.com/Code/Java/Chart/JFreeChartCategoryStepChartDemo.htm[/ICODE] I have modified the code as given below.My problem is how i can change the values in the x-axis so that they don't start from the zero. [CODE]public class Chart1 extends JPanel { /** * */ private static final …

Member Avatar for libathos
0
231
Member Avatar for Swirly

I am running into a problem in a card dealing program. When the Deck Constructor tries to run one of the methods associated with the Applet class, the program will fail with an error set typical to running an application as an applet. This is a school project, and the …

Member Avatar for NormR1
0
212
Member Avatar for pseudorandom21

I've been trying to make a reliable IRC client for a while now, and I know very little about sockets. I have read the RFC quite a bit, but programmatically responding when appropriate, and detecting errors still boggles me. How is the program to know the server will send three …

Member Avatar for pseudorandom21
0
155
Member Avatar for PF2G

Hi, WebForums I'm doing a login system, and it's working, but i'm having difficults in understand where does the "logout" go, other thing is that i want to improve the validation system - if someone could give me some tips. Here are the codes i'm using login form, "index.php": [CODE] …

Member Avatar for phorce
0
326
Member Avatar for hszforu

I want to create text files(empty) depending upon the user input, suppose if the user enter 20 , then it should create 1.txt,2.txt to 20.txt Assuming i want to create 2o files, then i wrote the foll code: [CODE] for i in range(20) filename="i.txt" fp=open('filename','w') fp.close() [/CODE] but i know …

Member Avatar for TrustyTony
0
173
Member Avatar for jackmaverick1

The error I'm getting makes NO sense seeing as I'm defining the functions it's confused about directly above. The error: undefined reference to `accMan()' undefined reference to `bookMan()' undefined reference to `lend()' undefined reference to `getBack()' undefined reference to `tellMenu()' undefined reference to `tellMenuAcc()' undefined reference to `tellAllBooks()' undefined reference …

Member Avatar for jackmaverick1
0
144
Member Avatar for smurfy

Hi, In Visual Studio CLI. I have randomly generated numbers which are a,b,c,d . One by one they are meaningless . Together they create a color code for different products. For example : id | a | b | c | d | i | 1 | 1 | 5 …

Member Avatar for nina@cika
0
351
Member Avatar for iamthesgt

In going through some homework, I was able to do some of the problems, but not others. For example, one problem was "Produce a list of employee last name, first name, job function, department name and department location. Use appropriate, user friendly column aliases." I finished this with this code: …

Member Avatar for iamthesgt
0
213
Member Avatar for pythonstudent11

As promised, here is my final project in my Python programming course. I got the solution all by myself, although, feel free to make any changes you see fit, I've already turned it in. [quote]For this assignment you are to develop a Python program based on the scenario and following …

Member Avatar for pythonstudent11
0
428
Member Avatar for bibiki

Hey there, I am building a small database app where I allow users to input and retrieve information in and out of database. As part of my application I have this table courses and a java file Course.java that models a Course object. My Course objects have field variables courseID, …

Member Avatar for JamesCherrill
0
115
Member Avatar for moonL!ght

i am reading from file the file is in this format 4 L 100 20 30 200 R 30 20 50 100 O 20 100 100 40 L 30 50 100 100 I'm using string tokenizer now the 4 specifies how many lines I'll have When I read only the …

Member Avatar for JamesCherrill
0
129
Member Avatar for bisiii

Hello mates! I have one problem with Math Utility Test for PrimeNumber case. The code is: [CODE]public bool IsPrimeNumber(int n) { int i = 0, num = 0; while (i <= n) { if ((n % i) == 0) num = num + 1; i = i + 1; } …

Member Avatar for bisiii
0
95
Member Avatar for libathos

hello,I am writing a program in java in which I use a jtable to print the data to the users.Do you know how can i get the data of a line when that line gains focus?

Member Avatar for libathos
0
88
Member Avatar for qwertpink

hi all, when my codes ran at localhost, it doesnt have any error, however when it runs in a server it gives 'Column 'member_id' cannot be null' [CODE] //retrieve form data $start_date=$_POST['start_date']; $end_date=$_POST['end_date']; $project_name=$_POST['project_name']; $project_description=$_POST['project_description']; // open connection $link = mysqli_connect($host, $user, $pass, $db); $query = "INSERT INTO project(project_name,start_date,end_date,project_description,project_status)VALUES('$project_name','$start_date','$end_date','$project_description','available')"; $result …

Member Avatar for qwertpink
0
613
Member Avatar for mightysnake

Hi everyone, I've created a function for calling .js files in <head> but it's not working properly. The reason why is this function necessary is that I want to include different .js files in different pages or remove some If I don't need them. [CODE]function get_scripts($array, $dir) { $count = …

Member Avatar for pritaeas
0
128
Member Avatar for daniel36

can any body tell me how to use the information of page [URL="https://sandbox.clickbank.com/rest/1.2/sandbox"]https://sandbox.clickbank.com/rest/1.2/sandbox[/URL].

Member Avatar for pritaeas
0
254
Member Avatar for poojavb

Hello, I need to populate my ComboBox in VB.Net using MySQL. Can anyone help me to start. I have created a combo box which should contain the patient name from the database. I am using MySQL database. Please help me in this. Regards, Pooja

Member Avatar for poojavb
0
4K
Member Avatar for learner guy

hello everyone, i am trying to implement save,load and replay in my chess game made in c++ console. i am done with save and load but stuck on replay. i want every turn to be stored in file and when player asks to replay it should show all turns in …

Member Avatar for Schol-R-LEA
0
241
Member Avatar for rahulroshan

Hi I want to echo the output of query in php $query = "SELECT COUNT(name) FROM ji where name="rahul" and age='23' "; Can anyone plz help?

Member Avatar for pritaeas
0
84
Member Avatar for DoubleGee

Hello, I am experiencing problems when trying to remove elements from an array. I've been asked to create a little program which creates bank accounts containing (name, address, bank account number, balance etc.). I have successfully implemented all the functions except deleteAccount (I would also like to add that my …

Member Avatar for JamesCherrill
0
199
Member Avatar for aquamarine_kath

Hi. I tried to install vb6 on my friend's laptop. It was installed but when I double click the control on a form to write a code, it has stopped working. It says, "VB6 has stopped working". It was installed but I cannot put a code in it. Here are …

Member Avatar for LesF
0
210
Member Avatar for aishapot

How can I simply format the contact number in vb.net The format that I want is (123)456-78-95 Thank You.

Member Avatar for M.Waqas Aslam
0
228
Member Avatar for devinodaniel

I'm trying to send a confirmation email to the person who submitted this "ticket" but it's not sending. I know the right info is there it just seems like I'm putting something in the wrong spot. Anyone help me out? [CODE]<?php include("database.php"); $today = date("M d Y"); $sql="INSERT INTO info …

Member Avatar for dineshsjce
0
197
Member Avatar for Szabi Zsoldos

Hey guys, I'm working on a ajax drop down system. I'm currently finding myself in a difficulty with a $_POST[]. The thing is that I want to explode my $_POST but it doesn't let me for something, cant find it out why. [CODE] case 2: if(strstr($_POST['modelBox'],'^')) { $ex = $_POST['modelBox']; …

Member Avatar for Szabi Zsoldos
0
264
Member Avatar for coolfriends

Hey guys, I am working on this square deal problem that I cant figure out. This is the problem: Input for this program will be two positive integers entered from the keyboard via scanf. The first will be an odd integer N in the range of 3 to 15. N …

Member Avatar for 1qazxsw2
1
198
Member Avatar for Vasthor

these code, I expect they work the same. using Code::Blocks as the compiler, the result is differ result = output 10 return 0 [CODE] #include <iostream> int main() { int i = 0; while(i < 10) ++i; std::cout << i << std::endl; } [/CODE] result = compile error. [CODE] #include …

Member Avatar for Vasthor
0
247
Member Avatar for irock_4you

Vince Travis Sillhouette Angeles Create a myMath class that contains the ff procedures and or methods 1. Add any number of numbers 2. Multiply any number of numbers 3. Raise a number to the nth power 4. Slope of a line given 2 points 5. Factors of a whole number …

Member Avatar for v3ga
0
121
Member Avatar for jQueryLover

may peace on you ! Guys i am stuck in a query i want to get the value of row when a image in that row is clicked.so the purpose of update by getting that row id.i got the code below but it get me the row# and col# not …

Member Avatar for jQueryLover
0
97
Member Avatar for Tobyjug2222

Hi, I've been searching around these forums for quite a while now, and can't seem to either understand or find what I'm looking for. ^ As you can probably tell, I'm a real Novice to VB! I have a text file, that my program is always adding to it, it's …

Member Avatar for Tobyjug2222
0
299
Member Avatar for VIPER5646

I have a reportviewer that prints a second empty page with the header only nothing in the body. I have searched for this issue and I learned that the Width of the report body should be equal to the page width minus the right and left Margins. So I have …

Member Avatar for VIPER5646
0
488
Member Avatar for gispe

Hi! Im doing a program in java that gets info from a database.. thing is that im seting a variable with data from one table, and one data is char and cant find the way to have the .getChar() like the rs.getString() the code is: [code=java] public ModosDeCompra_clase dameModoCompra(Integer id) …

Member Avatar for DavidKroukamp
0
3K
Member Avatar for LevyDee

For the life of me, I can't figure out what I am doing wrong! It has been sometime since I have had use for my own list type, but since std::vector is pretty worthless for what I need it to do, I need to relearn templates. [code] #include <memory.h> template …

Member Avatar for mrnutty
0
111
Member Avatar for iPanda

I have an assignment to make a code that will check what is the longest "string" of zeros inside a double word binary number, for example (in a Byte) if I have this number: 10010001 The answer will be 3. The code I've written works fine until a certain point …

Member Avatar for GunnerInc
0
113
Member Avatar for DavidKroukamp

hi everyone, I am writing a small client and server application in java which uses SSL sockets and AES, i got this from the net and edited it a bit is this correct and secure? client: [code=java]/* * To change this template, choose Tools | Templates * and open the …

Member Avatar for DavidKroukamp
1
205
Member Avatar for BrickZ28

Ok I have hit my next hurdle. I have though of a few ways this could be done but just cannot wrap my head around it. What I would like to do is as I am accepting membership and move the member to the members database they will be given …

Member Avatar for BrickZ28
0
205
Member Avatar for Cenchrus

Hey guys and gals, I'm just starting Python, and I was wondering if someone could translate this code into english ? from sys import argv script, first, second, third = argv print "The script is called:", script print "Your first variable is:", first print "your second variable is:", second print …

Member Avatar for Cenchrus
0
5K
Member Avatar for snowhite89

Hi.. can anyone help me.. I having problems in displaying the output read from an input file. when I run the code, it only display the output of the first character in the input file. Anyone can help me figure out the problem? & I'm using borland. [CODE]#include <iostream> #include …

Member Avatar for Moschops
0
268
Member Avatar for gourav1

[CODE]import java.io.*; class file3 { public static void main(String args[]) throws IOException { FileInputStream f1; int i; FileOutputStream f2; try { f1= new FileInputStream(args[0]); }catch(Exception e) { } try { f2= new FileOutputStream(args[1]); }catch(Exception e) { } try{ do { i=f1.read(); if(i!=-1) f2.write(i); }while(i!=-1); }catch(Exception e){}; do { i=f1.read(); System.out.print((char)i); …

Member Avatar for gourav1
0
153
Member Avatar for rana.moeen

Hi Geeks, Here is code below, I wrote for multi file upload. This form takes a numeric value from previous page and print required form fields on this page. But when I write php code for upload it gives me errors. I use print_r($_FILES); but it returns an empty array(). …

Member Avatar for rana.moeen
1
170
Member Avatar for YungSoprano

Hi everyone, I'm creating a booking application for a hotel and have encountered an error on the following code; [CODE]Public Class Seaside_Hotel_DB Dim dbconn As OleDb.OleDbConnection Dim dbcmd As New OleDb.OleDbCommand Dim dbread As OleDb.OleDbDataReader Dim spath As String Public Sub New() spath = Application.StartupPath spath = spath.Replace("\bin\Debug", "") spath …

Member Avatar for YungSoprano
0
209

The End.