199,114 Archived Topics
Remove Filter ![]() | |
[B]What is mean by $ in jquery[/B] ![]() | |
Hi all, i am trying to convert a dataGridView cell to a control i used the codes [CODE] Control dat = new Control(); dat = Convert.ChangeType(dataGridView1[colIndex,rowIndex], typeof(Control)); [/CODE] I am fetching the values of colIndex and rowIndes from a index code... the problem is even though i tried many codes … | |
In a course, a teacher gives the following tests and assignments: A lab activity that is observed by the teacher and assigned a numeric score. A pass/fail exam that has 10 questions. The minimum passing score is 70. An essay that is assigned a numeric score. A final exam that … | |
Hi there, I have a form that collects array values and then posts it to another page.eg [CODE]<form action="page2" method="POST"> <input name = "myid[]" type="text" value="1"> <input name = "myid[]" type="text" value="4"> <input name = "myid[]" type="text" value="6"> </form>[/CODE] the second page then receives the array and implodes the results … | |
[CODE] class Rectangle { private: int num; public: int method1(int,int); }classOne; int Rectangle::method1(int num1,int num2) { classOne.num = (num1 * num2); return (classOne.num); } int main() { Rectangle* one = new Rectangle(); cout << (one->method1(2,10)); NewClass* newClassPointer = new NewClass(); //I want to access NewClass here.... } [/CODE] [CODE] NewClass::NewClass() … | |
I'm trying to make a Palindrome program, that basically returns whatever you enter, just backwards. For some reason, the cNewArray is not only couting the original array backwards, but also the original array. For example if I enter "Hello" it returns "Hello = olleHHello". I'm very new to referencing pointers … | |
I am trying to read integers from a txt file and then read the values looking for similarities. I am initializing an array as all 0 however, after I have read from the file and output all the variables, there are random numbers displayed in the array and I don't … | |
I can't round up the decimal number using VB.net i'm using Cint(12.5) this must be 13 but it is not so i try Round(12.5) but still not roundup what do i do? please help!!! | |
HELP!! I try to bind a textbox to a datatable but i cant.. I checked if the datatable is filled (it includes the results of a sql query)and it s ok.. i can depict the result in a combo box but not in textbox. I wait for only one result … | |
hi, here i tried the coding for splitting the document file from the merged file,, i found the problem that a new document is not creating [CODE] Dim str1 As String = TextBox1.Text Dim str2 As String = str1.Replace("[", "") & str1.Replace("]", "") Dim filename As Object = "f:\" & … | |
Hi, I m writing code to map single key(Integer) with array of values. But, its not giving the correct output. Here is the code: [CODE]import java.io.*; import java.util.*; class MapDemo{ public static void main(String args[]){ TreeMap<Integer, Object[]> tMap = new TreeMap<Integer, Object[]>(); Object[] vals = {"tree", "map", "sorted"}; tMap.put(1, vals); … | |
Hello, I am new to php and mysql and I need to do password encryption and decryption. The password will be saved in a data base, I need to use an algorithm that uses SALT varible. Can some please help me with that? Thanks in advance. | |
Hello again! I'm having trouble trying to double the value of my coordinates in my point. The object is to create a pair of eyes and their position is identified by clicking a point in the graphic window which would allocated the centre of the left eye, and the second … | |
Hi all, I have the following problem: I have 4 documents whose text is divided into blocks of text, hereafter called section. One of the documents is the main document, and the sections from the other documents are related to the sections of the main document. The main goal is … | |
hey guy's I'm relatively new to C++ and I've been asked to make a Caesar Cipher. I'm supposed to take an encrypted .txt file and output it's decryption. I've sort of got an idea of my flow as shown below but I'm confused as to how to transform capitals in … | |
I am currently trying to write a program to simply output roman numerals (not convert-as on many previous threads) from 1-99.. This is the logic/code I have tried so far, but I am certain that it isn't correct apart from the fact that it isnt compiling. [CODE]#include<stdio.h> int main(void) { … | |
is there any one with an idea of how to link a php form where by a customer places an order when the click clicks submit order data is verified,sent to database and then linked to SWREG i have implemented the order form, verification and sending data to the database. … | |
Yeah, its it possible to have multiple form in a single page. for example: <form action=test.php method=post> --- -- </form> <form action=test.php method=post> --- --- </form> Both the form action is the same test.php. Any problem ? | |
I've just kind of gotten bored reading over learncpp.com repeatedly, so i decided to attempt to make a couple small programs for my own enjoyment ( and to really test what I'm capable of ). I have been making this little game that I call Implicit Explicit. It's basically the … | |
I'm trying to run a program with 3 levels:1st Menu, 2nd Input and Output and 3rd Calculations. But it keeps me giving me permition denied and Id returned 1 exit status when I try to compile. any suggestion? here is the code [ICODE]#include <stdio.h> #include <stdlib.h> #include <math.h> int calcpercent … | |
the following code is used to get the contents of an excel document and pint it to console - will eventually filter and write a new excel file, but that will come later. [CODE]/** * */ import java.io.*; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.swing.*; import java.awt.*; import java.awt.event.*; … | |
Hi guys, thanks for any help offered. I am attempting to ask a user for a height and width value - which need to be integers between 5 and 10 for each (height and width) I also need the user to select 3 different colours, out of a predetermined list … | |
hi, im trying to create a program that records the amount of times a number was rolled using input from the user. currently it is only printing 1 number and i need it to print 6. i am only beginning to study java so im lacking knowledge a bit. any … | |
hi I came up with this code to help me convert a string into an integer array but i keep getting a null exception when i run it and i am not sure how to fix it. [CODE] import java.io.*; import java.lang.reflect.Array; public class test { static String message; static … | |
So here's my code. What I want is for the player to move down, and while it's moving down, to cycle through images in the sequence (0, 1, 0, -1, 0...) but it doesn't do that. [CODE]import pygame, time pygame.init() Screen = pygame.display.set_mode((400, 400), 0, 32) pygame.display.set_caption('Walk around') GREEN = … | |
Perhaps not strictly a php question - but I can't find anything on this and thought you guys might be able to help. I am using a CMS which has FCKeditor built into it. Just recently (I didn't change the configuraation or server or anything) its started escaping all my … | |
Hi all, I'm new to java programming but finding it rather fun and interesting. Right now I have [CODE]for(String name : chkNms) { JCheckBox checkBox = new JCheckBox(name); checkBox.setMnemonic(KeyEvent.VK_C); checkBox.setSelected(false); // checkBox.setActionCommand(name); add(checkBox); checkBox.addActionListener(this); }[/CODE] to create all the check boxes I need, roughly 30 or so. The last line … | |
Hello guys, I've been trying to make a program that takes the IDs from a file and make them into a 1D array. The input file looks like this : 201053420 201052456 201488540 201384345 And it should be working even if there's more than 4 IDs. [CODE] import java.util.*; import … | |
I’m creating a Windows Form Ap with Visual Studio 2008. The Ap has a few selection boxes and buttons that trigger “things” to happen. The form also has a “feedback” area where I will display progress to the user. OK, that should be vague enough – SMILE. I want to … | |
![]() | I have a main loop that parses winsock input. Once the parsed input has been received, it creates a thread and passes an array element id to a global array of names to the thread. The thread then downloads the requested file, but first checks to see if it already … |
Hi, I am trying to print a table but I can't. I have a file called r.php with rules like [CODE]<?php $rule['ab'] = "afd"; $rule['vf'] = "ghe"; $rule['as'] = "rtg"; ?>[/CODE] and in another file I write [CODE]<?php include_once("r.php"); $a = 'as'; echo $rule[$a]; ?>[/CODE] but it is not printed … | |
This is codes snippet from our codes [code] void testSmartAssign() { boost::shared_ptr<int> A; std::auto_ptr<int> B(new int(9)); A = B; } [/code] Is this kind of assignment well defined? Thanks | |
I post here the code for histogram using the turtle graphics module, which I posted long time ago in discussion thread. For more special graphs there exist other fancier options, but this tkinter based routine can function in most standard installations of Python. Example data.txt, like mentioned in module docstring: … | |
How to check textarea value is submitted or not on insert page? if (isset($share)){ //do stuff } or anything else? I'm using click function #share instead form submit. How to check #share is clicked, on insert.php page? config.php [CODE] $host="localhost"; $user=""; $password=""; $db=""; $link = mysql_connect("$host", "$user", "$password"); $con=mysql_select_db("$db")or die(mysql_error()); … | |
hi I'm new I got some questions about bubble-sort, so I registered here. I'm currently working on this program (bubble-sort) so I looked up some example codes and I found this here, which is practically the right thing I'm looking for. But I have some questions, like 1. How would … | |
Hi the aim of my program is to allow a user to enter the size of an array and then allows the user to enter the values into an array. The bit im having a problem with is I want to count how many odd and even numbers there are … | |
I have a field of Issue date which takes the date of that very day when i fire the query now I want that field of Return Date in my data base should take the date while adding 14days to it? How do i do that? | |
Hello Guys! Can anybody help me with this code? So what I need? here is it: I want to fill out global variable "student_marks" with a grade for each student and keep it once is loaded. So it means without calling the function "def add_mark()" I will be able to … | |
Hi Please hang on with me on this one, I would appreciate any advice or insight please.... I come from a coldfusion background, where setting up a connection to a database (Oracle, MYSQL SQL Server etc) was was easy as filling in a few fields in the datasource screen in … | |
Hi, I am using an include function to include image gallery to my site. this is index.html of image gallery: [CODE] <link rel="stylesheet" type="text/css" href="css/sliderkit-core.css" media="screen, projection" /> <link rel="stylesheet" type="text/css" href="css/sliderkit-demos.css" media="screen, projection" /> <link rel="stylesheet" href="css/main.css" type="text/css" /> <!--[if IE 6]> <link rel="stylesheet" type="text/css" href="css/sliderkit-demos-ie6.css" /> <![endif]--> <!--[if … | |
Hello.. I have a datagridview.. It is unbound to any database and has 2 columns.. 1 is item name and other is amount/expense, incurred.. I want the total of expense incurred be displayed in the textbox on button click ie adding the numbers in amount column.. I tried something like … | |
Is there anyone here tell me how to create php auto suggest box from database using mojave linux?Thanks | |
Hi what's the code to keep the login safe. I mean after people login by entering username and password, I do not want other user to be able to access my web admin just by entering the url without login first. Notes the admin folder has many pages too which … | |
Can someone please tell me why I am getting an error message saying 'temps' is uninitialised??? [CODE]#include <iostream> #include <string> #include <fstream> #include <sstream> #include <cmath> #include <iomanip> #include <cmath> #include <cstdlib> using namespace std; struct record { string websiteUrl; double revenue; int hits; }; struct totals { double totalRevenue; … | |
I am trying to learn about marshaling structures and DLL's. [URL="http://msdn.microsoft.com/en-us/library/ef4c3t39(v=vs.80).aspx"]I'm following this example[/URL]. The code builds and compiles just fine. But when I run it, the lines where the call to the function is returned; it makes the call to the function from the DLL, goes through it, but … | |
Hand evaluator for Texas Hold'em. If a "hand" has five or more cards, hand.rank will find the best five card hand the hand can form. Two hands can be compared using the comparison operators. The final hand can be gotten from the "hand" with hand.rank.hand. The value used for comparisons … | |
This is the instruction: Mrs. Rogers, the owner of "Jus' Right supermarket", has asked your consulting firm to design a program for a simple cash register system which will allow the cashiers at the shop to total the price of the items being bought by a customer, calculate the tax … | |
So I have this small program that draws circles of different colors depending on "velocity" Below is my code, btw I haven't actually implemented velocity yet. When I run it, I get these"[CODE]Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException at Mouse.paintComponent(Mouse.java:35) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown … | |
I have two strings like so: [CODE] String a = "on matt to"; String b = "onomatopoeia"; [/CODE] I've been trying to do... [CODE] if (a.contains(b)) return true; [/CODE] It returns true in this case since the character sequence "mat" matches the "ono[B]mat[/B]opoeia". I want it to return true only … | |
Hello programmers, can anyone tell me how to add or set alternative name for certificate to the keystore? I am trying to create web service client using netbeans and when it trying to get wsdl description from site it gives me: java.security.cert.certificateexception no subject alternative names present Site is under … |
The End.