199,114 Archived Topics
Remove Filter ![]() | |
write a program to get a 2 d character array and arrange them in alphabetical order. i've tried it,but its not getting compiled. im jus a beginner.so, someone plz help me. given below is my program.... #include<stdio.h> #include<conio.h> #include<string.h> struct st{ char a[5][10]; }ppl; int main() { int i,j; char … | |
hi guys, i have this program wherein the user can add freely how many textboxes he want. now my problem is that i have a class on my first textbox which is [CODE]class= "TextBox"[/CODE] then, i want to add that class name to the textbox added by the user..how could … | |
[B][B] This codes are not working here and i cant find out why is that can you help me on this (here i gave the database also problem is not in DB) [/B][/B] [CODE] CREATE TABLE `itinerary` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(1000) NOT NULL, `name` varchar(1000) NOT … | |
I can understand that the subtype covariance relation should not hold for parameterized types, but why should it hold for arrays ? One of the books (Khalid Moghul) said [QUOTE]This relation holds for arrays because the element type is available at runtime[/QUOTE] How does the element type being available at … | |
Hello, I have a php application that runs on localhost perfect, but when trying to access it from internet, I get this message: Forbidden 403, You don't have permission to access / on this server. I checked Apache error log and I found this error: [Sat Aug 14 18:22:46 2010] … | |
Hi, i tried to use the `ActiveXObject("CiscoURLProxy.URLGrabber")`, but when i run the code it gives the following : Error Type: Microsoft JScript runtime (0x800A01AD) Automation server can't create object please help me to fix it . here is a part of the code : <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%> <% Response.ContentType = "text/xml"; … | |
Hi, I'm trying to read a select(dropdown) box from an HTML form along with all its options. Can you please guide me as to how this can be achieved. My core requirement is to be able to read a select element with all its option and store it in some … | |
I have a combobox called combobox1 and I dont know how to save the selection. For example if i selected Sub Compounds, how would i save this so when i loaded it again from the hd Sub Compounds would be selected. | |
Okay, this is just a simple trick to determine whether CAPS is pressed because some people here use API to determine whether the CAPS Lock is pressed. [QUOTE] KeyDown and KeyUp don't detect exactly the same information as KeyPress. KeyPress detects a character in its KeyAscii parameter, but KeyDown and … | |
Does anyone know why the SessionBean in the netbeans keep disappearing? I did nothing but some hard coding. But when I go back to the design page, I realised that my SessionBean is no longer there. In fact it has happened several times and even resetting netbeans doesn't help. Is … | |
I need to add to my project several two columns tables of data (from MS-Excel) I have saved in txt form, and I suppose I want to manage them in the form of lists or arrays. Which is the easiest way to incorporate those files into the project? | |
How do you set the FileSystemWatcher.Filter to check only two files. Here's my code that doesn't even work. [CODE=vb]watcher.Filter = "*.txt|*.ini"[/CODE] Thanks Alot | |
hi guys, i already have the code for autocomplete.. what i want is that whenever the user inputs a certain character in the textbox the letters in the autocomplete should be emphasized, let's say, highlighted or bold. see attached example, | |
I'm trying to write a script that downloads and image off the net with wget. The script should save the file named as the date it was downloaded preferably with a suffix. Any ideas on how to accomplish this using wget? | |
Has anyone got any clever tricks for determining the size of the contents of a directory without doing the obvious (descend recursively and count bytes)? I'm trying to make a progress bar happen for a recursive descend-read-and-load of a directory, and it would be cool if I could track it … | |
[code] Imports System.Data Public Class Section Dim con As New OleDb.OleDbConnection Dim ds As New DataSet Dim da As New OleDb.OleDbDataAdapter Dim dv As New DataView Dim inc As Integer Dim maxrows As Integer Dim cmd As OleDb.OleDbCommand Dim constr As String Private Sub Section_Load(ByVal sender As System.Object, ByVal e … | |
Hi All, I have a combo box in a form, I want to fill it with names I have stored in a database. I know I have to use the fill command, but I am not sure what code I need to use. I imagine I need to place this … | |
Hello All, I was wondering how to click a button on the internet or another program via a program in visual basic 2010. An example would be: Have a program being able to click the "Search" button in google or the "I'm feeling lucky" button??? Does anyone know how to … ![]() | |
I cannot copy 2d array. There are no errors in my error list. What is wrong with my code? The problem might be located in create(). Thanks in advance. Here is my code. [CODE]int **map void randomize(int numberToSelect,int range, int *list){ int* remainingNumbers = new int[range]; int* chosenNumbers = new … | |
hey. How to load and save to XML. xml like: [CODE][track1] name= url= starttime= [/track1] [track2].... [/CODE] and how to load only name to listbox without all link. | |
What are some hints or tips on writing efficient functions? I read about converting the code to assembly, and I've also read about the stack and functions. However, I fail to understand how data stored higher can be accessed before the end on a FIFO stack, as any local variable … | |
Hey guys, For some reason I cannot get an image I have uploaded to display when I try to render it through an <img> tag within a response.write() API Call in C#. Here is my code: [CODE=C#]protected void uploadFiles(object sender, EventArgs e) { HttpFileCollection allFiles = Request.Files; for (int i … | |
currently, the company i work for has php scripts setup that update our websites inventory database using our local internal database and a few other things that run automated on a scheduled basis. the current way we have it setup is a local machine has the URLs scheduled for launch … | |
Dear team, I have done some java programs .Still i am confused what is the difference between j2se vs j2ee vs j2me . Can any one explain what is the diffrence . I want to do sun certificate in java.Can any one have idea about the sun certificate. Thank you, … | |
Im pretty new to Python, so i apologise in advance. My main goal is to parse a csv file (as per below) and to create a list named based on column 5 which includes values from column 7 as the elements. 01/11/2010,DEB,12345,12345,CREDIT CARD,,44 01/11/2010,DEB,12345,12345,TAKE AWAY,,20 01/11/2010,DEB,12345,12345,TAKE AWAY,,22 01/11/2010,DEB,12345,12345,TAKE AWAY,,24 The … | |
Hey again ...:P Now i have problem with save & load from/to text file. [CODE]private: System::Void zaÅ‚adujPlaylisteToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { OpenFileDialog^ dig = gcnew OpenFileDialog(); dig->Filter = "PlayList(*.PLS)|*.PLS"; if(dig->ShowDialog() == System::Windows::Forms::DialogResult::OK) { listBox1->Items->Add(IO::File::ReadAllText(dig->FileName)); } } private: System::Void zapiszPlaylisteToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { SaveFileDialog^ dig = gcnew SaveFileDialog(); dig->Filter = … | |
hai i want to embed browser in my java program i google and find JDIC.I dont know how to use it. So i really wanna ask can i use Jdic to emmbed browser in my java program. Is there any good tutorial. . | |
Is the anyone who can hjelp me with this code. I want to get data from a field of my table and show them in a dropdown menu. Every data I get become a dropdown of one element. I get want to get a dropdown with alle data from this … | |
So, this is probably a bit abstract, and I apologize if the title was imprecise: I have a simulation class, which contains a vector of objects of class A, the member functions of which depend on parameters a,b,c: [CODE] class SIMULATION { vector<A> array; }; class A { A(a,b,c); } … | |
Hello, I made a PM system but the thing that makes it read isn't working. Can you take a look at it anybody? [code] $postid = $_GET['postid']; mysql_query("UPDATE pm SET read=1 where id=$postid") or die(mysql_error()); [/code] And it gives this error: You have an error in your SQL syntax; check … | |
I need to add orkut like functionality on my site. When user Logs in he should see images of all of his contacts. When he clicks on an image his profile should be loaded. I need guidance achieving this. Presently I have created the hyperlink images at runtime in a … | |
Hello )) Please tell me - How to receive surnames of students and their mark in all subjects? in this form -[CODE] SURNAME1 1hismark1 1hismark1 1hismark1 1hismark1..... SURNAME2 2hismark1 2hismark1 2hismark1 2hismark1.....[/CODE] I use this database - [CODE] table STUDENT ( STUDENT_ID NUMERIC not null, SURNAME VARCHAR(60), ); table SUBJECT … | |
Hi I consider myself fairly new to VB.NET, so maybe you could help me here. I have a bindingSource which is bound to a dataset. I have a filter on the bindingsource. My problem is that when I add a new row, with BindingSource.AddNew, even if it does not match … | |
Hi, DO somebody know how to remove the rectangle graphics, I'm able to draw a rectangle graphics using this code: [CODE]Dim g As System.Drawing.Graphics Dim myPen As New System.Drawing.Pen(System.Drawing.Color.Red, 2) Dim myRect As New Rectangle(x1, y1, x2, y2) g = Me.CreateGraphics() g.DrawRectangle(myPen, myRect) g.Dispose()[/CODE] Is it possible to remove this … | |
2D vector data types should be different or same only .. for ex:: for one sub script with int data type and with another subscript with class name is it possible to declare with diff. data types | |
Hi, I am new member. I am not from any technical background but still like very much on how to develop application software and doing research regularly. My question form expert like you is Is there any powerfully software available that automatically create software without and coding knowledge. still conceptualizations … | |
Hi everybody I wanted to retrieve data from sql server and save them in arrayList I use the following format [CODE] sql="select bookid,bookname from BookTable"; Sqlcommand cmd=new (sql,conn) // I define reader here while(reader.Read()) { list.Add(new book(reader[reder.GetName(0)],reader[reader.GetName(1)])); } [/CODE] in book class I build a constructor [CODE] public book(int id,String … | |
How can i set my web page title as rotating. I have a page named "dog.aspx" and its title is "Dog Selection". I want this title to rotate continuously. How can i do this in ASP.net(C#). | |
I'm trying to use lucene in my project to search for people. I created the index using records from a db table of people (firstname, lastname, social, phone, address, etc). However, in the db, some of these fields are missing (ie, no address supplied). In my project, users can search … | |
hi there, i have a text box in a form to enter a float value.say that the user types in 1234567789.09 it should be formatted and display as 1,234,567,789.09 how can i do this. i am using a text box. please can someone help me in this or give me … | |
I have spent 4hrs+ trying to figure out why I can't catch an IOError. Most of the solutions I find, seem to be python-2 specific. I'm using python-3. Take a look at this: [code]def getfile(cfg): try: with open(cfg, 'r', encoding='utf-8') as tmp_file: tmp = tmp_file.read().strip().split('') except IOError as err: print … | |
Hey guys! Me again. I want to change some text inside a textbox when a checkbox is checked. I tried many things, but none seems to work. I need that, when checkbox gets checked, the textbox value gets deleted from backwars until a dot. Then, place another predefined text immediately … | |
Hi! my dear all. [CODE]#include<iostream.h> #include<stdlib.h> #include<fstream.h> #include<conio.h> #include<stdio.h> class payroll { private: char address[50]; float basic,allowence,deduction; public: void add(void); }; void payroll::add(void) { clrscr(); int e_no,choice; char name[50],ch; payroll e; cout<<"Enter Employe Number: ";cin>>e_no; cout<<"Enter Employe Name: ";gets(name); cout<<"Enter Employe's Address: ";gets(e.address); cout<<"Enter Employe's Basic Salary: ";cin>>e.basic; cout<<"Enter Employe's … | |
Hi pals, I try a code in my Dev -C++ Environment v 4.9.9.2 in Windows XP. I save file as "satwant_mysql.cpp" in E:/C++/ Directory.... [CODE] #include <mysql/mysql.h> #include <stdio.h> int main(){ MYSQL mysql; MYSQL_ROW row; MYSQL_RES *result; unsigned int num_fields; unsigned int i; mysql_init(&mysql); if (!mysql_real_connect(&mysql,"localhost","root","","MyDatabase",0,NULL,0)) { fprintf(stderr, "Failed to … | |
why do we need data structures, if it is a way of storing data in computer in an efficient way, then the computer itself has the ability to store the data in an efficient way, why do we create linked lists n other stuffs. why do we use stacks,trees n … | |
HERES THE CODE: [CODE]#include <iostream> #include <conio.h> using namespace std; int main() { int a,b,c,d; cout << "Enter Four Digit positive number: "; a = getch(); cout << char(a); b = getch(); cout << char(b); c = getch(); cout << char(c); d = getch(); cout << char(d); cout << "\nOutput:\n"; … | |
<?php require_once('upper.php'); require_once('database.php'); echo $error_msg=''; if(isset($_POST['submit'])) { $LoginId=mysqli_real_escape_string($dbc,trim($_POST['LoginId'])); $Password1=mysqli_real_escape_string($dbc,trim($_POST['Password1'])); $Password2=mysqli_real_escape_string($dbc,trim($_POST['Password2'])); $Name=mysqli_real_escape_string($dbc,trim($_POST['Name'])); $Age=mysqli_real_escape_string($dbc,trim($_POST['Age'])); $BloodGroup=mysqli_real_escape_string($dbc,trim($_POST['BloodGroup'])); if(!isset($_POST['Sex'])) { echo 'Please enter Sex<br>'; } else{ $Sex= mysqli_real_escape_string($dbc,trim($_POST['Sex'])); } $Qualification=mysqli_real_escape_string($dbc,trim($_POST['Qualification'])); $ContactNumber=mysqli_real_escape_string($dbc,trim($_POST['ContactNumber'])); $Email=mysqli_real_escape_string($dbc,trim($_POST['Email'])); $Address=mysqli_real_escape_string($dbc,trim($_POST['Address'])); $AboutYourself=mysqli_real_escape_string($dbc,trim($_POST['AboutYourself'])); //$countCheck=count($_POST['checkbox']); //echo $countCheck; //$checkbox=$_POST['checkbox']; //$countCheck=count($checkbox); if(empty($LoginId)){echo 'Please enter Login Id';} elseif(empty($Password1)){echo 'Please enter Password';} elseif(empty($Password2)){echo 'Please confirm Password';} elseif($Password1!==$Password2){echo 'Password didn't … | |
Can someone help please. I have search all the forums about my problem and i cant find answer to it. -Decided to post a thread. Its about making a lotto program in C using only loop control structures and decision control structes( if..etc.). and most importantly random function. ' :-/Don't … |
The End.