132,726 Archived Topics
Remove Filter ![]() | |
I have difficulties to implement variable length argument to my C function. Software Development c | |
hi guys, i want to be able to pass command line parameters from setup.exe to setup.msi. is that possible? Software Development | |
I am confused about static class and nested class. Is there any difference to code and use of static & nested class?. Software Development java | |
What is the difference between an instance variable and field in java? Software Development java | |
hi frnds, i want to get the safari history in VB.Net..Safari maintains its history in history.plist file.....I want to know that how to convert this file to XML format??Plz help me out from where to start,,,cz i have no idea.. | |
Hi, that's my first bigger work in C++. Programm works good but I don't know where I have to alocate memory. And for which structures or something else I have to do alocation? Can anybody help me? Thx. There is my code: [CODE=c++] #include <stdlib.h> #include <ctype.h> #include <stdio.h> #include … | |
Hi, I am hoping that someone can help. I am trying to validate and compaire date entries made by a user. The dates represent contract start and end dates. This has a one to many relation ship with a client table. A client can have one or more contracts. However … Software Development | |
print ( "fred" gt "harvey" ); what does this print. How can we compare strings. If it was single characters, we can base our comparisons using ASCII. Software Development perl | |
I am doing a program on payroll before any deductions are made but i seem to be encountering some problems. Here is the program [code=cplusplus] # include <stdio.h> # include <string.h> # include <stdlib.h> # include <fstream> # include <iostream> # include <cstring> using namespace std; typedef struct { char … | |
if i click button in pqge 1 page 2 should refresh if i click page 2 button page 3 shoould refresh if i click page 3 button page 1 shoud refresh ... can any one tell me the javascript code for this plz Software Development java javascript | |
Hello I made the following program for someone on this site that had requested the game. I didn't have a problem making it. During some tests I conducted I ran into a problem, at least what had seemed like a problem. Player 1 will win on average 90-96% of the … | |
Hey, I am trying to find a way to limit how many characters a user can enter into a JTextField. Does anyone know how to do this? Thanks! Software Development java | |
Hello, I am having problems with indexOf() and contains() they work if I put letters in the code to test, but I want it to test what the user enters. And that is not working. The user enters a letter into a JTextField, and I am storing that word to … Software Development gui java java-swing | |
Hello guys, I'm trying to create a method where it takes a InputStream as a parameter, reads the stream and returns the number of characters it contains as an int. I'm having difficulties with this. I've searched the internet for examples, but i can't find one that helps me with … Software Development java | |
I'm trying to calculate a column from a database called rogaine.mdb. I've been using an SQL statement to do this as I only want to calculate the points for certain teams. This is the code I've been using: Dim teams As DataTable Dim da As OleDb.OleDbDataAdapter Dim sql, connStr, teamName … Software Development sql visual-basic | |
[code]class theGame { private: void question1();//You awake void question2();//Go find a sword void question3();//Go find armor void question4();//Find dragon void question5();//Kill dragon char answer1; char answer2; char answer3; char answer4; char answer5; public: void showQuestion(); void enterAnswer(); }; void theGame::showQuestion() { void question1(); void questoin2(); void question3(); void question4(); void … Software Development c++ | |
Is there a way to convert from const char * to char * without casting away the const? I was warned that it could be dangerous and cause crashes (which I would agree with, since when I ran my program with const_cast, it caused a segmentation fault). Alternatively, is there … Software Development c++ | |
hi, how to get the database values into drop down box in python... how to configure the dropdown box.... Software Development python | |
hi can anyone tell me how to generate random number within certain limit as in between 10 to 20 etc .please help me Thanks anuj Software Development c++ | |
[code=c] #define AUID 34567 #include <stdio.h> #include <math.h> int main() { float id = AUID; int floatSize = sizeof(float); unsigned char *bits; int i, part2; int mant = 128; bits = (unsigned char*) &id; for (part2 = 0; part2 < sizeof(bits); part2++) { printf("+"); for(i = 0; i < 8; … Software Development c | |
hi,i am trying to make a global integer array of size 32 in Windows forms.I am Using Visual Studio C++ 2008. here is my code: [code=c++] array<Int32^> ^garray = gcnew array<Int32^>(32); [/code] if i declare it globally then it gives the following error: "error C3145: 'garray' : global or static … Software Development c++ gui visual-studio | |
Hi everybody, I have found these books [URL="http://www.amazon.com/Learning-OpenCV-Computer-Vision-Library/dp/0596516134/ref=sr_1_1?ie=UTF8&s=books&qid=1242936833&sr=1-1"]Learning OpenCV: Computer Vision with the OpenCV Library[/URL] from [B]AMAZON[/B] and this: [URL="http://www.papasotiriou.gr/product.ebook.asp?pfid=1761941&prid=1016178"]Learning OpenCV[/URL] from my [B]LOCAL[/B] store Which one do you suggest to buy? Should I wait and order the first one? OR is the second at my local store as good … Software Development c computer-vision | |
[ICODE] struct Node{ int n; Node *next; }; struct Some{ Node * ptr; }; int main() { Node *aNode = new Node; Some *aSome; aSome->ptr = aNode; } [/ICODE] Why do I get a Seg Fault here? Software Development c++ | |
I am writing 1 line to a file and close the file. Then after a few seconds the file will be open and written to again but then when using the code the string is overwritten. What I want to do is to continue write on next line. I am … Software Development c++ | |
Hi everyone, Major C# newb here. I literally just started learning the language a few days ago.. I've been using just a txt editor and console to compile. I've gone through a beginner tutorial and I feel like I pretty much understand syntax. But now I'm trying to get a … Software Development gui | |
I am a C++ beginner and I am trying to write a code about an application for dynamic allocation in memory which uses chained hash tables to implement some data about persons iam using a no as a key and a name as my data I defined the class tables … Software Development c++ | |
if I get this down, then I'll complete my assignment. I want my program to have the ability that whoever is using the program has the ability to control how many customers a restaurant has. Say Pressing C = new customer. And depending on how many times they press c, … Software Development c++ | |
Hey guys, I'm new to python so if this is a silly question, pardon me. I have the following basic assignment: Take a user-specified range of lines from some data file, call it input, and write them to an output data file. What I want to do is have the … Software Development python | |
hi guys, i want to integrate UILEVEL property of windows installer to MSI package. i use orca to modify .msi file, i created a new row in property table and set property to UILEVEl and set value to 2 but it didnt seem to change anything. do you know how … Software Development | |
I took a test last night and I had a program due at the end. I could not figure out. I would like to understand what I did wrong and what I need to remember for future reference. Here is what I had and the instructions. Using the Visual Studio … Software Development c c# c++ ide visual-studio | |
Say I got a number, I enter it in. (like 5). Now I want to convert that to a text string that represents that number (five). I also want it so that if I were to print a big number like 543 or something it will print that out in … Software Development c | |
Hi, I'm trying to figure out how can I make split read from the file and recognize how to put the strings into an array from a file, based on a new line break. Example of my txt file: [ICODE]This will be my first huge paragraph, it will contain many … Software Development java | |
I want to read a jpg image from a file to an Image object and then paint it on my JPanel, but the image doesn't appear.I've tried drawing some other stuff on the panel (like lines etc.) and everything appeared without any problems. My code: This class represents my JPanel: … | |
I am creating a mobile game using Netbeans IDE 6.0.1 but I have a problem adding new configuration I get the following error: java.lang.NullPointerException at org.netbeans.modules.mobility.project.ui.customizer.NewConfigurationPanel.isValid(NewConfigurationPanel.java:198) at java.awt.Component.invalidateIfValid(Component.java:2740) at java.awt.Component.setLocale(Component.java:1810) at javax.swing.JComponent.<init>(JComponent.java:595) at javax.swing.JPanel.<init>(JPanel.java:65) at javax.swing.JPanel.<init>(JPanel.java:92) at javax.swing.JPanel.<init>(JPanel.java:100) at org.netbeans.modules.mobility.project.ui.customizer.NewConfigurationPanel.<init>(NewConfigurationPanel.java:96) at org.netbeans.modules.mobility.project.ui.customizer.J2MECustomizer.run(J2MECustomizer.java:304) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986) anyone know what … Software Development ide java java-netbeans java-swing | |
I bought a bunch a cheap books on Python and am wondering whether I should read them as Python 3 introduced changes to the language and so to speak broke old code as far as I can tell. I am reading Programing in Python 3, and after that I was … Software Development first-post python | |
[code] import java.io.*; import java.util.*; public class lab11_2{ Scanner in=new Scanner(System.in); private int month=12; private int sum; private int value; private int rainfall; private double total=0; private double average; private double standard_deviation; private double largest; private double smallest; private double months[]; public lab11_2(){ months=new double[12]; } public void setMonths(){ for(int … Software Development java | |
Hello, I'm doing a project doing atomic models and am using a toolkit that was developed for Python 2.4 on Ubuntu. I have Python 2.4 installed as my default python currently; however, when I download the tools I need from the synaptic package manager. They only work for my original … Software Development operating-system python tkinter ubuntu | |
I am trying to implement these patters using for loop....I am having difficulties with them....If someone can help, would be great!! I attached the pattern to a Image.... [ATTACH]10180[/ATTACH] I tries this code for the third pattern...I have no Idea how to get them done....can anyone post codes for all … Software Development c++ | |
hi, i want to draw rectangle based on mousedrag event. if user dragging the mouse, then the rectangle on the applet should increase or decrease basing on current mouse coordinates. i have the following code. in the following code i am using [b]SelectionArea[/b] class which extends a canvas on which … Software Development java | |
Hi All I'm a newbie at XSLT and I need help to do the following. I am trying to transform the attached XML so it inserts a blank row whenever the current account number(curACCTNO) does not equal the previous account (preACCTNO) number i.e. group similar rows with the same accno … Software Development xml | |
I'm trying to locate the 'x' positions of certain pixels. Here's and example image: [url]http://img404.imageshack.us/img404/3418/10x.png[/url] if I run this code it gives me the 88 'odd' pixels that I'm looking for: [code] from PIL import Image i = Image.open('10x.bmp') # I save it as a bmp for pixel in i.getdata(): … | |
How do you store info (such as highscores, phone numbers, etc.) for your python program? I am thinking like you enter things into a list and then the next time you open the program you can acces that list with all the old info. Thanks. Software Development python | |
Hi,I want to create a picturebox at runtime.i mean when i click a button then,the picturebox is created. i have tried this code, but it doesnt work. [code] PictureBox^ pct; pct=gcnew PictureBox; pct->Location = Point(240,210); pct->Size.Height= 30; pct->Size.Width= 30; pct->BackColor.Aquamarine; Controls->Add(pct); pct->Visible=true; [/code] i am using visual c++ 2008. after … Software Development c++ | |
How do i compare an object with null? From what i've seen right now, at execution an NullPointerException will be thrown :S For example, if I have a list: [code=java] class List { private Node data; private Lista urm; public List(Node d,Lista u) { data = d; urm = u; … Software Development java | |
Hello! I'm having some trouble understanding how arrays are passed. From my understanding, my code here passes a pointer to the first element of the blah array, which is "var1=5". My question then is how can I move to the next element of my blah array, "var2=234234" in my filevars() … Software Development c | |
//I am haing trouble creating this program. There is basically only one part that I can't figure out. I need to match up my array to my string. I need something that will force the first strings in each to equal eachother, then use a counter to match the rest. … Software Development c++ | |
I have a class holding a pointer to a templated class: [ class A { protected: Feature<Base>* m_p_feature; }; now I want to derive A with some derivative of Base: class B : public A { public: B() { m_p_feature = new Feature<Derived>(); } }; where Derived is Derived from … Software Development c++ | |
Below I described a complex polynomial which is a part of my newton method. When I define the complex number [x = new ComplexNumber (0,0)] it only returns 0 or 1. Also I have overriden the basic string format to make it look like a complex number, but it doesn't … Software Development java |
The End.