132,726 Archived Topics
Remove Filter ![]() | |
Hi all, I wish to construct an text editor with linear link list. Now I am writing a function to add a sentence into it and display all. My problem is I can only input a string as it will not take whitespace as input. And I don't understand what … Software Development c++ data-structure | |
file = hfmix2.py error is on line 3 [CODE]# imports from Tkinter import * from sound_panel2 import * import pygame.mixer # create gui app = Tk() app.title("Head First Mix") # create mixder mixer = pygame.mixer mixer.init() # call functions panel1 = SoundPanel(app, mixer, "50459_M_RED_Nephlimizer.wav") panel1.pack() panel1 = SoundPanel(app, mixer, "49119_M_RED_HardBouncer.wav") … | |
[CODE] #include<iostream> #include<conio.h> #include<string.h> using namespace std; int main() { char ch; do { char str[80]; cout<<"\nEnter The String\n"; gets(str); int len=strlen(str); for(int i=0;i<len;i++) cout<<str[i]; cout<<"\nContinue?\n"; cin>>ch; } while(ch=='y' || ch=='Y'); getch(); return 0; }[/CODE] On executing the above program, the loop asks "Continue?" only once and after that it … Software Development c++ | |
I have a project due at the end of the quarter. This is my first quarter in programming and we have to create a single player game with at least three modules. I want the game to ask the user to choose heads or tails, then a coin flips and … Software Development python | |
Hi, Can any one say what is hte difference between contains and containsValue in hashtable. Thank you, With Regards, Prem Software Development java | |
i'm student of M.Sc.(cs) , i wnt to kno hw to develop pojcet in 'C' language Software Development c | |
So I have this program that involves the user using FolderBrowserDialog. And it works fine ... but the rub is, when the user comes back around and uses the dialog again, the directory is highlighted, but not expanded, and he's asking that it be expanded. LOL! For the life of … Software Development | |
HEEELLLLPPPP!.... i am stumped.... i am a student and have access to the server at my college.... on this server they have installed javac and i am running my java on vi text editor in a virtual server. okay i can import all kinds of things... but i cant import … Software Development java | |
if i want to dereference an object(using delete operator) of DERIVED class which is being referenced using a BASE class reference, which destructor would b called automatically?? BASE class destructor or DERIVED class destructor?? Software Development java | |
Our teacher have asked us to make a program in C language to read the difference between two cities in km, m, cm, inches and feets... I have tried every hell to make this work... I am not able to combine it all together... please help!!! I am so confused. … Software Development c | |
hi im new to vb and i would like to create a good log on form to access a database. i would appreciate some guidance for creating a log on form and a search form for the database, tnx :) Software Development vb.net | |
Hello everyone, I don't know if I'm confused with itoa,excuse me for this if so, but what I'm trying to do is: I have an array of characters, say [CODE]char example[7][/CODE] I assigned the first 4 characters by [CODE]strcpy(example,"Fill");[/CODE] Then I'm trying to fill the next char with an integer … Software Development c++ | |
How can i generarte crstal report bwtween two dates by passing two perameters in vb.net Thnaks in advance. Software Development vb.net | |
This is the folder structure: [CODE]root common.py module1 somescript.py module2 someotherscript.py[/CODE] i need to import common.py from somescript.py and someotherscript.py I also need to import somescript.py from someotherscript.py Software Development python | |
I want to get the digits of a number the user entered without using arrays. Is it possible? Thank you very much. Software Development c | |
how to put a command using only 2 letters the Y and N? and then prints out a text saying please input y and n only ex: [CODE]System.out.print("DO YOU WANT TO TRY AGAIN [Y/N]? ");[/CODE] Software Development java | |
C Program - Write main and two other functions named ComputeMaximum and ComputeMinimum that return the larger and smaller, respectively, of two type double arguments: 1. Each function must be in a separate file. 2. The files containing ComputeMaximum and ComputeMinimum may not contain #defines, #includes, if statements, switch statements, … Software Development c | |
i have this program...the color program..but i have a problem on converting a string to character. anybody can help me..thanks.. below is the java code import javax.swing.JOptionPane; public class ab{ public static void main(String[]args){ String a; a=JOptionPane.showInputDialog("Enter color: "); // I need to convert the variable a from string to … Software Development java java-swing | |
i have a text file on my desktop saved as a .cpp file and has code in it. how do i compile and run it in in terminal using the given g++???? Software Development c++ | |
Hi, I am using a HelpProvider in my .NET Windows Forms project and after a lot of searching I can not find any way to control where the popup that it creates is displayed. Here is some example code, [CODE] HelpProvider helper = new HelpProvider(); helper.SetShowHelp(this.listBox, true); helper.SetHelpString(this.listBox, "Help text"); … Software Development asp.net | |
Hi all, I'm working through the java tutorials on sun.com and trying to create a card class and a deck class which populates with card objects. Having trouble getting things running and I'm not sure where the problem is, pasted below are the card class and deck class, I'd appreciate … Software Development java | |
Hi, I am working on my next year's school project for my A levels, and I need a bit of help in deciding how to continue my program's design. Basically the project involves writing a stock managment software, for a fictional company. Now at the core of this programm lies … Software Development c++ database-design | |
Hello, first off, I'm new to the forum and, more importantly, writing C++ and working with the iPhone SDK. I was wondering if anybody could help me - I'm really eager to keep learning, and everything has been okay until now. I'm getting an error that I can't resolve, no … | |
Hi all, Does anyone know how to search for a string or substring within a list. I have [CODE] def searchfilt(self): f = open("timeline1.csv", "r") reader = csv.reader(f) text = enterbox(msg='Please choose a highlighter search term', title='Highlighter ', default='', strip=True) lines = [] i = -1 self.listbox2.delete(0, tk.END) for i, … | |
Hi, I have written a script that sends daily emails. I want a certain part of the mail text to be in bold. Please advice me on how to achieve this? Thanks. Software Development shell-scripting | |
Hi Guys , how can i parse java script.I have a script as follows [code] test.AddQuestion( new Question ("com.scorm.golfsamples.interactions.etiquette_1", "When another player is attempting a shot, it is best to stand:", QUESTION_TYPE_CHOICE, new Array("On top of his ball", "Directly in his line of fire", "Out of the player's line of … Software Development java | |
Hello, I have a 2D array of 10x10 and I want to search the surrounding cells of only a 3x3 portion of it at a time. How can I go about totaling up the values of the following nested loop? There should be a 1 or a 0 and if … Software Development c++ | |
I've been coding an applet using Java 1.4 under the (possibly/probably misguided) assumption that newer JRE's are backwards compatible, so my applet could run on a wider array of target systems without requiring users to update their JRE. Is this a valid assumption? I'd like to use the new language … Software Development java | |
Hey there, I've been attempting some Win32 programming for a while now, but I just can't seem to find a function where I can get the HWND by the resource ID. Just an example: [CODE] CreateWindowEx(NULL, L"BUTTON", text, WS_TABSTOP|WS_VISIBLE|WS_CHILD|BS_DEFPUSHBUTTON, x, y, width, height, parent, (HMENU)IDC_BUTTON_OK, GetModuleHandle(NULL), NULL); HWND btn = … Software Development c++ windows-api | |
Hi, How to find the stack size available for main thread in a program(which contains the main() function) In the case of linux, we can specify the stack size available for the whole program in linker script during linking. For all other threads, we can specify the stack size when … Software Development c | |
Well, I have a test program, in which I wanted to test if it was possible to open a textfile(text.txt) for input, display it via cout, then passing the object via reference to another function, in it and display the file again(which should already be open,which is the whole point). … Software Development c++ | |
Hi I am new to this forum and want some help with some Java code. I am creating a Three Tier Structure and below is the GUI class of the project. The problem is I can't make it work to insert into the Database file. Could someone please help me … Software Development gui java java-swing | |
I'm currently learning java, and im having a problem understanding what's going on when we use a constructor when inheriting from a class that already has a constructor. The best would be to just throw in my example. I have 2 classes, "Person" and "Employee". "Employee" is inheriting from "Person", … Software Development java | |
Hi, i have tried to insert all rows at one time from datagridview c# into a table in database , although the table gets all the rows from datagridview but it always gets the values of the last row from datagridview for all the other rows , so all the … | |
Hi Guys, I am unzipping a folder into a new folder and then wants to read all the files from the folder .My code is as follows.I dont want to create a folder but i cnt figure out a way to read all the files froma compressed folder and now … Software Development xml | |
I want easy algorithm with minimum order to get the sub-rectangle with the largest sum in an array for example array as a input 0 -2 -7 0 9 2 -6 2 -4 1 -4 1 -1 8 0 -2 sub-rectangle 9 2 -4 1 -1 8 maximum sum of … | |
![]() | I can't seem to pass a struct address to a function. My program "stops working" when it gets to the scanf statement of the getReady function. [CODE]/**************************************************** Author: ---------------------------------------------------------------------- Purpose: This code will explore passing a data structure address to a function. ****************************************************/ #include <stdio> #include <stdlib> //prototypes: struct things{ … Software Development c data-structure ![]() |
I'm trying to make a fixed length output record, and I'm using a Dictionary as a lookup table to find a code based on the kind of car a person drives. The routine works fine; I the search the key for the car type, and the value returned is the … Software Development python | |
Hey there, I have a interface which loads the data from the database. It loads the data to the datagridview, and text boxes. When I load the data to the datagrid view how can I make it uneditable so that the validations and other datagridview event scan not be occurred. … Software Development vb.net | |
I am trying to find a way to search a filename.rc file for a particular string. For now lets just say I am searching for the string PARTYHOST. After finding PARTYHOST in the file I would like to replace anything after it(so 192.168.0.1) with a new string which I have … Software Development python | |
Hi, I am new to C++ and am getting stuck with just reading in data from a text file into an array. I have looked at lots of examples online, but can't find one that matches what I am trying to do. The data consists of two variables, date and … Software Development c++ file-system | |
Hello everyone. I have recently finished a Winsock Server, and a Winsock Client. The problem is, I do not know what type of a domain/and or server I would have to buy to be able to connect my Winsock Server, to it. I already know that Winsock uses the inet_addr() … Software Development c++ client-server web-server | |
Hi there, Am calling a form from a button in another form. And then I am calling the form as frmSubCDetails subDetails = new frmSubCDetails(); subDetails.Show(); in a button which is in the View Submit form.What I want is how can I make the items in the from frmSubCDetails disable … Software Development | |
hi...following code is for postfix evaluation.....after executing the code i am getting segmentation fault error....can u help me to solve this error and what is segmentation error? [CODE=c++] #include<iostream> #include<string.h> using namespace std; class post_evaluation { public: int val; post_evaluation *nxt; void push(int i); void add(); void sub(); }; post_evaluation … Software Development c++ | |
Hello, I am little stuck with . It is not populating the errors for me, rather it is loading the page without . Attaching my code: [CODE]<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "struts-config_1_2.dtd"> <struts-config> <display-name>CSV File Upload</display-name> <description>CSV File Upload</description> <form-beans> <form-bean name="FileUploadForm" type="example.struts.FileUploadForm"> … | |
I just got my java project (beginner). . and its like this Output: What is my grade in Java? ([I]part where you input a grade[/I]) My grade in Math? ([I]input math grade[/I]) ([I]the next screen shows the grades i input, gets the average, then the shout out of my grade[/I]) … Software Development java | |
I need to write a loop that traverses the list and prints the length of [B]each element[/B]. So far I have this: [code] def countEachElement(): elements= ["spam!",'1',['Brie','Roquefort','Pol le Veq'],['1','2','3']] i=0 while i < len(elements): print len(elements[i]) i=i+1 [/code] But it's not counting each element of the lists inside the list. … Software Development python |
The End.