199,113 Archived Topics
Remove Filter ![]() | |
Is it possible to get the columns name from a select statement involving more than two table. eg [CODE]SELECT a.field1, a.field2,b.field3,c.field4 FROM a,b,c WHERE a.field1 = b.field1 and a.field1 = c.field1 [/CODE] is there a mysql statement that returns a record set containing field1, field2, field3, field4 that can be … | |
hey folks, i'm trying myself on a csv based adressbook but I get the following error: [CODE] Traceback (most recent call last): File "C:\Dokumente und Einstellungen\Mo\Desktop\adressbook.py", line 11, in <module> writer.writerows(data) File "C:\Python26\lib\csv.py", line 149, in writerows rows.append(self._dict_to_list(rowdict)) File "C:\Python26\lib\csv.py", line 140, in _dict_to_list ", ".join(wrong_fields)) ValueError: dict contains fields … | |
i want to create Java program that accepts 3 numbers (num1, num2, num3) and sort them in ascending and descending order. Example: Enter num1: 8 Enter num2: 3 Enter num3: 9 Ascending: 3, 8, 9 Descending: 9,8,3 can anyone help me for this (sorry for my bad English) | |
Hi, I'm trying to get a list of the subjects that I'm getting from emails in gmail. I can get the subjects, but I can't seem to get them into a list. Here's my code so far: [CODE] #! usr/bin/env python import imaplib M=imaplib.IMAP4_SSL('imap.gmail.com', 993) M.login('user@gmail.com','password') M.select() typ, emails = … | |
Looks like I miss something, so I need your help, guys. [CODE] #include <iostream> using namespace std; int main() { int* ptr=new int(2); const int* constPtr=ptr; int** ptr2; //... do memory stuff for ptr2 const int** constPtr2=ptr2; typedef int** intPtr; const intPtr ptr3 = ptr2; return 0; } [/CODE] Questions: … | |
Hey guys, just starting out with C#. I had a few doubts, would really appreciate it if anyone could help me out here Question #1 [CODE]animal dog; dog = new animal();[/CODE] what's the difference between the above two lines ? Question #2 [CODE]namespace proj1 { public class form1:form { guy … | |
How to open c++ using the command prompt so that I can start programming in c++? Thanks! | |
i was trying to run a program on RMI i did the following [code] import java.rmi.*; public interface HelloInterface extends Remote { public int add() throws RemoteException; } [/code] [code] import java.rmi.*; import java.rmi.server.*; public class Hello extends UnicastRemoteObject implements HelloInterface { private int m,n,message, k,l; public Hello (int m,int … | |
Hello, Can anyone tell me how can i use Unicode Text from a file in a String or in a TextBox? Please Help Thanks | |
I need the function to be able to walk in all four directions with equal probabbility and return the distance away from the starting point. The function below only takes steps forwards and backwards? [code] def main(): numWalks, numSteps = getInputs() averageSteps = takeWalks(numWalks, numSteps) printExpectedDistance(averageSteps) def getInputs(): numWalks = … | |
what is comment in VB.Net and how to comment. I having a test in 3 days time. Urgent!!!! Thanks in advance. | |
Can someone please explaon the difference of the above action listeners?? it seems like they both do the same thing - that is close a frame/window. big help thank you | |
I declared a map of the form [CODE]map<pair<int,int>,int> net;[/CODE] and inserted elements in the following way [CODE]net.insert( make_pair( make_pair(c1,c2 ),cost ));[/CODE] I could access the second element (cost, in the above code) using iter->second. But, I want to know how to access the two elements that form the first pair … | |
I have started to learn C++ and would like to know where to go from now. I have been getting helped by MattyRobot. I have done Hello World, Input, Sqaure of Numbers, Making decisions, Cmd games, Operators, Repeated question and started to make a window. I would like some help … | |
I want to code a little character fighting game in Pascal, I want to have 2 characters. They will attack each other, one will be computer and other will be the player. Each time its your turn a menu will come up saying what type of attack, I will have … | |
Hi guys, I don't know if anyone out there can help me with this. I will start of by explaining exactly what I am doing. I am currently developing a web based online examination system in ASP.net. Now I have set it up and it works perfectly except for one … | |
Hello all, I am in the process of translating a program from lisp into C#, most of it has gone smoothly but I have run across two blocks of code that are giving me a bit of trouble. If anyone can help me translate these two pieces of code into … | |
I am signing up for classes next semester and have put off taking foreign language becuase it is something that dose not really interest me. Anyways, what would be the best foreign language to take with my degree in an employers prospective? | |
I am trying to read the contents from the specified file into a char array and then send that to the client. The problem i get is that getline() wont take a char array as a parameter and strcat() wont take a string as a parameter so I dont know … | |
Hi, Iam new in python (1/2year) and here is the thing: I made a small text editor with tkinter and I want to generate web page from the text editor (from formated text). To web page generating I will use the HTMLgen module. So it must be created another python … | |
Hello. if someone could help on this problem please.. I have a griedView that renders books from a database. In each line a DELETE/EDIT button is rendered. I want when the user clicks the EDIT button, the CANCEL,UPDATE buttoms to appear and the EDIT buttton to become disabled.. I though … | |
I wrote a gui with qt and converted it into python.it came below. know I want to use the information witch user entered.for example the text boxes text or want decide around the buttons clicked or any thing else.at all how can i manage my qt forms data in my … | |
Hi, I want to pass a value from one page to another(say from page1 to page2) & the same value again to another page(say page3). What is the best way to do this in vb.net. Query string, Session Variables or any other method? Thanx “Peace comes from within. Do not … | |
Write a program to assign passengers seats in an airplane. Assume a small airplane with seat numbering as follows: A 1 2 3 4 5 B 1 2 3 4 5 C 1 2 3 4 5 D 1 2 3 4 5 E 1 2 3 4 5 The … | |
Hay, I am a noob, to the programing world, so i need a little help with lists. My problem is; I would like to create a list that contains the percent that each number of the first list is of sum of the firs list list. so like this. [CODE]first_list=[1,2,3,4,5] … | |
Im trying to create a python program capable of solving a maze. I need it to be able to solve a maze that is any number of rows in height and any number of columns in width. I need the maze itself to be brought in as input from a … | |
Hello guys.. i need a help.. m new in java swings.. m using netbeans to create one application.. here i have to insert a new jtable at runtime.. like when a click on a button jtable should be inserted.. how can i do that in netbeans.? please help.. | |
I'm trying this in Visual Studio 2005 (VC++) [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <bitset> #include <sstream> #include <conio.h> #include <iostream> using namespace std; #include <time.h> string tot_msg, message, to_be_sent_msg, sent_msg, msg_to_be_sent; char * transport_layer_data_header; char * transport_layer_data_msg; bool whole_msg_sent=false; int actual_len, i, seq_num=0; char * mynode = "2"; … | |
so i wrote a program that is suppose to have a array that has random numbers in it. sort the array, and then do a binary search and interpolation search to find the number and how many comparisons it took. i get it to work sometimes but the comparisons are … | |
Hi, I am using the following code to open a file "Zl2WIN". [code] FileStream filestream2 = new FileStream("ZL2WIN", FileMode.Open); BinaryFormatter bf2 = new BinaryFormatter(); Person JohnDoe = new Person(); JohnDoe = (Person)bf2.Deserialize(filestream2); textBox7.Text = JohnDoe.CallSign; textBox8.Text = JohnDoe.Freq; textBox9.Text = JohnDoe.Time; textBox10.Text = JohnDoe.fName; textBox11.Text = JohnDoe.lName; textBox12.Text = JohnDoe.Country; … | |
![]() | Is there a way to send a large amount of data through AJAX to a PHP script? Almost all tutorials say to modify the URL to equal whatever variable your trying to look up. I am wondering if it is possible to pass infomation to the server through an XML … |
[CODE]#include <iostream> #include <ctime> #include <cstdlib> #include <string> #include <vector> #include <fstream> #include <algorithm> using namespace std; class letter{ private: int genre; int price; string adress; public: letter(); ~letter(); }; class parcel{ private: int genre; int price; string adress; public: parcel(); ~parcel(); }; class post{ private: letter** LETTERS; parcel** PARCELS; … | |
Hi, i've been reading the other thread on serializing and use the following code to serialize the data in a textbox. [code] private void saveToolStripMenuItem_Click(object sender, EventArgs e) { BinaryFormatter binaryFormat = new BinaryFormatter(); Stream fstream = new FileStream("data.dat", FileMode.Create, FileAccess.Write, FileShare.None); binaryFormat.Serialize(fstream, (textBox1.Text)); fstream.Close(); } [/code] This successfully creates … | |
Hello. i wish to create a jsp page which will accept username and password from list and display a page showing the selected details when clicked on submit [code]<html> <head><title>course information form </title></head> <body> <form action="course_details.jsp" method="post"> username: <select name="username"> <option>nikhil</option> <option>avdhut</option> <option>gauri</option> </select> <select name="course"> <option>MCA</option> <option>MBA</option> <option>MCM</option> <input … | |
Is there a way to split a string every 30 characters and store them in smaller strings without looking for a token? | |
I have written a javascript function that calls a web service to save data. When the web service is called an alert pops up saying [I]the server method saveUpdateCodes failed[/I], and it gives no other information. The thing is the web service executes and throws no errors (I've stepped though … | |
i Need Help to done this project for my school USER Requirement statement Booksareus wishes you to design a program to satisfy the following requirements: Display a Welcome screen Display a menu of option, accept and perform user choice of option untill E for exit is chosen B.Book List I.Invoice … | |
I usually feel pretty bad asking simple questions like this, but I've a deadline that's fast approaching. What, if anything, is wrong with this Update statement? [CODE]"Update ScoutInfo Set YearID = 20092010, GSUSAID = 1, FName = 'Jacob', LName = 'Lowe', DoB = '10/16/1989', Grade = '12', Level = 'Ambassador', … | |
I have to write a program that creates a GUI that prompts a user to enter a query, then return the result to the same screen. All the examples I've found in my text book and other course material only shows how to account for a predetermined query. How do … | |
This program is supposed to add, subtract, multiply, and divide complex numbers and doubles as well as complex numbers against complex numbers. When i try to run it, I get a syntax error at line 59 and cannot figure out why. Any help/advice/pointers would be greatly appreciated. [CODE]class complex: def … | |
I need to install these 3 tools in order to run Agriya Volume, but how do I? I'm running on a basic plan (linux) on securesignup. I don't have root access. Is there anyway? Or do I have to buy a VPS?? The three tools are: Mplayer + Mencoder Flvtool2 … | |
Hi everyone. I'm a reta-I mean a beginner and 98% of my bugs are something really obvious... but I've checked this so much and I don't know what to do. This is my function to create an Employee object, called when the user wants to add a new employee to … | |
I am trying to draw a hollow square and I am having a problem with nesting while loops within while loops. Is this possible? The quoted part of code is the trouble part. #include <iostream> using namespace std; int main(void) { int sides, t=2, h=0, b=0, s; cout<<"Size of square: … | |
I have this code that uses epoll and it has a problem. When I run it, it gives output: Server-socket() is OK... Server-bind() is OK... 3 4 accept: Invalid argument I'm running it on ubuntu linux, system updated, both as limited user and root what is wrong with the input … | |
Its showing size of type is unknown or zero [code=c++]#include<conio.h> #include<stdio.h> #include<graphics.h> #include<iostream.h> #include<math.h> int gc,gd=DETECT; int x[3][4],tx,ty,i=0; float turn[3][4]; void draw() { moveto(x[0][0],x[1][0]); for(i=1;i<4;i++) { lineto(x[0][i],x[1][i]); x[2][i]=1; } lineto(x[0][0],x[1][0]); } void rot() {double ang; float rot[3][3]; cout<<"enter the angle through which u want to rotate the figure\n"; cin>>ang; rot[2][2]=1; … | |
I have an assignment to write an ATM program (it just needs to be basic) and I am getting one error when I try to compile: On line 28, I get an `expected unqualified-id before '{'`. I don't know that it's the only thing wrong with it, but any ideas … | |
Hi I am new to this forum so please excuse me if am not following the etiquette. I am a beginner in wxpython. For a project I need to create a color palette. Please check and tell me what I am doing wrong. Any help,suggestion,code snippet is welcome. [code] import … | |
I made the following function for my Sudoku solver but the answers keep turning out wrong (some of the numbers are showing as doubles right next to eachother). Can somebody help please? [code=c++] void reduction_candidateLines(void) { /* * declarations */ //drives loop int k, j, x, y, z, t; //counts … | |
/*This is an assignment for school. The main is part of the assignment. The program will work sometimes, sometimes it will not count the longest word if it is at the end of a sentence.*/ #include<iostream> using std::cout; using std::cin; // Prototype for the longest_word function that you need to … | |
I am researching how to create a dll in VB..can it even be done? Does anyone know of any sites or books that can help me through this process? |
The End.