199,114 Archived Topics
Remove Filter ![]() | |
any other method by which i can pass variable no. of arguments to a function :) | |
hi, i am working on a code it has two parts: for the first part i have 1500-4000 text files which have strings in them.some files are same and some have different strings and i have to find amongst those a subset of files which are 10-20 n number and … | |
i have two textbox's... these textbox's can have formatting applied etc, but they lose focus when a button is pressed, and the wrong textbox has formatting applied.. is there a way to track the last textbox to have control?. some kind of for each control f type textbox, if mouse.click, … | |
hi guys just ask what is the code for allowing null values to appear on the textbox [CODE] Dim i As Integer dg1.DataSource = bs i = dg1.CurrentRow.Index Patient_Profile.Txtpatient_id.Text = dg1.Item(0, i).Value [/CODE] | |
Hoping someone here on the forum's can put me right on the above matter, after reading some I thought I could achieve the task in the following steps... [B][Visual C++][/B] [1] Convert AxisMediaControl image to system object [2] Convert object to ByteArray [3] Convert ByteArray to CharArray [4] Assign CharArray … | |
I want to close my login form and open Main form! i do that like this! [CODE] private void btnLoginOk_Click(object sender, EventArgs e) { if (textBox2.Text == "acer") { Main frmMain = new Main(); frmMain.Show(); this.Close(); } else { MessageBox.Show("Invalid Username or Password", "Login Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }[/CODE] But … | |
<td><input name="power" type="checkbox" disabled="disabled" <?php if($row['power_backup']=='on') echo "checked"; ?> /></td> <td>Power Backup</td> <td style="width:25px;"><input name="purifier" disabled="disabled" type="checkbox" <?php if($row['water_purifier']=='on') echo "checked"; ?> /></td> I have some checkboxes ,what i am trying to do if a checkbox is checked(its value is on) it should bold. need suggestions. | |
I am trying to get this program to use LOOPZ instead of LOOPNZ to find the first positive value in an array but I am not sure how to go about it. Any hints or ideas behind doing it would be much appreciated. This is the code below: .data array … | |
i am quite new to java i used to code in c++ but now we have to program in java which has not been taught. i browsed net but casn't get enough information this is my first code which i managed to get from net [B]i am using GNU java … | |
hello... i am new student in IT and i have a problem which make me suffer ... we got exercise to do ... which i have to build a programme that accept the time and acceleration from the user and calculate the velocity ... my problem now is how to … | |
I have the user enter a string e.g. subject of book using a scanner then a for loop, to print out all the books with the same subject to what the user entered. But I'm having a problem in that it will only print out the first occurrence. For example … | |
I've been working on a program that inverts a word and changes the vowels in the word into an asterisk.. I'm confused on where to put the strset in my code.. can someone teach me how to? thanks.. Here's my code.. I know it's simple but I'm just a beginner … | |
OS : win7 64bits compiler : visual C++ 2005 boost version : boost_1_44_0 [code] #include <gtest/gtest.h> #include <tchar.h> #include <boost/signal.hpp> #include <boost/bind.hpp> #include <boost/function.hpp> #include <boost/mem_fn.hpp> class Slot : public boost::signals::trackable { public: void Update(int) { ::printf("Signaled!!\n"); } }; int _tmain(int argc, _TCHAR* argv[]) { boost::signal<void (int)> s; Slot *slot … | |
Anybody have any idea about how to change the font of the string. Suppose [CODE] Dim strFind as string="Answer" [/CODE] I want to change the font of the string as "Verdana" Purpose behind that, I have an richtextbox1 contains the questions and richtextbox2 contain the answer so while concating i … | |
Hi there, how can I read a file line by line till the 150th line? I mean, I know the [CODE]for line in f:[/CODE] but I want to read only (let's say) 150 lines of the f file. Thanks a lot | |
Can any body tell how can we pass values from controllers or Models to views in codeigniter? | |
Hi guys, Im writing a windows c# form at the moment and after all the headaches of gettin my stored procedure to combine 2 tables from 2 databases from 2 servers that had different collations(.....yeh MASSIVE headache)ive hit another snag! here's my form1 code, no where near completed, missing my … | |
i have 4 different excel files of different names. each excel file has 8 columns and 15 sheets. All excel files has same columns and same number of sheets (same sheet names and column names)... i have to merge these 4 files into one. that file must be identical to … | |
I have been trying to figure out a way to make the two compatible but I can't seem to do it, any help? [CODE]#include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <cstring> using namespace std; const int max = 100; char decode (char encrypted_string[16], char decrypted[], int key); int … | |
Hi all I am using asp.net 4.0 for my application that connects to sql server 2008 via ADO.Net Entity Framework. When there is bit increase in traffic the site goes down. I notice below error in event management [QUOTE]Execution of the command requires an open and available connection. The connection's … | |
Parse error: parse error in C:\wamp\www\dani\add_invoice_Item.php on line 75 [CODE]<?php $q=$_GET["q"]; $con = mysql_connect('localhost', 'root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("dani", $con); $sql="SELECT * FROM invoice_item_details WHERE itemId = '".$q."'"; $result = mysql_query($sql); echo "<table border='1'> <tr> <th>ItemCode</th> <th>GoodsDescription</th> <th>UnitPrice</th> <th>Quantity</th> <th>TotalPrice</th> </tr>"; while($row … | |
how to add a new row in datatable at runtime(values from textboxes) with same object | |
Hey guys. I have written a program to create, edit and delete record in MS Access using a visual studio program. I am keeping the program and database divided into a front end and a back end to allow concurrent users. I am going to place the back end on … | |
Hey guys, I've got a theoretical question. I've tried to work out how some of the code would work in my head, and I always stump myself. Maybe it's my lack of knowledge - who knows! I am trying to create an online forum inside of my application. Yes, I … | |
these one code, from line [63-71] of the original code [CODE] // for adding more students cout << endl << "Want to add more student?(yes/no): "; string add_student; cin >> add_student; if(add_student == "yes") { student_counter = 0; } [/CODE] the program seems "doesn't detect" the cin code above, it … | |
This is the only part of my assignment that has problem. Can anyone tell me what's wrong? I debug it, it shows me NullPointerException... please give me a hint, i urgently need this to be done. Its due today. So, I am supposed to write a method captured that will … | |
I have five sheets named 'Yearly,Q1,Q2,Q3,Q4'. currently my code only update one worksheet at one time into the mySql database. i want it to get all worksheets to be done at one go. i've tried to implement 'For loop' but it just run on the active worksheet only. is there … | |
Can someone please tell me the order of this merge sort? [CODE]#include<iostream.h> void merge(int[], int,int,int); void merge_sort(int[],int); int min(int x,int y) { if(x<=y) return x; else return y; } void main() { int array[16] = {5,0,12,1,4,3,25,6,8,7,45,9,13,2,17,10}; int i; cout<<"Unsorted : "; for(i=0; i<16; i++) { cout<<array[i]<<" "; } cout<<endl<<endl; merge_sort(array,16); … | |
[CODE]public Node<E> remove (int index)[/CODE] i need to recursively implement this method. Node<E> nodes contain two fields, next (a reference to the next node in the linked list) and element (a reference to the data it contains) [CODE]public E element; public Node<E> next;[/CODE] Do not worry about the checking for … | |
I have a Blackjack Assignment I need some help on. The Full requirements, what the .exe should look like, and what I have done so far is in this picasa link: [COLOR="Green"]https://picasaweb.google.com/zaidalmas/November172011?authuser=0&authkey=Gv1sRgCNXrltTFwZnYNQ&feat=directlink[/COLOR] Sorry I couldn't get the insert link to work right. What I have done: I have shuffled the … | |
Hi all, I need help in the following problem. I have a data file containing 100 columns, with different number of rows. I would like to read for example the columns from 45 to 56 and calculate something on these columns one by one, let's say calulate the mean value … | |
I can not seem to delete a record from the text file taken from a datagrid. Please see below. I know I need to bind the data and at the same time I need to delete the file in the current directory. I have tried a few methods but can … | |
I am trying to write a program that kind of resembles and etch-a-sketch. I have the basis for it. I am having two problems: 1. When I draw a shape in the default black color, when I switch the color it changes the color of what I had previously drawn. … | |
Hello ; I need a help in my home work , I have to write the program that prints the number of clock ticks it took the program to sort the data the main part is already given , I have to wright the functions this is my program :: … | |
Hello all Does Caret Event only for one component only ? I tried to find example for more than one TextField which added with CaretListener,but cannot find one. Anybody know website or has example like I need ? I need to know how to detect which component arise the CaretEvent … | |
hi everyone, I am trying to make 5 pages.. 1 is an html page and the last 3 are php pages.. the html page is called data_uploader.htm and contains: upload image upload html AD submit go to sender When you up click submit loads the files and then it returns … ![]() | |
I've looked extensively for an answer to this but have gotten nowhere. Here’s what I’m trying to do: I’m having people submit a form on my Wordpress site telling me their pledges for a volunteer campaign. When they submit their volunteer project I want to have a counter track the … | |
Hi everyone, I am new in LINQ. Please let me help to convert the following SQL Query into LINQ query. The Query is : [CODE]SELECT PRS.Product_Code, PRS.Purchase_Code, PRS.Purchase_Details_Code, PRS.Lot_No, PRS.Lot_Amount, PRS.Sold_Amount, SS.Supplier_Code, SS.Name, ISNULL(SSS.Sales_Lot, 0) AS Sales_Lot FROM Supplier_String AS SS INNER JOIN ( SELECT PD.Product_Code, PP.Purchase_Code, PP.Supplier_Code, PPD.Purchase_Details_Code, PPD.Lot_No, … | |
hi guys, how can i get the difference between two strings in PHP? i mean lets say string 1 = "hello world" and string 2 = "Hello World" the php code should compare these two strings and output something like: the difference between the two strings is 20%... so how … ![]() | |
A number is called a proper divisor of N if M < N and M divides N. A positive integer is called perfect if it is the sum of its positive proper divisors. For example, the positive proper divisors of 28 are 1, 2, 4, 7, and 14 and 1+2+4+7+14=28. … | |
Hello folk i am a new member n i need Ur help to do my course project for developing Sudoku game i already have my codes but i need a code for generating random numbers in the grid this is basically my code [code]import javax.swing.*; import java.awt.*; import java.util.*; /* … | |
I have an assignment to make a paint program using java but i am kind of stuck at a roadblock. I have a pencil tool and i used the mouseDragged, mousePressed, and mouseReleased methods of mouse(motion)listener to draw my path using general paths (lineTo and moveTo). My question is, is … | |
Hi forum, I am just wondering how I could just use the last two digits of a four digit year the user inputs. For example, I want to drop the [19] from [1960] and just use the [60] which should be 3C in Hex so the registers would read it. … | |
Hi There, I have an XML data [code] <coordinators branch="xx"><coordinator cnum="xx"> <value key="role" type="string">BC</value> <value key="role_desc" type="string">role</value> <value key="name" type="string">xx</value> <value key="tel_number" type="string"/> <value key="email_address" type="string">xx</value> </coordinator> <coordinator cnum="xx"> <value key="role" type="string">BC</value> <value key="role_desc" type="string">role</value> <value key="name" type="string">xx</value> <value key="tel_number" type="string"/> <value key="email_address" type="string">xx</value> </coordinator> </coordinators> [/code] I need to … | |
Ok so i am trying to write a/am if statement to set a random X,Y position for a sprite here is what i have (I'm very noobish with codeing) am i going about it the right way here is my function for DRAW [CODE] Sprite_Draw_Frame(explosion, posx,posy, frame, 128, 128, 6); … | |
Hey guys, I know this will have an easy answer, but I have been awake far too long to see it :P I am doing some coding with classes in python, and it just isn't working. Here is the code: [CODE] from bpy import * from os import * from … | |
I am a fairly new programmer still in school, and trying to have my program write the selected information to a designated file. I keep getting an error message on my file OutputStream. [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; import java.text.*; class ExampleJComboBoxSample extends JFrame implements … | |
[B]hey guys: im having a problem with the bisection method using C++ , the code suppose to find the root of this equation "X cube minus 3X plus 1" on [0,1] after 5 iterations and after doing it manually the answer should be x=0.009368 it keeps giving me 0.25 and … | |
Can someone show me what bubble-sorting an int[] of { 5, 4, 3, 2, 1 } looks like? I have to place it inside [CODE]public class SortIntArray { // this method needs your code to be added to work public static void sort(int[] list) {[/CODE] with no calls to any … | |
can somebody help me out by providing link to the stuff related to buffer reader in java to read a trace file and store it in array of string. |
The End.