199,114 Archived Topics
Remove Filter ![]() | |
The concerned question is: If there are a bunch of unique items, which one (vector or set) wold be more efficient to search for a particular item by value and why? As I understand vector is more efficient (because of contiguous memory) to search by position index. But in this … | |
hi everyone, i dont no much about vb.net ....i am php developer i have just developed a mini application in vb.net i wanted to know how to hide our application from appearing in task manager....help me guys with some code | |
I need used one button to change the state of the light, and the light should have green, amber, and red lights and cycle through green -> amber -> red -> green each time the button is pressed. My code [CODE]import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.Graphics; import java.awt.event.ActionEvent; … | |
I need to create a program that prompts for the lengths of a triangle and computes it. I have the equations figured out (bottom of code). What I am stuck on though is, well, getting it to work. Any help here would be FAN-FREAKING-TASTIC! PS. I won't lie, this is … | |
hi... i have multiple buttons in a jsp page .. consider a department page where i have 3 textboxes--- 1- dept number 2-dept name 3-dept location below these i have 7 buttons--- 1)next 2)previous 3)last 4)add 5)edit 6)delete 7)save when i click on the button how do i get results … | |
hii ppl.. i have a edit form, which is populated from the database, things work fine till here. now i want to update the table with editted details. if i echo the details from $_POST variables it prints fine. but if i update the table it doesnt.. this form is … | |
Hii, After performing a logout action, my index page is continously refreshing, or it tries to load that page. Can you suggest a solution for this. It happens only on IE and I'm using struts1.3.8..... Thanks in advance | |
Hey guys, i hope you can help me, i have a problem. I found in the net a code for taking a screenshot. the code works well, but the quality of the outputet bmp file is not good. I have not enough skill to find the place where i can … | |
Team, Could you let me know what the below function does which is part of my actual script.. Yeah as per my understanding it checks whether the TAR file has been completed or not.. but what is the 1; does below is it end of line or something other.. CheckRetStat … | |
Hello, I am working on a program for my operating systems class dealing with catching signals and exit status's. The long and short of the assignment is to have a parent create a child and then wait for the child to die. When the child dies the parent should capture … | |
Team, I have a shell script which will b run in cron job. On an adhoc basis. The script needs to be run such that the moment it goes to the particular directory. It should adapt to its ownership. But the script which i had shared below is run by … | |
Hi Folks, I need help to generate keystrokes in my existing application in LINUX environment. I am fully aware that there are libraries in Dev C++ which do exactly what I want but in Windows and I need something like that in Linux. I have googled a lot, but could … | |
Can anyone fix my problem? I'm sure my getDate function algorithm was right, but it still wrong.. here is the code: [code=c] #include<stdio.h> #include<string.h> #include<stdlib.h> typedef struct{int day,month,year;}Date; typedef struct{ char name[31],gender; Date dob; }Student; void getString(FILE* x,char* y); Date getDate(FILE* x); char readChar(FILE *x); int main(){ Student pupil[100]; int … | |
hi just wondering how do i transfer table's records to another table?? i'm wondering where do i put the queries, or am i gonna put it in my stored proc? any help will help thanks | |
Hello all, I'm using MS Access as my DB for a very simple web site. Everything was running nicely till all of a sudden I can't inset rows into any table in my MS Access database. In my tests I even created a fresh and clean table1 with one number … | |
i'm doing a rpg for fun but this one function is giving me problems. it compiles without problems, but when i test it, the hp stats done change. this is the code for the function. [CODE=c]void attack(dragon *d1, dragon *d2) { if(d1->getdef() < d2->getatk()) { d1->changehp(- ( d2->getatk() - d1->getdef() … | |
Hello, I'm trying to use wxWidgets to get mouse, keyboard and joystick events without creating a window context as I'm using GLUT for that. Can it be done and if so how? All the examples I see have the events tied to some sort of visual context. | |
I need to know if it is possible to store click event of a button in a variable. I tried doing it but didn't get any solution. Please help Regards | |
this is a far stretch but i found this fourm online and i thought i'd give it a shot since i dont know where else to turn to... I tried my best to implement the array into ascending order but i'm not sure if it's correct. I needed it to … | |
![]() | I am currently working on a project called movie reservation and I am almost done, the only problem right now is the seats. I have no idea how I can display 200 seats and identify whether a seat is already taken or not. Also, each row must be referred as … ![]() |
[CODE] Pls, can any one tell me what is worng with this code? when i run it , this is what i get [There was an error with the database. It has been logged.] any help? Thanks. <?php session_start(); $navtype = $_GET["nav"]; include "config.php"; ?> <?php if($navtype == "mail") { … | |
[CODE] Dim connection As OleDbConnection connection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " _ & "Data Source=" & Server.MapPath("~/Database/dbLupon.mdb") & ";") Dim command As OleDbCommand Dim commandPos As OleDbCommand commandPos = New OleDbCommand("Select POSITION_C FROM tblLupon_C WHERE POSITION = 'C' REGION_C = '" & lblRegion_C.Text & "' AND PROVINCE_C = '" & lblProvince_C.Text … | |
Hi, I am getting the following errors: HelloWorldApp.java:54: <identifier> expected public static Vector<int[]> breakTheMovementVector(int i,int j){ ^ HelloWorldApp.java:102: ';' expected } ^ 2 errors [CODE] import java.io.*; import java.util.*; class HelloWorldApp { public static void main(String[] args) { try{ // Open the file that is the first // command line … | |
Hi people I need some help here. Here is the CODE : [B]for Form1:[/B] [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace practice { public partial class Form1 : Form { Form2 obj; public Form1() { InitializeComponent(); } … | |
hi, i have searched online and can't seem to find something I understand for a timer. I have a boggle game that needs to have a 3 minute counter so I figured I'd have a countdown from 3 minutes...but the only thing I've found in other peoples codes and the … | |
Hey Guys, I have the following code: [CODE] class A { int a,b; A(int i,int j) { a=i; b=j; } void showab() { System.out.println(a+" and "+b); } } class B extends A { int k=20; void showabk() { System.out.println("a="+a); System.out.println("b="+b); System.out.println("k="+k); } } class Test { public static void main(String … | |
Hi, I am seeking some advice about how to tackle a programming problem. I'm not wanting code just some suggested ways of handling the problem. I am trying to develop a program that displays images that have similar visual properties. For each image, and for each of the rgb colors … | |
I have a table that contains ID, lastname and firstname of a person. How to make my stored procedure handle the where conditions using only stored procedure. SELECT * FROM person where lastname = @lastname SELECT * FROM person where firstname = @firstname SELECT * FROM person where ID = … | |
hello guys and girls, im new to this forum.. so please be gentle :) Im developing this application to improve my ability to develop applications in c#.. so far i've fingured out that im not that good at it. I fetched out my old college coursework case study to work … | |
Hi, For the benefit of newbies here is a list of all the topics you need to know to program a connection using VB to a SQL Server database and develop a database software. 1. Network Operating system. 2. SQL Server 2000 Installation on a Client / Server Network. 3. … | |
i keep getting this error: [icode] error: expected ‘)’ before ‘,’ token[/icode] this is the code i'm using: [code=c] dragon(string str = "wild dragon", int level = 5);[/code] this is inside a the dragon class definition. [code=c]dragon::dragon(str,level) { name = str; tp = ((rand() % 6) + 1); type = … | |
Hello, I have two forms (Main, Login) when the user logs in and has the right email / password.. I would like it so I can display the username on the main screen.. I have a class and I'm setting the values inside the class however when I try to … | |
[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace FriendBirthdayReminder { class Program { static void Main(string[] args) { FileStream file = new FileStream("FriendsData.txt", FileMode.Open, FileAccess.Read); StreamReader reader = new StreamReader(file); const char DEMLIM = ','; const int END = 999; int count = 0,num,size; string name,recordIn; string[] … | |
Hi. Can anyone help me with this code? I have a form which takes subject name, semester and class. I put this data in a database tables using 2 ADODC’s and the connections are as follows: ADODC3- LecturesAttended (StudentID, RollNo, Name, SubjectName) ADODC4- Student (StudentID, RollNo, Name,Class) I take studentid,rollno,name … | |
Who can teach me how to make Class to store database location When want to use just call the location. Everytime I will write again the connection. When database location is change, I will change the database location one by one. This is time consuming and difficult to maintain program. … | |
hello guys, this is my first post asking for a help. Actually i am a PHP/Mysql developer. i am newbie to vb.net and i am trying to develop a application which asks for a password when the user tries to open any.exe file for example: [CODE]Private Sub Form1_Load(ByVal sender As … | |
Hi All, I'm trying to disply the last part of a hyperlink using the expression builder in access 2010 textbox. eg. #\\abc.org.uk\Root\OurSrevice\OurTeam\Peter\Dump\MyDoc.doc# #\\abc.org.uk\OurSrevice\Team2\Folder2\YetAnotherFlder\Dump\View\MyOtherDoc.doc# In the first example I want to display MyDoc.doc In the second example I want to display MyOtherDoc.doc I suspect I'll need to use the RIGHT and … | |
I can't seem to capture keystrokes (via onkeydown) in Firefox. Now before you judge too quickly, here is a snippet that DOES work in Firefox -- but only by itself; not when pasted into my program: ------------------------------------------------------------------------ [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <script language=javascript> <!-- function vProcessKeyboard(e) … | |
Hi all, I have some problems with my program, as it always compiles with segmentation fault after it run finishes. ANy help is appreciated [code] Program received signal SIGSEGV, Segmentation fault. 0x00375d37 in ?? () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0x00375d37 in ?? () from /lib/tls/i686/cmov/libc.so.6 #1 0x0804992b in Chord::isValid(char*) … | |
how to develop a smart pen using c#.net? Regards Dilake | |
So I have a program that runs a loop in main to call functions to show all seats with their name and to reserve seats. My code works fine to reserve a seat. But when I reserve a second/third/fourth seat the name I enter for that seat overwrites the names … | |
Well, it is probably simple for most of you. But it is returning errors for me. Just a heads up, I am creating registration with mySQL database and I am using "email" in place of normal "username" during registration. Here is code for page after registration has been attempted: [CODE]?> … | |
Hi Sorry for my bad english. I am using a <tbody> section and I had set height of Tbody .But When the number of rows are small the height of the row will increase. I have tried to use max-height instead of height. But it doesn't works. I am using … | |
i have sms gateway but i dont know how to implement it. i have a usr path which i have to pass from browser without seeing to user..can u send me code and tell me how to implement and solve this problem | |
I am trying to learn java. I want to know whats the best way of doing it? For example I got the code for setting up a TCP server in java which sends the data given in string. Now I want it to send the data dynamically to the client … ![]() | |
Hi all, I have been playing around with trying to create an english to pig latin translator. I am not really sure where to start, so right now I am just focusing on splitting a string and search for "A", if the word has "A" add "way" to the end … | |
I'm doing a function that returns the index of the largest integer in the array it's an easy function.I've done it but I don't know why the output is always 10 although i want to return only the index of the largest number and here is my code: int MAX_INT(int … | |
I am having trouble figuring out a start off point for this project. Can anyone help me get started? I would really really appreciate it. I'll post the code and instructions below. Bluebird Airlines needs a program to assign boarding passes on its only plane which has a seating capacity … | |
This is a fairly easy homework, but I am new to c++ and would like some help. (to my teacher, if you happen to read this, I'm not trying to cheat, but get help to better understand the concepts in this assignment.) An overview: [INDENT]"Read an unordered collection of calendar … | |
Hey, I'm new to C++ (1 week, used to do Python), and it's very enjoyable, but I have an issue. In the following code: [CODE] int sizeofarray; cout << "Type size of array: "; cin >> sizeofarray; int myarray[sizeofarray]; ...........more code [/CODE] That isn't the code, but that is the … |
The End.