64,152 Solved Topics
Remove Filter ![]() | |
This is my final project for my C++ class online. I was instructed to make a test and to pull answers from withing a .txt file and compare them to the answer that the user inputs. I'm sure there's a much easier wau of doing things than the way I'm … | |
I want this javascript to directly compare the username and password of the user who login to mysql table that holds all the registered username and password.. [code=javascript] <script type="text/javascript"> $("#login_form").bind("submit", function() { if ($("#login_name").val().length < 1 || $("#login_pass").val().length < 1) { $("#login_error").show(); $.fancybox.resize(); return false; } $.fancybox.showActivity(); $.ajax({ type … | |
Good day! Ive been working with fancy box login and now Im almost at the point to accomplish it. I want to get the login username and password from the array that fancy box was created.. The main task is to pass the login username and password value from login … | |
Hi all, I'm trying to build a program in visual studio 2008, when I build in debug mode, it runs just fine, but if I try to build in release mode, there are no errors but when the program runs I get this error: The program can't start because MSVCR90D.dll … | |
im trying to convert double to string with this code: if its a number like 3.7345 than its working - but if its 5.0 (only zeros after the point) [CODE] double number=5.0; string ToString; stringstream out; out << number; ToString = out.str(); return ToString;[/CODE] it returns - 5 and i … | |
I'm trying to read integers in a .txt file into a 2 dimensional array (map). Here is the function: [CODE] void loadmap(int mapnum) { int x; ifstream inFile; inFile.open("level1.txt"); if (!inFile) { cout << "Unable to open file"; //exit(1); // terminate with error } for(int countline = 0; countline <= … | |
I just found a question whose statement is as follows: [COLOR="Green"]Write a function contains(const char*, char) which returns the pointer to the first (left-most) occurrence of the 2nd parameter char in the 1st parameter cstring, or NULL if the cstring doesn't contain the char. [/COLOR] Another condition is that inside … | |
i got something really stange going on with mysql.look [CODE] <?php $numid=$_POST['numid']; $query1="select * FROM datatable LEFT JOIN datatable2 ON datatable.numid=datatable2.numid WHERE "; $connect=mysql_connect("xxx","xxx","xxx") or die ("Check your server connection"); $db_found = mysql_select_db("mydb",$connect); if ($db_found) { echo "Database FOUND <br>"; if (strlen($numid)>0){ $query1.="numid='$numid' AND "; } $query1=substr($query1,0,(strlen($query1)-4)); $result = mysql_query($query1); … | |
![]() | Hi I was wondering if there has ever been/ are plans to be a python os and if it exists where could it be found? secondly i was wondering if python could be installed on windows mobile or android? |
HI guys, I want to create and encryption system that converts a character to encrypted data, I'm thinking about using the ord() and chr() functions in python then slice the sting into characters implement the encryption on each character and bring them back together what do you think, Is there … | |
hi everybody, i'm a student and i'm sick of going around this. lol i have to make a game of tic tac toe, and i did everything, and everything is working fine exept this. this is a method to see if there is a victory in a line, it does … | |
hi I have a list like L=[1,2,-3,5,12,0,-2,23,51,-10,1,68] I have to Subtraction each item of list from other .i.e l[1]-l[0] & l[2]-l[0] & l[3]-l[0]&... and l[2]-l[1]& l[3]-l[1]&... and l[3]-[2]&... I must arrange this Subtraction in a table.I know I must use while or for...in... to create tow loop but I am … | |
I use Visual basic 8.0 I have a bound Datagridview. This Datagridview has 25 row. Only thing i want to clear the row [COLOR="Red"]Contents[/COLOR] of a specific row. [COLOR="red"]I want not delete of remove the row!!!![/COLOR] How can helpme with this problem? Thanks, André | |
elow I'm trying to create a program that will display the output : [code] * ** *** **** [/code] please help me [code=c] int main() { for(int i=0;i<=7;i++) {for(int j=0;j<=i;j++) cout<<'*'; for(nt k=0;k<=i;k++) cout<<' '; [/code] then what next its only give the output [code] * ** [/code] please help … | |
[CODE] <script language="javascript"> function add() { var divTag = document.createElement("div"); divTag.id = "div"; //alert(divTag.id); //divTag.setAttribute("align","center"); //divTag.style.margin = "0px auto"; var j=1; divTag.className ="dynamicDiv"; var v1 =document.getElementById('ttlBoxes').value; var v2 =document.getElementById('boxno').value; var d1=parseInt(document.getElementById('ttlBoxes').value); var d2=parseInt(document.getElementById('boxno').value); if(v1!=""&& v2!="") { if(d2<d1) { divTag.innerHTML ='<br /><table width="101%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable" ><tr ><td width="150" … | |
The Eric4 IDE I've been using IDLE under the latest Enthought release (python 2.7) running windows XP (and windows 7 on another computer). But I decided I wanted to use a real IDE with the goal of writing GUI applications. It seemed like Eric4 would be a reasonable choice. I … | |
Hi! I'm working on code for a personal project thingie, and I'm stumped by part of it. I am trying to search a line (provided in a separate .txt file) to see if I can find any consecutive occurrences of elements of a list in said line. For example: in … | |
hi again, I think I installed Java 3d correctly... I can compile code, but the code won't run. this is the error I am getting: [QUOTE] # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0949c964, pid=3832, tid=3604 # # JRE … | |
ok so i have a project for school, and i finished so the teacher wants it to read for a .dat the parameters for the java class here is what i got: [CODE]public void cargarCurso(){ try{ BufferedReader fileIn = new BufferedReader( new FileReader("c:/cursoSem2.dat")); String dataRenglon = fileIn.readLine(); while(dataRenglon !=null){ StringTokenizer … | |
I am new to VB.Net but have a strong background in C# so it isn't that hard to learn it. One issue I have noticed is how enums work. In C# a public enum is considered static, for example: [code] public class foo { public enum bar { enum1, enum2 … | |
EDIT* Sorry I didn't mean to add that error message in the topic title. Hey guys, I'm new to PHP and MYSQL and I have been searching for hours for a way to copy the data from a row in one table (all columns) and insert it into another table … | |
![]() | Hello, Im trying to make a simple equation solver with tkinter. Originally i built it without using classes and it worked fine however I am now trying to use a class. [CODE]from tkinter import * import math class RootFinder(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.grid() self.create_widgets() def create_widgets(self): self.root1lbl=Label(self.outputframe, text='') … |
Hi I have always seen many softwares having a customized look, for example, PuTTY software has two computers icons in a network. Others, such as NetBeans IDE, when double-clicked first show some sort of a window before showing a real software environment. So I am just curious about how this … | |
Hi, I am a beginner in programming of python , in python to view all the functions and other objects of 'keyword' module,i used the command ,dir results the some objects like __file__,__package__,__doc__ but these are not the functions of keyword module,could u please tell me the reason................. :D >>> … | |
I have this code: [CODE]def welcome(): '''========Welcome to Jaron's======= ====Video Game Rental Service====''' def menu(): while True: print '''0-\t Exit 1-\t Register 2-\t Log-in 3-\t Browse 4-\t Read-me''' try: menu_choice=int(raw_input('Please make a selection by number: ')) global menu_choice break except ValueError: print "Oops, it seems like you made a mistake. … | |
I am going through a tutorial and have come to opening a file. I'm running it in Command Prompt, but I know there is no problem with that because I have been running code in it without problems. Here is the code I'm supposed to be typing: [CODE=Python] f = … | |
I am creating a program that will install multiple programs, because I build new computer quite often. For example "MyInstallProgram" will launch and allow the user to select which programs (MSOffice, Acrobat, WinZip etc.) to install. When compiling the program, what code can I use that will insert a time … | |
I have a datatableof string values.one of the column name target attribute(that column will have maximum 4 different strings ,but all repeated in several rows,repetition of the four strings also not equal) is already known.I had found out which column number it has.again i have to find what are the … | |
I am learning visual c# and am having trouble subscribing to an event. The book says, [B]"Now you create the handler for the two text boxes that must be checked to see whether they are empty. You do this by subscribing to the Validating event of the text boxes. You … | |
Hi. I am trying to send the name of a file which is going to be launched for execution using a script from a *.js file. So in the original *.php file i have imported the *.js file like this: [CODE] <script type = "text/javascript" src = "getListsInfo.js"></script> [/CODE] Then, … | |
Hello, Can anybody help me for connection to multiple database dynamically. Its means I wann to connect the respective database by choosing of the user , Tell take an exmple we have 3 clients namely C1,C2,C3 and having respective databases namely D1,D2,D3. I want to connect the database D1 if … | |
Hi all, I have been trying to remove the URLS with [url]http://www.CHickenHead.com[/url] that have areguments ?s= and ?sul= fromt some text. I can remove them but it is not case insensitive on the domain name part. How can I modify this regex? I have tried (chickenHead.com)i but this doesen't work. … | |
i have a radio button and a text box. when i select the radio button, then will come out the text box to let user fill in. may i know to show the text box? below are my coding. [CODE] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) … | |
[CODE] int x,y; while(cin>>x>>y) { if(x>y)cout<<x<<"\n"; else if(y>x)cout<<y<<"\n"; } [/CODE] This seems clear,but when I entered this: [CODE]2 4 6[/CODE] and hit enter, I get this: [CODE]4[/CODE] after which I am being asked to enter something again. I put 8, and it prints 8. But what is exactly happening here? … | |
Hello, I have just been added to a VB.Net Windows Application project. I have downloaded projects from Source Safe and I am runnning into problems viewing various forms across all th projects. When I try to view various forms in VS2008 I get this error: [I]The designer could not be … | |
Im trying to have this program continue to run when you enter y or Y at the end or quit when you enter n or N. Everything I try either has it just end or continue to repeat. Any help would be great, thanks! [CODE] #include <iostream> #include <cmath> #include … | |
I have a check button and I was wondering how to get the value from it. When I use this code it gives me that it is selected always, even when it is not. [CODE] public void itemStateChanged(ItemEvent e) { // TODO Auto-generated method stub JCheckBox sourceBox = ((JCheckBox)e.getSource()); wave1Invert … | |
[code=text]mysql_query() [[url]http://www.mysql.com/doc]:[/url] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'into kiwanis_info ( 'identity', 'firstnam', 'lastnam', 'phonenum', 'emailaddr', ' at line 1[/code] Above is waht I get when inserting into a file from … | |
I have this problem: I have a data structure called DACT, that I convert into a string line and send to another computer. I have a file full of DACTs, and I need to send them all to another computer. When I send only 100, it works fine, but when … | |
I'm having a real difficult time getting two threads to run simultaneously..... Both of the threads contain 'do while' loops and depending on which one is reached first, it locks out the other thread. My code is as follows; both threads are started together by the click of a button. … | |
Hi there. I'm having a problem getting values from a drop down to insert into a table. What I want to do is get the key for the value and then insert that. For example: I have a table called format which holds an auto incremented ID key and a … | |
Hi there!... i was seeing some codes in Python, but i can't understand it, so... i really don't want learn phyton, by that reason i want to know some things (specific things) for try convert it, now... if someone can convert it for me, i'll be sooo glad :P. Here's … | |
I have been working with lists for a year now, but I am inconsistent with the way I have them setup. I want to know the standard. Let's say you have a computer represented as pixel colors in the form of a list. To simplify it let's just use numbers … | |
Hi guys, I have a windows form frm1 that calls another form frm2 by the following code: [CODE] this.hide(); frm2 new_frm2 = new frm2(); new_frm2.ShowDialog(); this.Close(); [/CODE] it takes about 5 sec for the frm2 to show so I'd like to use waitcursor. I found that the waitcursor can only … | |
Here my question I need a decoder for binary codes from a text file but the problem is when I put a space in the text file tpos values crash I know what the problem is the while(fgets(buf, 8, fb) != NULL) because some binary codes are only 6 characters … | |
please could some one understand what i am saying i need a program that can count number of digit in a number given by the user .for example if we see123 it has 3 digits...? | |
Hello, forum. My question is: how can I format my output when outputting in JTextArea. I want to have the same functionality as System.out.format has (custom spaces between values). Maybe it is possible to print PrintSream objects in JTextArea? I am currently using append(String s) method but I am not … | |
Hi all I think that I should start this by saying that I am fairly new to C++. Currently, I can only write basic OOP programs. However, I have been given a task at work to compile and link some old code that we have (roughly 10 years old) to … | |
Hi Friends I am using dynamic text box, i want to calculate the amount from value of rate in the text box and qty Pls help me how to solve it... [CODE]<?php include("config.php"); ?> <script type=text/javascript> function multiply(){ a = document.getElementById("rate").value; b = document.getElementById("qty").value; c = a*b; amt = alert(c); … | |
Just a beginner asking for guide. :) [CODE]private void button2_Click(object sender, EventArgs e) { for (int i = 0; i < listBox1.Items.Count; i++) { listBox2.Items.Add(listBox1.Items[i]); listBox1.Items.Remove(listBox1.Items[i]); } }[/CODE] This is the method I made for moving all the items in a listbox to the one next to it. Apparently there's … |
The End.