64,152 Solved Topics
Remove Filter ![]() | |
Hello, I am trying to write this program in Delphi that calculates the amount of change required to make a certain amount. The user enter a number between 1 and 200. The program then calculates the amount of 100, 50, 20, 10, 5, 2, 1 bils required. But there is … | |
I need to upload 5 images at ones with they labels I have made this before to upload many images at one it works fine but I need to have an label for each image how this can be done take a look at my code. this is the HTML … | |
Private WithEvents tim As New System.Timers.Timer Public Delegate Sub doSub() Private thingToDo As doSub Public Sub TimeOut(ByVal d As doSub, ByVal milliseconds As Integer) thingToDo = d tim.AutoReset = False tim.Interval = milliseconds tim.Start() End Sub Private Sub tim_Elapsed(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs) Handles tim.Elapsed Invoke(thingToDo) End … | |
vector <int> a; //first vector vector <int> b; //second vector vector <int>::iterator i; //iterator for first vector vector <int>::iterator i1; //iterator for second vector //reading of first vector int temp; while(cin>>temp) { a.push_back(temp); } i=a.begin(); while(i!=a.end()) { cout<<*i<<" "; i++; } //end of reading first vector //reading of second vector … | |
for(i=a.begin();i!=a.end();i++) { cin>>*i; } for(i=a.begin();i!=a.end();i++) { cout<<*i; } above code works fine but when i use while loop to display vector , program crash. while(i!=a.end();) { cout<<*i; i++; } | |
Good Day Daniwebbers! Wonder if I can have some help. I am trying to build an 'admin panel' of sorts where the user can add content to their website, edit and delete it, all from one spot (Not unlike a CMS system I guess but purely for the purpose of … | |
import javax.swing.JOptionPane; public class Hotel626 extends javax.swing.JFrame { public Hotel626() { initComponents(); } @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { jLabel2 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jProgressBar1 = new javax.swing.JProgressBar(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); setResizable(false); jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Pic/Entrace.jpg"))); // NOI18N jButton1.setBackground(new java.awt.Color(0, 0, … | |
ATM -Deposit -withdraw(5 times maximum per day) -maintaning balance 200 -maximum withrdaw 20,000 -Default Amount 50,000 help me :( | |
Hi guys I need your help on selecting data from 4 different worksheet. Here's my code Dim MyConnection As New OleDbConnection("provider=Microsoft.ACE.OLEDB.12.0; Data Source='" & path & "'; Extended Properties=Excel 12.0;") Dim cmd As OleDbCommand = New OleDbCommand("Select [MAM$].[Seller Name], [MAM$].[Final Computation], [MAM$].Designantion From [MAM$] Left Join [DSS$] on [MAM$].[Seller Name] … | |
I'm new here, and haven't posted anywhere for any help since I've been all about learning for myself. However, I've gotten to the point where I don't want to fail this class so I'm seeking as much help as I can! I don't want it done for me, just a … | |
I'm trying to pull the total physical memory on a machine and have it show just like it would inside My Computer Properties. I know I can use My.Computer.Info.TotalPhysicalMemory which will return it in bytes. This is where I'm getting stuck. I want to be able to divide it and … | |
Me again, I have the following which should generate a form and populate that form. <?php session_start(); include("db_connect.php"); if(($_SESSION['user_id']) && ($_SESSION['access_level'] == 1 )) { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <head> <title>Teaching Int Limited - Home</title> <meta name="title" content="Teaching Int Limited"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta … | |
Hello, I feel like this is probably something silly, but for some reason if I declare a variable at a certain point in my code, then never use it... it crashes. This is literally what happens: //... code here int isBuf=0;//one of my variables int zeroAddr=0;//<-- another variable I want, … | |
Hello Experts Here is my connection string [CODE] string con = "Data source =YS-8462BA359936;Initial Catalog = Schooldata;Integrated Security = True";[/CODE] and my store procedure is [CODE] SqlConnection objCon = new SqlConnection(con); objCon.Open(); SqlCommand cmd = new SqlCommand("Studentinsertadmission", objCon); cmd.Parameters.Add(new SqlParameter("@Studentid",Convert.ToInt32( studentid.Text))); cmd.Parameters.Add(new SqlParameter("@StudentName", firstname.Text)); cmd.Parameters.Add(new SqlParameter("@Image", image.image )); cmd.CommandType = … | |
Hi Friends, User logged in as: ankit.baphna@gmail.com I am creating gif image by below line 1 code with name demo25_"email address of user" ex: demo25_'ankit.baphna@gmail.com'.gif it gets created in my folder with naming within single qoutes: 'ankit.baphna@gmail.com'.gif but I am not able to read this file to display image on … | |
I took the liberty of posting the assignment and the work I've done. I can't figure this one out, can anyone help me And I did put an attempt at this, almost 4 hours now and I'm burnt out. If anyone can help me I would soooo love you. "Your … | |
Just wanted other opinions on my code and a way to figure out whether or not each number placed into the 2D array is unique. My mind is blanking out a bit, I placed something in the method before but erased it. Debating on whether the parameters should simply be … | |
it's a beginner's problem. I am trying to calculate sum of the first 15 factorials. I know int isn't large enough for the sum, so I used unsigned long long but it still didn't work. why?? Thanks for helping! #include <iostream> #include <cmath> #include <iomanip> #include <cstring> using namespace std; … | |
How can I convert amount in words for multiple currencies? I am using some class & functions but they have bugs & not fully functional. Does anyone have full functional and tested code/example? Thanks in advance. | |
i use a string str1= { 0xFEFE 0x0111 0x00 }, { 0xFEFE 0x0112 0x01 }, { 0xFEFE 0x0113 0x01 },{ 0xFEFE 0x0114 0x00 } need to find and seperate the substrings that end with 0x00 in one list and the substrings that end with 0x01 in another list. could anyone … | |
![]() | Hello, Where can I download Python 3.4.0 for Linux ? On the official website of Python I can find releases only for Windows and Mac OS. Thanks for your help. ![]() |
HI, so im trying to add new rows to my table using the codes that were given but the row doesnt stick, as in it disappears just after clicking a button. Am i doing something wrong? <script type="text/javascript" charset="utf-8"> var giCount = 1; $(document).ready(function() { //initialise the table $("#tables").dataTable( ); … | |
I have an application that where i have a an Asp textBox and i added TextBoxWatermarkExtender to it. <asp:TextBox ID="txtCellNo" runat="Server" /><br /> <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" BehaviorID="CellNoBehavior" TargetControlID="txtCellNo" runat="server" WatermarkText="Cell No."> </ajax:TextBoxWatermarkExtender> Because i have the page constantly postpage the TextBoxWatermarkExtender Blinds everytime it does a Postback. So i added this … | |
Hello guys. the AutoSize is true, but the form is not autsizing :( first the form looks like [this](http://i60.tinypic.com/2s1uk1v.jpg) . when i press that button generates a matrix of buttons but the form is not autsizing it should look like this [this](http://i58.tinypic.com/11gni9h.jpg) . but no change, it remains at the … | |
Hello, I wonder about one thing: I am trying to create a uniform background for this all navigation links in this site: [Infracom](http://www.infracom.co.id/infracom/) I do not really create the site - since we no longer hire the one who create it and I have to maintain it. index.php <?php require('wds.php'); … | |
How CAn I get the "sum" of a "Column" in a Data Grid? I dont't use /connect database with my Data Grid! How can I make this happen? Thank you for any responses! | |
Hallo, This is funny. I export mysql codes to the webserver. Yet, I cannot run the codes correctly, there are some errors when I run the codes: Error SQL query: -- -- Database: `project_infracom` -- -- -------------------------------------------------------- -- -- Table structure for table `infracom_admin` -- CREATE TABLE IF NOT EXISTS … | |
Pls do help me, I got an error **Input String was not in a correct format**. Here is the code where error appears, This is in my Record form. After I click edit, it will be redirected to my Update2 form Update2 f2 = new Update2(); f2.BlockNo1 = Convert.ToInt32(BlockNo1);//error here … | |
My resume is already present in resume folder with following formate eg: 3chaitanya.doc = > [session_id+session_firstname] i need to attach it to email without browsing it <?php session_start(); include('db.php'); $to = "company@gmail.com"; $fromEmail = $_SESSION['user_email']; $fromName = "Job tile"; $subject = "Applying for job"; $message = "some text"; //path of … | |
Hi, I was working on a solution to problem ten of Project Euler, which states: > The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. > Find the sum of all the primes below two million. I've got code that solves this … | |
I want to save data in to my ACCESS database from textboxes. My code is here. Private Sub BtnSubmit_Click(sender As Object, e As EventArgs) Handles BtnSubmit.Click Dim cb As New OleDb.OleDbCommandBuilder(DA) Dim dsNewRow As DataRow DA = New OleDb.OleDbDataAdapter(SQL, CN) DA.Fill(DS, "Deposit") dsNewRow = DS.Tables("Deposit").NewRow() dsNewRow.Item("Bank") = TxtBank.Text dsNewRow.Item("Acno") = … | |
I am going through an XML file and trying to get the name of a child (or children) node(s) but I'm missing something. Even though there are child nodes, my foreach loop acts as if there is not. $pos = $node->sense->pos; foreach ($pos->children() as $child) { echo "I never get … | |
Hello, I am writng a simple networking program with a single server and multiple clients. I would like to send and receive objects between the clients and the server and hence I use the ObjectOutputStream/writeObject(Object) and ObjectInputStream/readObject() combination. First, my server program: import java.net.*; import java.io.*; import java.awt.*; import java.awt.event.*; … | |
Hello Guys, I need your help. How to convert decimal into precent using php codes example like this. Example: 0.2 = 20% Thanks in Advance Please help me, Thanks | |
I'm hoping that another set of eyes will see something that I'm not. I'm having an issue with a script that I just added a little routine to, so I know the issue is in the routine, because the sript as a whole was working before adding this... the routine … | |
![]() | I keep getting a corruption for my array and I do not know why. Can anyone help me figure out what is causing my run-time error to happen? my heapInsert function is at the very bottom #include <iostream> #include <algorithm> using namespace std; //function prototypes int getParent(int index); int getLeftChild(int … ![]() |
I'm quite new to Python, and am trying to make a simple unit converter - was hoping if anyone could tell me where i'm going wrong? This is the script as it stands: input('Would you like to convert centimeters to inches (a), or inches to centimeters (b)?\ntype a or b: … | |
Write a program which asks the user to either convert the number of days into hours or minutes. Based on the option entered by user your program should calculate the result accordingly. | |
I am having problem with programming, i have been given a program to perfom and so far i have benn unable to start..can anyone help me? This is my question..1. Create a class called MyString. Within this class, you are to implement, from scratch, two versions of each of the … | |
My eclipse id is taking too long time to open (at least 15 minutes) I tryed all the options in google search but the problem remains the same kindly give me tips to fix the problem thanks for your time | |
I am using the Eyesis Data Grid Control (http://www.phpclasses.org/package/4951-PHP-Display-data-from-a-database-in-a-sortable-table.html) and would like to add the Delete function as shown in Example 3 (http://www.phpclasses.org/browse/file/25088.html). The line in the sample code where this is done is: $x->addStandardControl(EyeDataGrid::STDCTRL_DELETE, "alert('Deleting %Id%')"); How do I change the "alert('Deleting %Id%')" to either a function that deletes … | |
I am a beginner to VB.NET, and I am creating a program that displays a new string in a label. The new string should take a sentence entered by the user and remove every occurrence of a substring supplied by the user. This is my code so far: Dim input … | |
![]() | Hey guys, At the moment I have an `if == admin then show admin form` on my views. I guess it was more for the sake of convenience rather than anything else. Is it best practice to create a separate controller and view for an admin panel and place this … ![]() |
![]() | how to prevent this in codeigniter. The user may still wish to type this in so xss filtering is not an option ![]() |
hey guys so i have these drop down menu using ul and anchor and when i click on one an image should be displayed. the problem is when i click it the image appears but then disappears right after, like a second. html: <ul> <li><a href="" onclick="document.getElementById('banquetsix').style.visibility='visible';">6 Seater</a></li> <li><a href="">8 … | |
As a beginner java learner, I would be grateful if some people could point out a few open source projects with a high quality code base. Not necceserily aimed at a beginner, I would rather see a professional quality example, and preferabbly the project would use some common tools for … | |
I'm trying to emulate bash/cmd type program. I have written programs like cat, ls, grep (simple one) and kept it under \bin\ directory. This program will take user input and run programs present in \bin\ accordingly. I'm using `_spawnv ()` as the argument list is going to be variable. When … | |
Hi, I'm new to vb and I need to record the time the user used a certain privilege and the time s/he finished using it. i used date/time picker but whenever i run the program, i can't edit the time. only the date. help please? | |
Can someone help me on my database with regards that the records can be prone to data redundancy.. pls help to avoid record redundancy on my database.... How do I check if the record that i will be input is existing on my database.. and i want to prompt the … |
The End.