199,114 Archived Topics
Remove Filter ![]() | |
[CODE]import java.util.*; import java.text.*; public class Interest { static DecimalFormat fmt=new DecimalFormat("0.00"); //2 decimal place. static Scanner input=new Scanner(System.in).useDelimiter("\r\n"); static double[] principle = new double [10]; static double[] rate = new double [10]; static double[] interest = new double [10]; static double[] days = new double [10]; static int i; … | |
I am new to vb.net. i need help in formating a string example: dim balance as string="balance:450005.809999" i will like to leave only two characters after the full stop. the integer will be changing but the string will always contain the 'balance' word and a full stop. will like the … | |
Hi all, currently I am doing an online store project using an example from one of your tutorials. In the grid view is populated with data and at the below of the grid view, there is a row of empty fields populated below. After user have enter all the necessary … | |
I m making registration form for teachers in which teach ID is one coloum name i want message box error if id number already exist in side the table means uniqe ID e.g if id no 1 is already exist then 1 should not be added when next time user … | |
Hello! Can someone tell me how to create an entrance examination. I have already have a quiz creator. The only problem I have is how to display the created questions one by one just like a computerized entrance exam from a single table. Thank you very much! God Bless. :) | |
I have made a program using C++ Windows Form Applications and I don't want my program to run more than once. What is the code for this? | |
Hello, I just installed XAMPP to a Windows 7 computer and I am trying to learn some PHP. I go to C:/xampp/htdocs and create a file named [B]phptest.php[/B]. And I write inside this code : [CODE]<HTML> <HEAD> <TITLE>PHP Testing</TITLE> </HEAD> <BODY> <?php echo “If this works, we <i>really</i> did it!”; … | |
Hi there, I was wondering if anyone can give some advise/tips on this. My goal is to figure out the broadcast address. The way I think I should do is: [LIST] [*]get/detect the IP address and the subnet mask or CIDR [*]convert the mask to binary form [*]count the number … | |
Hi all, Let's say i have a tab control with a number of things like Textboxes, Buttons, etc. but I would like to have 9 more tabs which has the very same thing and functions and the only difference is the data being input. How do i go about doing … | |
Hi guys, I am doing a project wherein i have to make an OpenGL animation and its a Sainsbury advertisement and it kinda sucks till now. Now i really need to add images, viewports and be more creative. Following is the code till now, (yeah laugh at it...it sucks more … | |
I have two problems 1. I have develop and Installed a project on my computer. that was work on my PC so many days. but now prject not work properly. It give me error message that [B]SQl connection not avaliable.[/B] Is their is any way to overcome this problem. Can … | |
Hi guys! I am a newbie in VB.NET and am trying to create a cipher. In my program, before you can decrypt a string, you are prompted to enter a key. After you enter the correct c key,the string is decrypted. The problem is that the plaintext appears at the … | |
Link to the page [CODE]<a href="http://xxxx.com/u/'.$_SESSION['loginid'].'/index.php?user='.$_SESSION['loginid'].'">test</a>[/CODE] index.php [CODE]<?php if (isset($_GET['user'])){ define("HOST", "xxxx.xxxxxxx.com"); define("DBUSER", "xxxxx"); define("PASS", "xxxx"); define("DB", "xxxx"); $conn = mysql_connect(HOST, DBUSER, PASS) or die('Could not connect !<br />Please contact the site's administrator.'); $db = mysql_select_db(DB) or die('Could not connect to database !<br />Please contact the site's administrator.'); $user = … | |
Help guys, I am trying to make a paint program similar to Paint.net. the problem im having is like i paint on the picturebox but when i click the minimize button and maximize it, the lines i drew disappear. here is my code: [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using … | |
Hi...Is it possible to get a list of running application in a remote pc through wireless or wired network?? i tried this code but i get an error [CODE]Dim ps As System.Diagnostics.Process For Each ps In System.Diagnostics.Process.GetProcesses(remote_pc_name) ListBox1.Items.Add(ps.ToString) Next[/CODE] error is "Can't connect to remote machine", i tried to access … | |
Hello I've prepared a code which sends mail. I've a problem in trying to catch the exceptions that the code throws. 1. I need to check if the internet connection is open 2. I need to check if the password and E-mail Id entered by the user are correct In … | |
Hi guys, I have 2 boxes (UsernameComboBox and PasswordTextBox) and 1 button (UpdateButton) and i would like it to update based on the info inserted above. Can someone shed some light on what's wrong with my codes below? [CODE] private void UpdateButton_Click(object sender, EventArgs e) { PC001 f1 = new … | |
Hi anybody do you know how to limit string that we input in the program ? LIKE THIS: Input Name: <-we can input only 5 characters | |
i got a big project really big one and they need this new solution only because of peach tree, tally are not enough for doing their work. My program should be capable of bulk, multiple data transfer and usage at same time.[B]The real problem is their main program is created … | |
i have one form, with 2 picture boxes, one Vscroll, and so many textboxes in pictureboxes.. when i m clicking the VScroll, it works... now i want that when i press enter button in textbox the scroll should go down, as it goes on click.please help me. | |
Hello, there. I'm having trouble with the initialization of variable of type sem_t. I used this. [code=c++] sem_t example; example = NULL; if(example == NULL){ /* code here */ } [/code] I'm getting the error, "no match for operator ==". What value do you think I should place in the … | |
hello there! I am new here on Daniweb. I couldn't find an article anywhere on google about moving text in C++. I have an idea but my problem is, I can't find a way to make my other output still. What I mean is: I don't know how to prevent … ![]() | |
hi I have two webforms when a user fill the webform1 and get webform2( through submit )if user click return(get webform1) i want to show user the webform1 info that user filled first time. (i want to keep webform1 info when user go to webform2 and return to webform1) what … | |
Hi there C /C++ experts... I have a confusion regarding the function free(void *) in C and [I]delete[/I] in C++. Suppose there is a pointer named p. In C++, we dynamically allocate memory for p to point at like this [CODE] p = new int [10]. [/CODE],then when we use … | |
How can I use SQL Statements in VB 6 with DataEnvironment. I have a DataEnvironment called Table(DataEnvironment2.Dsr) and a report named rptStudMastOne(rptStudMastOne.Dsr). I am planning to use the SQL Statement " SELECT * FROM Student WHERE StdSSN = txtStdSSN " and it will show in the report the record that … | |
hi i'm having a problem regarding sql deleteCommand.. can someone please help me solve this problem coz it takes a lot of time for me to figure it out.. here's my code [CODE] Private Sub btnDeleteBC_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDeleteBC.Click If MessageBox.Show("Do you really want … | |
I just posted this broken. Here is the code that works. I was told there is 2 ways this can be written more efficient. I can't see it, can you? #include <iostream> #include <string> using namespace std; void daysOfChristmas (int days, char switcher, string b[12]){(days > 0 && switcher == … | |
When writing a program that uses separate compilation (I have a header file, a .cpp file that declares all the member functions of the class in thee .h file, and an application file). I used a constructor to pass the contents of a dynamic array to a vector, but it … | |
[CODE] $id_subramura1=$row['id_subramura1']; $display_block.="<li><a href=\"".$_SERVER["PHP_SELF"]."?id_subramura1=" .$id_subramura1."\">".$Denumire_Subramura1."</a></strong></li>"; print_r($_GET); if($_GET["id_subramura1"] === "") echo "a is an empty string\n"; if($_GET["id_subramura1"] === false) echo "a is false\n"; if($_GET["id_subramura1"] === null) echo "a is null\n"; if(isset($_GET["id_subramura1"])) echo "a is set\n"; if(!empty($_GET["id_subramura1"])) echo "a is not empty";[/CODE] How it possible to echo "a is null" when is … | |
I am trying to define and pass through (I think that's the term) a variable from my login page to other parts of my site. Right now, the user logs in providing their username/password combination and those variables are able to be used. What I want is if a login … | |
I am taking my first class (online) in Visual Basic and we are using VB 2010. The assignment is to create a football calculator(see attached). I have attached the instructions that the teacher gave us and I think that I created the user interface okay but I don't understand about … | |
Note: I program in C++ Not C#. In visual studio 2010, Where u press release or debug, next to it has a box with win32.. How can I change it to x86.. I tried pressing New and edit and stuff and configuration manager but it doesnt have the x86 choice... … | |
Write a pseudocode... A program is to be developed that will calculate the total length of music to be stored on a CD. Assume a CD may store 76 minutes of music. The user will enter the length of musical tracks in minutes and seconds (separately) in a loop. A … | |
Hey everyone, I'm relatively new to PHP coding and I have a question I've been having trouble finding the answer to - it may be I'm not sure [I]exactly[/I] what I'm needing or what it's called. I am trying to create a very rudimentary login in system where users will … | |
Hi, I'd like to have a for condition with two interrupting conditions: [CODE] for(temp=hl;temp!=NULL,bOver1==true; temp=temp->next){ bOver=false; int I=0; while(bOver==false){ if(cu.Chars('S')[I]>temp->custs.Chars('S')[I]){ bOver=true; prev=temp; }else if(cu.Chars('S')[I]<temp->custs.Chars('S')[I]){ //FOUND THE ONE GREATER: PREV STAYS THE ONE BEFORE AND LOOP MUST END HERE! bOver=true; bOver1=true; } i++; } } [/CODE] This is a part of … | |
I am writing a application for Arch Linux, actually I already wrote it, but I wanted to do it a little differently then the other. The origional one uses the goto statement. Here is the code: [CODE]#include <iostream> #include <string> using namespace std; int main() { cout << "\tAurDown v2.1\n" … | |
Hi all, im am writing a program to take in and store a student's grade as an int. Can anyone tell me please how do i get the average score of the grade? This is what i have so far... Regards. [CODE]#include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; … | |
Hello again... My problem is that my if statement isn't working as I believe it should. Here is a snippet of the for loop. [CODE] for(int m=0; m<num; m++) { if(begllts <= intarray[m] && intarray[m] <= endllts); { cout << setprecision(4) << showpoint << dubarray[m] << "C" << stringarray[m]<< endl; … | |
Hi, I am having problems with this piece of code and maybe I am just not understanding how to do it, but can you please help me out or give me some tips. This is the description: You will implement your BoundedBag as a partially filled array. The array contents … | |
Class homework: cannot use strings. How do I declare a function that passes me a cstring? char[5] for example. I need it to explicit a private member of a class. [CODE] class Customers{ private: caName[kiArraySize]; //kiArraySize is 30 public: //this is what I need help for char[] passName(Customers); }; char[] … | |
I have a txfile.txt file which has the following data: 3 2716 16253 7721 35149 972 2614 I am trying to read the first integer into a variable using this code: [code=c] #include <stdio.h> #include <stdlib.h> int main() { int num_cust[1]; int result; FILE *fp; if( (fp = fopen("tsfile.txt", "r")) … | |
I would like to complete a project that requires a name as a console input, but returns an output of that name in reverse. It should only use for-loops and strings/substrings. I think it needs to use an array to get it done. I am right? Below is my attempt … | |
![]() | Just a quickie - is there a freely available WYSIWYG editor I can use on my site? I want it to be written entirely in PHP - no other languages e.g. JavaScript. Is it technically possible to avoid JavaScript? All of the editors I have seen use JS in one … ![]() |
im making a class called BigInt it will store integers in an integer array, 1 digit per array location(just ask if you need me to clearfy any more).....i have to make an addBigInt operation, subtract,setBigInt that will store an integer value into an existing BigInt, e.g. x.setBigInt(-397) replaces the value … | |
Hi I have a website that has a get.php file that echoes out the specific image i want Here is the code: [CODE]$id = addslashes($_REQUEST['id']); $image = mysql_query("SELECT * FROM items WHERE id=$id"); $image = mysql_fetch_assoc($image); $image = $image['image']; header("Content-type: image/jpeg"); echo $image;[/CODE] To get an image from the database … | |
Hey again! I've asked a question here once and have been lurking ever since. I was working on a new program and have come across problem. I don't really know what's wrong so I assume I overloaded something. The problem is in this snip of code [CODE]for(int m=0; m<num+1; m++) … | |
I am totally confused about forms in c#. If someone can explain the following simply please. I have a main form - called Front. under the section partial class Front : Form I have a Form newF= new Form(); More than once in the program I call the newF form … | |
Hi ,I am learning Java ,and I have problem ,when I call this method form main and chose 1 it is printing enter name and enter priority without letting me enter the data how can I fixed that Thanks [CODE] public void makeChoise(){ switch(display()) { case 1:System.out.print("Enter First and Last … | |
Hey guys iam new in c and iam learning on my own, I have a task in book which is well complicated(at least for me) .(it want me to create the file , insert the text then copy text without vowels into a new file). I know i have long … | |
Hi all, I'm almost done with a problem for a java class I'm taking. The chapter I'm studying is on inheritance and I think I understand it ok. The parent class will compile fine, but when the child class tries to compile I get an error saying it cannot find … |
The End.