132,726 Archived Topics
Remove Filter ![]() | |
i am using vb dot net 2003. I want to store randomly generated numbers in an array. The Numbers are declared as integers. The amount of numbers generated will not be constants so i can not initialize the array before hand. However the numbers generated will be from 1 to … Software Development vb.net | |
Dear Sir/Madam, I'm currently trying to compare a value from an array vs (In the first instance) A set character, and (in the second instance) against a set integer. None of the comparisons are ever returning true even when they appear to be the same on a printf statement, although … Software Development c | |
I am trying to construct a class and call upon some functions within that class, but nothing is returned, somehting should definitely be returned [CODE] #!/usr/bin/python import cElementTree as ET import urllib2 import MySQLdb print "Content-type: text/html\n" class xml: @staticmethod def find_text(element): if element.text: yield element for subelement in element: … Software Development hardware-swap python xml | |
![]() | i cant figure out what's wrong with my code. can anyone help me pls? [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class MyGUI implements WindowListener, ActionListener { public void windowClosing(WindowEvent e) { System.exit(0); } public void windowClosed(WindowEvent e) { } public void windowIconified(WindowEvent e) { } public void windowOpened(WindowEvent … Software Development java java-swing ![]() |
Hi all, I have created a simple SQL Server database by Visual Studio 2005, with one table 'Friends' that has just ID, Name, Phone, Email. Then created a datagrid to this table (just by dragging the table name from the 'Data Sources' explorer to the form. When I run the … Software Development vb.net visual-studio | |
hi i just done my program and the input have some digits gone from it.i don't know how to recorrect it so i will like to seek advice here please [CODE] #include <iostream> #include <cmath> using namespace std; void convert(int , int, int, int*); //convert(number, base, length, result) int len=0, … Software Development c++ | |
hi guys! i need help ! what's wrong of this code?? this program will input five names and will output the five names i inputed. but when i run this program and i inputed a five names. It couldn't give me the exact answer.. the output should be this: please … Software Development c++ | |
In a queue, where elements in integers are added, how do i do this: Inside the queue: 1 2 3 5 6 8 when I want to add a number, say 4, the output should be like: 1 2 3 [B]4[/B] 5 6 8 in which it inserts in between … | |
I'm trying to write a program that will calculate rations, max, min, total and average #. I'm told I can use #include <algorithm> but I don't know how to use it. I need it to spit out something similar to the following: How many in the first category? 8 cats … | |
I was wondering if it's possible to ignore certain digits of a number, and how it would be done.It will always be a 21 digit number, and i want it to only use the last 7 digits of the number. Eg: 000J90120071000002291 is the number, and I only want it … Software Development c++ | |
Is it possible to declare something like [code=C++] string blah[51] [/code] The way I would assume this would function is that each elements of the blah array would be a string, or is this not possible? Thanks Edit: just tried this in dev c++, and it didn't give me any … Software Development c++ | |
My goal is to have a vector fileList of type ofstream that I could later loop through to write the same information to each of them (copying at the end is not an option). The list of files comes from argv (processed by getopt). I understand that I need to … Software Development c++ | |
In excel, what I am trying to do is list the number of occurrences of column B, based on the number from column A. Here is sample data: [B] A..........B[/B] 3..........40 5..........56 2..........23 .......... .......... .......... .......... Example output to column C would be: [B]C[/B] 40, 40, 40 56, 56, … Software Development visual-basic | |
Hi. I am using an std::Vector and I have a question about memory allocation. I have a vector of animation objects inside my graphic object. I add new animations externally via this method: [code=c++] void Graphic::addAnimation( int* frames, AnimationStyle style, int frameCount, double updateInterval) { Animation* a = new Animation(frames, … Software Development c++ | |
Hi i'm new to C programming, and i have this homework which i need to do on compounding interest, i would like to know whats wrong. it says, "Run-Time Check Failure #3 - The variable 'HoursWorked' is being used without being initialized." same with other variables. below is my code. … Software Development c++ visual-studio | |
I have a folder on my server named [B]'EVENTS'[/B] and it contains an additional 50 folders [B]'EVENT1', 'EVENT2', 'EVENTS3'[/B] etc, etc. Each of these 50 folders contains within them a varying amount of files and folders also. (So that is the set up). I am wondering if it is within … Software Development shell-scripting | |
Please help me, Create a C# application that uses 3 threads and the HTML colour specification, to slowly change its background colour every second. Software Development | |
Hi, I was wondering how you would intercept data on a given port without interrupting it in WINSOCK. Like if computer A sent computer B "hi" on port 1337 and it was received on a server program. How could I listen for that data on computer B, but still let … Software Development c++ | |
Hi All, I've form with two controls, one TreeView & one PropertyGrid. The treeview displays the list of equipments. when I select any node from the treeview i.e. any name from the list of equipments, then the property grid will dispaly all the attributes of that selected equipment. The property … Software Development vb.net | |
Hi, I'm trying to program Tetris. The thing is, I can't seem to get the Keylistener to work in the JApplet, and I have no idea why :( Here's my code: [CODE=java] import java.util.Random; import java.awt.event.*; import java.awt.*; import javax.swing.*; /** * Class Tetris - write a description of the … Software Development java java-swing | |
Hi, I'm working on an algorithm that solves a maze from the inside, and seeks out 1 of the 4 exits on the sides, and after getting 1, it goes to the next until it has them all. The maze is always 22x22, and you only have 400 steps. I … | |
im using windows xp, and ive installed and unistalled dev C++ several times and i can not get it to work (compile and run) for any program even "hello world". even the dev c++ examples show a [linker error]. the code exactly is: [Linker error] undefined reference to `__cpu_features_init' ld … Software Development c++ | |
In my form I have a pull down that will display the names of all the clients. The users select a name, and it is entered in the field. But, then I have a few lazy Uses that will enter any thing to save time on their part. This is … Software Development display visual-basic | |
Hi I want to know some information about[COLOR="Red"] (( files ))[/COLOR] I specified two questions and I hope to answer them. [COLOR="Red"]First :[/COLOR] using function ( [I][B]read [/B][/I]and [I][B]write [/B][/I]) [CODE] fileName.write( reinterpret_cast< const char * >( & variableName ), sizeof( Ttype ) ) ; [/CODE] in binary files only … Software Development c++ | |
hello i just to know how to define an array... when using a variable... for example... [code=c++ ] cin >> numb; int an_array[numb] [/code] when i try it...it tells me cannot allocate an array of constant size 0 and unknown size ... so could you please tell me how do … Software Development c++ | |
in C++ i am getting two errors regarding illegal else without matching if , and i have dont i myself the last step of my project is to obtain the average of all non positive numbers and average of all negative numbers as well as the sum of just the … | |
There is a thread in here somewhere that spoke of the issue but it did not describe a fix. I am running Vista home premium 64-bit SP1. When I open a wxPython window, it runs. As soon as my mouse enters the frame, a message comes up stating "python.exe has … Software Development python | |
I have the following repeating block of code in a website [CODE=html]<a href="LINK">TITLE</a><br>MANUFACTURER -- YEAR<br>PLATFORM<br>[/CODE] I need a regular expression to parse out the relevant bits in caps Ive been trying txt2re.com and expresso... But nothing generated there seems to do a decent job. I guess I need something that … Software Development regex | |
Hi experts, please help me solve this problem: I compiled a program C++ by Linux gcc version 4 and the program can run perfectly in that computer. But when I run the program in another computer (Linux with gcc version 3. installed), it did not work and said: "Floating point … Software Development c++ | |
Pardon me for flogging a dead horse here, but I'm trying to understand as clearly as possible some issues pertaining to the instantiation of objects. Firstly, have I correctly analyzed the functions and uses of each of the various syntaxes related to instantiating objects? Please don't flame me, saying "why … Software Development | |
what is the difference between the following two approaches: [CODE]#include <iostream> using namespace std; int main(int argc, char* argv[]) { cout << "argc = " << argc << endl; for(int i = 0; i < argc; i++) cout << "argv[" << i << "] = " << argv[i] << endl; … Software Development c++ | |
Hi all, I have 4 '.cpp' files and 1 header files: [code] Tools.cpp Code1.cpp Code2.cpp Code3.cpp and Tools.hh [/code] Now all [code]Code1.cpp, Code2.cpp, Code3.cpp[/code] use functions stored in [code]Tools.cpp[/code]. Currently, what I do to compile all of them is using this simple shell script: [code] #!/bin/bash echo "compiling Code1.cpp"; g++ … | |
hello, i have an objective i want to build my own web browser for the same i waned to learn a new software language which is flexible and easily understandable..... but my problem is that i dont know anything about vb.net i have some question 1) can i learn vb.net … Software Development vb.net visual-basic web-browser | |
![]() | how can you put spacing between objects? i mean, how can you place an object,e.g. a button, to the next line inside a pane? i tried setting the size (PaneSample.setSize(8,9)) of the pane and use flowlayout, but it wont work. can i get any suggestions from anyone? thanks! :) Software Development java |
Hey, I'm trying to compile some sample projects from the Xerces Library, but when I try to compile the code it give me this error: LNK1104: cannot open file 'xerces-c_2D.lib' What can i do to get rid of this problem? Software Development c++ | |
I created a courses.xml file and I want to find the answers for following queries.I am new to xml so I want to know how I can do it.I want to use Xpath or Xquery. Here is the queries i want to find: 1-How can I find find the TA … | |
I have an application I originally wrote in VB2005. It ran fine on Win/XP and Vista 32bit. It would not run on Vista x64 nor would it provide an error message other than "A problem caused the program to stop working correctly.....". I dumped VB2005, got VB2008 Express and converted … Software Development vb.net | |
Hi, I am trying to transform an XML string to HTML page using xslt. But I am getting the following exception : The stylesheet doesn't contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document. My code is as below : Test.html … | |
Hello, Please tell me What is an Abstract classes in C++ language? I'm waiting for your reply. Thanks In Advance Software Development c++ | |
Hi, I'm getting this error when reading from a csv file: "Runtime Error! line contains NULL byte". Any idea about the root cause of this error? If it helps, here's the part of my code where I'm reading the csv file. [QUOTE]def processFile(): global DATA # - Input file global … Software Development python | |
Hi! I am not that good in java and as a homework we had to write to classes: a partial abstract class Koerper and it's subclass Kugel but when I try to compile them the compiler always tells me this: [quote]Kugel.java:9: Kugel is not abstract and does not override abstract … Software Development java | |
This is my assignment, before some of you complain, I finished it. It works all I want is something that is in the back of my head bugging me. If a user was to input a letter instead of a number how do I keep the program from crashing and … Software Development java | |
I am trying to work out this issue in a molecular caluclator that I am trying to develop. I would like to go from mass to formula. So I am given a mass, ie 120.3433. And an equation could have up to 8 C, 3 H, 11 N, 6 S … Software Development java ![]() | |
I want to attempt some win32, and have looked around on Amazon, safari books online , Google etc. I have seen a few books that look promising, but does anyone have any recommendations for any win32 books that they found helpful. Software Development c++ | |
hi, i need to output the number of sentences in a file. The file looks like this: For the eyeing of my scars, there is a charge, For the hearing of my heart, It really goes. And there is a charge a very large charge, For a word or a … Software Development perl | |
I've created my program. I want to open a .txt file and display it in my text box I have named my text box textbox1 and my open file dialog is openfiledialog1 How do I do this? | |
Hi Friends, Can anybody please give me a hint or soln. for how i can print 100! using C++ since the no. of digits are much larger and no data type can store it. Software Development c++ ![]() | |
[B]Hello, I am developing the project of "[COLOR="Green"]Employee Information System" using C language[/COLOR], In this project i want to add the mobile number for the each employee {[COLOR="green"]Each Mobile number having 7 characters, Bcoz if we using the integer means, Any of one employee has no mobile number it’s not … Software Development c | |
I have been trying for a few days to open a .pps file (power point slide show) from within my program, I have tried the following. [code=c++] ShellExecute(NULL, "open", "\\Test.ppt", NULL, "C:\\Program Files\\Pyrosoft\\Utilities", SW_MAXIMIZE); system("start C:\\Program Files\\Pyrosoft\\Utilities\\Test.ppt"); [/code] Both methods can open .txt files, in the same folder, but not … | |
can u plz debug it for me?? thanks [icode] import Tkinter as tk import time import sys import datetime as dt from Tkinter import * root=tk.Tk() root.title("Traffic Simulation") canvas = tk.Canvas(root, width=1000, height=400, bg="#FFFFFF") canvas.pack() for x in range (1,10): print 'orange'+x canvas.update() root.mainloop() [/icode] |
The End.