132,726 Archived Topics
Remove Filter ![]() | |
how to create 2D array of enumeration values foe example i have enum Days {Day1,Day2,Day3} enum Subjects {Subject1,Subject2,Subject3} how can i create its two dimension array two show these values in rows and coloumns Software Development java | |
In reference to the code below: why does in one case we get the full string and in the other the address? Can someone please explain this? [CODE] char mary[] = "Mary"; char* aPtr = &mary[0]; int b = 5; int* bPtr = &b; cout << "aPtr value is " … Software Development c++ | |
how do i find a pattern in richtextbox?? the text is like : hello i want to {help|meet|call} you {please|come|soon}. i want to find all such strings which have curly braces and then replace the whole string with any word from within it, RANDOMLY. so on the click of a … | |
Assignment: 2. Write a menu driven program to execute the given class. A. To search for student by name. If the student does not exist, appropriate message should be given. B. To display the details of the student having greatest average. C. To display the details of all the students. … Software Development c++ data-science | |
I have a Python command line program I am attempting to convert into a GUI. Before I bury myself in code does anyone have some advice on this process? Is there a method to simply make everything in the CLI program show up in a tkinter frame? For inputs I … | |
I have been programming in C++ for a while now, though I have always only written programs with simple command-line interfaces, never a GUI. I have one such program right now which I would like to convert into a Windows application with a full-fledged GUI with customized graphics (for buttons, … Software Development api c++ google-api gui qt visual-studio windows-api | |
I have 4 buttons on my smart device form and I am trying to put elements of a string array in to my buttons as button text. string[] str1 = new string[8] { "aaa", "sss", "ddd", "dff", "fddd", "ffggg", "bbbb", "gggd" ,"shehs"}; there is up and down buttons below the … Software Development | |
Hi, i have the following defined on top of the program in C #define Mess1 "\n\rWaterflow Sensor"; in my main i have the following written:- AsUSARTsendBytes(Mess1); The function being called is like that void AsUSARTsendBytes( char *bytes ) Something however is going wrong the compiler is giving the following message:- … Software Development c++ | |
Hello again everyone, working on another assignment for class. My professor teaches us the long way of writing code instead of making it simplified and shorter. Here is the actual assignment and what I have attempted so far. Any help and advice is most GREATLY APPRECIATED. 1. A two-dimensional array … Software Development c# | |
hello, i want to write a program that store subjects and days in two enumerations and their values in rows and coloumn using 2D array. how can i do this ? see the image below: [url]http://img718.imageshack.us/img718/3967/sufyan.jpg[/url] So far i've done this, [CODE] class EnumProg { enum Days {Monday, Tuesday, Wednesday, … Software Development java | |
hi there i am new to this forum and very new to c programming i do need any of u guyzz there to help me with my assignment i need to do a simple bank program asking the user password at first with the menu: 1. withdraw 2. balance enquiry … Software Development c | |
I am a student about 4 weeks into learning python, so i do not know a lot, and am hoping someone can help me understand what i am doing wrong, here is the code: [code=python] def main(): name = "TEST" age = 50 makename() makeage() print "You are" ,age ,"years … Software Development python | |
Hello, I'm playing around with some Python and tKinter and have been wrestling with the idea of an on-screen keyboard that outputs keys-pressed to a text field. I'm familiar with calculators and button input, but would anyone have some thoughts on designing an on-screen keyboard? I'm thinking that I will … | |
I'll make it short. First is how do I change the text colour of a [B]disabled[/B] button. I've tried HTML and setForeground but doesn't work. Second, when I want to click a button, I can't move my cursor or the event will not fire. I used addMouseListener because I also … | |
Check my program....i'm printing the values of 2-D array in a ladder form. [CODE] int [][] TwoDArray; TwoDArray = new int [4][]; TwoDArray [0] = new int [1]; TwoDArray [1] = new int [2]; TwoDArray [2] = new int [3]; TwoDArray [3] = new int [4]; [/CODE] This is working … Software Development java | |
If I leave some integer array items uninitialized I get sometime some strange numbers instead of zeros when I display the list of the array items. Why is it happening? Thank you. Software Development c | |
Could someone please tell me why this code will not close my app when the [X] at top right corner is clicked? [CODE]def shutdown(): track.stop() app.destroy() app.protocol("WM_DELETE_WINDOW", shutdown)[/CODE] If you want to see the whole code it's on an earlier post called "Tkinter Scale". Thanks. | |
The python module python-gdata includes an pretty comprehensive example of using python to fetch google calendar events (calenderEvents.py) No matter what I do, I only get 25 events returned. This is the default value of the maximum number of records returned. The example script includes these comments [code] In reality, … | |
Hello, I am new to printing in vb.net. I have a project (not from school) where I need to be able to print content that is entered by users. The rest of the app is already made. I need to print the following: A [B]Title[/B] with a line under it, … Software Development vb.net | |
After I performed some operations on the vector of structs, I need to free the memory. I suppose clear() will not be sufficient, but I'm not sure how to perform individual delete. [code] typedef std::vector<VertexRAM> VecVertexRAM; // definition of a vector of structs template <typename type> void freeFromMemory(std::vector<type>& myVec) { … Software Development c++ | |
So in my class we are working with Arrays this week. We have to create a driver license exam program. It has to use multiple forms. First form the user inputs the answers then once he clicks the score button a new form pop's up stating the correct answers and … Software Development vb.net | |
Please Help me. 1. In a LoginForm1 two textbox are present and a button also. 2. first user enter username & password in these field of LoginForm1. 3. After enter username & password by click the login button in the loginForm1 and a new form2 is open. 4. when the … Software Development | |
Hey there I'm quite new at c#, nevertheless today I tried to make a little application and I ran into a little problem. Well, I got this form that i want to close when i click the button and then open a new one, not just hiding it. first I … Software Development | |
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 c++ | |
In this program I have a lot of game directories in a list like so: [CODE]base = "C:/Program Files/Game" expansion = "C:/Program Files/Game/Expansion" Games = [(base, "Base Game"),(expansion, "Expansion 1")] Installed = [][/CODE] The program then sees if they are installed like this: [CODE]for path, name in Games: #For every … Software Development python | |
Hi I am sending a text file to a remote app using urllib2. It all works well, but it just seems to take a very long time to send the data. My code is basically doing : TxData = open('OutputFile.txt') data = {'name': 'value', 'file': TxData } f = urllib2.urlopen(url, … Software Development file-system python | |
Hi, I have written a script that checks whether a line has been added to a file. Whenever, a line gets added to the file a thread is created to process that line. And if a certain conditions holds for that read line, the thread should sleep for 1h and … Software Development multithreading python | |
First of all, yes this is for an assignment. I need to know HOW to do this so that I can perform this operation in the future. I have two list boxes that I am sending the data selections to ONE text box. My problem comes along when I am … Software Development vb.net | |
hello. i need help with combobox in vb.net. i try to add several columns in the combo,so i want when i select one item in the combo (this item is composed from 3 words for example),so i want the text in the combobox not to be composed from these 3 … Software Development vb.net | |
I have developed a vb.net database application(desktop application with sql 2005).I managed to create setup files(.msi) which is running on my pc.but when i install this application on my client system the application is running but all database operations fails.Pls any one suggest a solution. Thanks in advance. Software Development vb.net | |
I tried making a For iterator to check the values of an array, but it checks them 2 times! Software Development vb.net | |
Hi I have a fundamental question, about new projects using wizard • For File/New wizard Win32 projects the applications include the message queue and message loop. • For File/New wizard MFC Application Dialog Based there is no message loop and message Queue How can I add message loop and message … | |
Can someone help me in connecing the windows using java...? I am doing a project in virtual class..So i need to link the windows. Please help... Thanking u all in advance. Regards, Shreya. Software Development java | |
Because i had to transfer my project to my lecturer but what the file location that works for my computer does not necessary work for my lecturer computer. Althought i transfer my wav file to the project workspace Alarm clock in the bin section. So how to allow my wav … Software Development c# | |
I am trying to create an array of 20 values the have 4 methods that 1st will create a total of all values listed, 2nd search the array and return all values less than 5.00, 3rd return the average of the values using the output method from the first method … Software Development java | |
I need to show a '&' symbol on a button and I don't understand this - how come [CODE] self.l1 = QLabel("&", self) self.l2 = QLabel(unichr(int("0026", 16)), self) [/CODE] both of these show it on a label but [CODE] self.b1 = QPushButton("&", self) self.b2 = QPushButton(unichr(int("0026", 16)), self) [/CODE] none … Software Development python | |
I'm relatively new to Java and I was trying to make one my programs more accessible to my non-computer savvy friends with java web start. I took my .class file and archived it with the command: [TEX]jar -cf TabbedLatinHelp.jar TabbedLatingHelp.class[/TEX] I then created a .jnlp file and uploaded the .jar … Software Development java web-server | |
Hello, I have recently been able to delete files using this code(With the aid of others from the forum) And I was wondering how you can change this, to suit deleting a folder [code=cpp]#include <iostream> #include <windows.h> int main(int argc, const char * argv[]) { // Get a pointer to … Software Development c++ | |
here's my code, i wanted to add another button that would have its own ActionListener. NOTE: its in object oriented style. i wanted to add these codes in my main class for my additional buttons, but my problem is i dont know how to make their ActionListeners. [CODE]myButton2=new Button("GET DIAMETER"); … Software Development java java-swing | |
[B]Al salamo Aleekom And Hi..... <= Thank you for reading my topic. ---------------------------------- I read this statements from C++ book but i can't understand it....!! Can anyone help me to understand it In short....[/B] [INDENT][INDENT]The Stack and the Free Store (Heap): .................................... In the section “How Functions Work—A Peek Under … Software Development c++ | |
I am trying to write a program using vb6.0 with sapi's speech recognition support. When I tried English everything came out alright. But when I swithed to Chinese, there's always this error when loading grammar and rules from an xml file. Why could it be? Anything to take special notice … Software Development xml | |
how can i read character by character from a text file using isrteam. i use : istream s; char *next; next=new char; s.open("example.txt"); s.read(next,1); but this gives me each character with some dummy symbol. Software Development c++ | |
Hello, I'm trying to figure out this method were i add courses to a student. and then call it in the main method . [code] public ArrayList getCourseList(){ return courseList; } public boolean addCourse(EnrolledCourse courseName){ for (int i = 0; i <= courseList.size(); ++i ) if(courseList.contains(null)){ courseName.getCoursename(); this.courseList.add(courseName); return true; … Software Development java | |
Hi ppl,,,,how r ya...hope u r fine.. Just have a lil problem with my program. Im studying civil engineering . And i have problem with my registrations So my friend creatred a program for me ,,but there is something missing in it The main job for this program is to … Software Development engineering python | |
I need to lock label position. so, my label can't move at all.. now, i'm using label1.Enabled = False.. but, my label.forecolor become gray.. can any help me to lock label position without changing label forecolor to gray?? thanks... Software Development vb.net | |
Hi frinends, I am Arunkumar I have to write a code to fetch every information from a computer including Hardware ,Software and every thing from system....i wrote code to get hardware information but i need help to fetch software information from system..please any one can help me Software Development java | |
Hi Guys, I am currently working on the following project: Write a PYTHON function that takes the time as three integer arguments (for hours, minutes, and seconds), and returns the number of seconds since the last time the clock “struck 12.” Use this function to calculate the amount of time … Software Development python | |
This code uses a structure to map a letter to an equivalent representation of Morse code. It simply loops through either a string to encode or decode looking for text to substitute with a replacement string or character. Output is presented to the stdout. Software Development c | |
As I posted before I'm totally new to C. In bash i can use [CODE]IP = "`wget -O - -q icanhazip.com`" echo $IP[/CODE]= and it returns my ip. However I'm trying hard to get this via curl although I don't quite understand how it works yet. I determined it is … Software Development c file-stream | |
I am running a service that queries on regular intervals. I initially set it up so that the connection formed onStart, and closed onStop. This of course leaves a connection open all the time, which isn't what I want. So I moved the open and closed to inside my timer … |
The End.