132,726 Archived Topics
Remove Filter ![]() | |
Hello everyone, :) I have exercise for class that I can't complete, I don't understand why my loops aren't working The question--- Write code that will print a multiplication table for 10 positive integers across the columns and 10 positive integers down the rows. Prompt the user for the starting … Software Development mathematics python | |
I wrote code that will send all my textbox information to a text file. It successfully goes there but it is all in one line and in no type of order. What I wanted to do was have it in on line spaced correctly and possibly with column headers to … Software Development | |
import MontyLingua theTagger = MontyLingua.MontyLingua() String = "when was tom born?" #tokenized the String tokenizedString = theTagger.tokenize(String) chunkedString=theTagger.chunk(tokenizedString) #error coming here #Tag the tokenized String tagString = theTagger.tag_tokenized(tokenizedString) print tagString #A more simple way to tag the String tagString = theTagger.jist(String) can anyubody help me why error is occuring there … Software Development python | |
Hey, So I am a very experienced PHP programmer and completely new to python, I was wondering if someone could assist me with this program I am trying to make, The idea is simple The program has 10 different fortune quotes, the user needs to be able to tell the … Software Development python | |
I am 16 and have been trying to learn VB for a few months. I am trying to make a text box the user of the program can type in and when the are done they can click a button and it will be sent to my email. Im having … Software Development email visual-basic | |
Hello! I have size about 200*250 icon for my simple application. I need to put it inside on frame as (about) 40*40 size. But when i try everything (image icon, icon for JLabel...) but i could not re-size it inside on JFreme. I f i set the size as 40*40, … | |
I cant figure out how to fix the "public class Triangle implements Measurable" i dont know what i am doing wrong to get this error.. i am not fluent in java but i never had this error before. i tried changing the name but in the process i get more … Software Development java | |
Hi Pal, I have issues with inserting date into my database. Though i declare the datatype as datetime in my SQL server database I will sincerely appreciate someones assistance in helping me fix the error. the error message is " [B]Conversion failed when converting datetime from character string[/B] " here … Software Development vb.net | |
IS it possible to show data in DataGridview columnwise?????" Software Development vb.net | |
Hello everyone, I just made a .cpp file to modify a data file in .txt (not relevant actually) file. I basically want to apply what this program is doing to all the .txt files in a ./input folder , and I couldn't find anything relevant so far. The code is … | |
[CODE]# a very simple Tkinter editor to show file read/write dialog from tkinter import * from tkinter.filedialog import * class App(object): def __init__(self, master): frame = Frame(master) frame.pack() self.text = Text() self.text.pack() menu = Menu(master) root.config(menu=menu) # file menu filemenu = Menu(menu, tearoff=0) menu.add_cascade(label="File", menu=filemenu) filemenu.add_command(label="New") filemenu.add_command(label="Open", command=self.file_open) filemenu.add_command(label="Save", command=self.file_save) … | |
Okay, so I did this not too long ago but I forgot the exact the procedure. Now, I think I was doing it all right after I set it up for Web Start, but when I went to Clean and Build to generate the files needed for online, I got … Software Development java java-netbeans | |
I am trying to delete the array element that matches with the user input. So I am trying to shift all the cells after the deleted one to the left 1 spot. I know it's still in the loop of the if statement(line 11 and 31) but I can't figure … Software Development c++ | |
hey i am currently working with java to do assignment. i dont know how to call form from menubar to open new form,,, so anyone can help...... Software Development java | |
Dear All, the below is my code it not works properly. I want to display the picture boxes dynamically ie run time it works fine but in my application have 1 Button ([B]btnGenPictBox[/B]) click on it adds the no. of picture box and also at the same time it display … Software Development | |
I need some help my code repeats the add new employee and is not asking for index. What I was supposed to do. Write a function name hireOne whose parameters are the array of structs, and the size of the list; the function should prompt the user to input a … Software Development c++ | |
Just want to be clear, this is practice, not homework. I'm attempting to understand this a bit better...but I'm a bit lost as what to use for my test...and what exactly will help me get to the base case. Here is what I have so far [CODE] public class int … Software Development java | |
Hello I need help with a program I want to make a method that takes a String and uses the text in that String to use a method from an object. Something like this: public void doThat(String text) { myObject.text();// Where text is the actual text stored in the String … Software Development java | |
Question is: [B]How can I send two strings using SendData in different packets?[/B] Because when I try to send two strings one after another, winsock joins them in a single packet thus making one string received from client/server. For example: [CODE]Winsock1.SendData "String1" Winsock1.SendData "String2"[/CODE] The final received data will be: … Software Development client-server visual-basic | |
Hello Everybody !!! I have a problem about TreeView and ListView. I have a form to manage student. When I add, the data appear on ListView and TreeView at the same time and the same data. Everything works perfectly. But one proble about Delete button. I choose the line from … | |
So I'm trying to create a program that will take values from one array and multiply them with the values in the second array and then allocate the answer into a third array, then returning that array as a result [code]import java.util.Arrays; public class ArrayCreator { public static void main( … Software Development java | |
'ellos So I'm making a Hangman game, and for the sake of completeness I want to have a HELP feature. When the Help button is clicked, a browser window should open up (not *within* the game frame... but just generally) and display the HTML Help file. How do I do … | |
hello all using ComboBox has it own backward,if the Item are too much ,then the combobox will become very tall (when it call) the other way is using textfield.Which will show selection ,only the items which have the same fist item's Letter with the one we type in. The question … Software Development java | |
Hello there guys! :) I've been given a sample code for my upcoming assignment in Computer Graphics and, according to the guide available in the course's site, I've set up Visual Studio 2008. What we've been given is a solution with some sample code which we must use as a … Software Development c++ opengl visual-studio | |
i have 3 files one main.cpp, functions.cpp, and a header.h im using [CODE]#include<fstream>[/CODE] in the main.cpp and in the functions.cpp but im not sure where to define the ofstream datatype in, so that the main.cpp and the function.cpp share the same ofstream variable. where do i put this "ofstream outf;" … Software Development c++ | |
Just start a new Windows Forms Application and change the Form1 constructor to this code(which was copied from MSDN) [CODE=csharp] public Form1() { InitializeComponent(); // Create the calendar. MonthCalendar monthCalendar2 = new System.Windows.Forms.MonthCalendar(); // Set the calendar location. monthCalendar2.Location = new System.Drawing.Point(50, 50); // Change the color. monthCalendar2.BackColor = System.Drawing.SystemColors.Info; … Software Development windows-vista windows-vista-7-8 | |
Card shuffling and dealing create a program to shuffle and deal a deck of cards,the program should consist of a clas card a class deck of cards and a driver program To deal a card, the driver just prints it out. The dealCard function does not print anything. this is … Software Development c++ | |
Good day all, I'm trying to create a template class just for learning purposes. And i keep coming up with two errors... Here's the script: HEADER FILE "lottoclass.h" [CODE] #ifndef LOTTOCLASS_H_INCLUDED #define LOTTOCLASS_H_INCLUDED using namespace std; template<typename T> class Lottery { public: Lottery(); ~Lottery(); T Resize(T* array, int i); void … Software Development c++ | |
Program received signal SIGSEGV, Segmentation fault. 0x001c74a5 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) () from /usr/lib/libstdc++.so.6 (gdb) where #0 0x001c74a5 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) () from /usr/lib/libstdc++.so.6 #1 0x0804b444 in Time::getTOD (this=0x0) at Time.cpp:63 #2 0x0804a4f0 in main (argc=2, argv=0xbffff7a4) at printsongs.cpp:102 (gdb) frame 1 #1 0x0804b444 in … Software Development c++ | |
I have a program written in C on LINUX environment. I have another wrapper application written in C++ on Windows. I have a DLL of my C code which I cannot change/modify (I also have access to the original source code) but without exports. I cannot modify the original source … Software Development c++ visual-studio | |
Hello everyone, I have a question about the getline() function. I want to read from a text file and add each sentence to a string array, separating them by the full-stop. The getline() function format for input from a text file is different from the one that takes keyboard input. … Software Development c++ file-system | |
What does xrange do in python?? And how do I implement a similar function in Python3?? Software Development python | |
Hi , I am trying to save the output of "help('tkinter')" in a text file. But i get error. I want to know if there is a Way to get the output of help file redirected to a file , or save in a variable. By the way , the … Software Development file-system python tkinter | |
i am getting output as XYZ... ABC... This is \t\t\033[40m\033[32mUP\033[0m instead of XYZ... ABC... This is UP i am trying to diplay "UP" in green colour. below is the code: #!/bin/bash var=` /export/home/GT/AM/bin/xacct test -i | grep OK | wc -l` if [[ var -eq 2 ]]; then echo "This … Software Development shell-scripting | |
I need to create a nested map structure of a given depth, in order to keep track of the number of times that a given combination of words occurs in a file for example if the depth is 3, i should have [CODE]map<string, map<string, map<string, int> > > data;[/CODE] and … Software Development c++ data-structure | |
How come unittest.TestCase doesn't exist for me? [CODE] Traceback (most recent call last): File "D:\My Projects\TAGEngine\TAGEngine\trunk\unittest.py", line 1, in <module> import unittest File "D:\My Projects\TAGEngine\TAGEngine\trunk\unittest.py", line 4, in <module> class CheckStructureAcceptance(unittest.TestCase): AttributeError: 'module' object has no attribute 'TestCase' [/CODE] Software Development python | |
Hi all! I am having trouble accessing dynamic information. I have used the malloc command to allocate the necessary memory for my struct. However, when I leave that function and enter a display function it says there is a problem accessing the information in the struct. I just had a … Software Development c | |
I am new to c++ and have a question about the while loop. If I have one key condition that is let's say a gamebreaker. Ie money = less than 0, does everything else then go in a big while loopn which may contain many more while loops and if … Software Development c++ | |
Hey guys, I've looked around the forum and seen a few answers that looked like it should have solved the problem - but didn't. I'm trying to create a function that will check the database and compare it with the value of my label. (Basically a Version Checker) If it … | |
How would I go about detecting keystrokes on the keyboard? Software Development python | |
Hi ya, Iam using firebird v 2.5 database with vb.net .i just want a help regarding how to create a new user in fb database programmatic ally in vb.net . thank you. Software Development vb.net | |
Hello guys, just wondering why my program crashes when I try to delete a struct from my array. I'm trying to code so that the user searches for a student via a student ID, then opt to delete the searched student's record. I thought I got it right and the … | |
I am having a couple of problems. I think I got the formatting down for the most part. I am having issues in a few calculations and how to iterate through them. Basically I need to take the radius and calculate the circumference and the volume. Once I have the … Software Development c++ file-stream ios objective-c visual-studio | |
hi, I have a form and a button on that form.When the user clicks on the button an MS-Excel sheet is generated from MS-Sql Server 2005 and saved in a particular location.As this generation of excel tkes sometime to complete,what i want to do is i want to show a … Software Development vb.net | |
i have to create a DigitsDisplay application that prompts the user for a non negative integer and then displays each digit on a separate line like such "Enter a positive integer: 789 7 8 9 this is what i have so far Can someone please help me fix this program … Software Development java | |
Hello, i need help to do the insert inside repeater, but when i debug the stock_code inside sql command is not declared. what should i do? [CODE] Protected Sub repeaterAlert_ItemDataBound(ByVal sender As Object, ByVal e As RepeaterItemEventArgs) Handles repeaterAlert.ItemDataBound Try stockCodeheader.Text = " Stock Code " plcNameheader.Text = " PLC … | |
Hi all I have a situation, i have a form that has a datagridview, on form load, it selects the data from sql db, now what i want is when i right click on one row, i should be able to delete that row and it should also get deleted … Software Development vb.net | |
the question asked me make a program that would find opens an read a txt file and calculate or display the following. - the number of numbers - sum of all the numbers in the file (running total) -average of numbers in file the .txt file just has 100,200,300,400,500,600,700 each … Software Development c++ mathematics | |
I am doing this assignment for my C++ class, and we have to instantiate 4 objects of the Student class, set the data members and then sort them according to the GPA variable. Ive whittled down the errors to just one, and I am stumped. Here is the error: error … | |
Hello Guys! I need help for an assignment. Somehow my code will not correspond to what I'm looking for. I'm having a hard time to find what the problem is. If you guys can please help me, I'll be more than appreciate !!!!! [I]1) Create a program that will read … Software Development c++ mathematics |
The End.