132,726 Archived Topics
Remove Filter ![]() | |
i learned about 1D Array , 2D Array , 3D Array.But today , suddenly my friend asked my a question on "how to access Array Elements". i said "just use array with index".like a[0],a[1] and so on. and then he replied(it seemed that he knew very well about array) "is … Software Development c++ | |
Sorry in advance if this is the wrong place for this, it's the closest I could find. I need to create a macro for an Excel 2010 spreadsheet so that the active cell will cycle through three choices: "Y", "N" or "" - the last being simply an empty string … Software Development microsoft-office visual-basic | |
Private Sub Command1_Click() Select Case Me.Text1.Text Case 1 MsgBox ("U Entered 1") Case 2 MsgBox ("U entered 2") Case 3 MsgBox ("u entered 3") Case Default MsgBox ("Default") End Select End Sub When i enter 4 in textbox1, Msgbox is not displayed.....Default is a valid case or not in VB Software Development visual-basic | |
Evening Community! Alright. As you can see I am "newbie" on the block. When I try approaching my professor for assistance she tells me to go to my book. But I digress. If I was able to use a while loop this would be more simplified. But our professor is … Software Development python | |
I need to print out a pattern that looks like this when N=6 1 21 321 4321 54321 654321 Software Development java | |
Make flow chart from this code, how ? #include <stdio.h> #include <math.h> struct point { double x, y; }; struct point input_point() { struct point a; printf("x = "); scanf("%lf", &a.x); printf("y = "); scanf("%lf", &a.y); return a; } struct point reverse(struct point v) { struct point w; w.x = … Software Development c++ | |
I recently installed Microsoft Visual Studio 2010 on my computer. I wrote a C++ program and I can't find any Build/Compile/Run options in Visual Studio 2010. Please, any one can tell me how can I compile C++ programs in MS Visual Studio 2010. Software Development c++ visual-studio | |
Write a C++ program that stores ten numbers into an array, and determines the total and average of the numbers . The program uses a do - while loop to add Software Development c++ | |
Hi, everybody I am working on AES encryption app. I need to split the file into blocks, then encrypt each block individually. What I had so far is below: byte[] sourceBuffer = File.ReadAllBytes(inputFile); byte[] destBuffer = new byte[sourceBuffer.Length]; byte[] toEncrypt = new byte[16]; // Encrypt each block. for (int offset … Software Development encryption | |
Hi all, yes still a question about the API! I am looking into event handling at the moment (basic things with text fields, checkboxes etc ) and I have noticed that different components generates different events which are in turn handled by different objects. As an example,let's take a checkbox. … Software Development api java java-swing oracle | |
I'd like to write a file monitoring tool that (1) Generates a report on how much time was spent on which file (2) Generates a timeline of file age. The need for this application is to track time for all programming projects. If the app would automatically track the time … Software Development file-system monitoring-software | |
can't show non-modal form when a modal form is displayed Software Development visual-basic | |
I've never worked with the Select, Delete, Update functions in a GridView before. I only want to use the Delete function, which I currently only have setup. I have the following information being show in my gridview: degree, institution, graduation date, dissertation, id(hidden). Software Development asp.net | |
Hi, Am new in VB.Net.I want to know how to call for data from SQL server usin code. Thanks | |
I have a form in which I have made File no =field which displays(From sql database) the Integer value like 1-2-3-4 and so on. I want that ,when I save a form which has file no 1 ,and then after when I want to save the next record it should … Software Development java | |
Hi all This is what the problem is and I believe is wrong Financial application: computing future tuition) Suppose that the tuition for a university is $ 10,000 this year and increases 5% every year. Write a program that uses a loop to compute the tuition in ten years. Write … Software Development java | |
Hello, I have worked on a project to make a custom-like Internal Frame. There are also other classes which extends it, instead of JInternalFrame. The project works quite good, but there is a problem. The discription of how the JPanel window works: _______________________________________________________________ There is a main JPanel which contians … Software Development java | |
Greetings, If I have an image represented with 256 columns and 256 rows how many bytes used to store such image? and how many pixel in that image? Software Development image | |
Hello, I'm new in assembly. I have to do a program that copies the data of an input file to an out put file. but this output file has to be created. The problem is that I cannot create this file which seems to be so straight forward. the Code … Software Development assembly file-system | |
I used code originally by vegaseat what's wrong with code ** error : Traceback (most recent call last): File "C:/Users/Cameron/Computing Work/Year 13/F454 - Computing Project/Design/newthingnewthing.py", line 68, in <module> canvas.create_rectangle(x0, y0, x1, y1, fill="purple") AttributeError: 'NoneType' object has no attribute 'create_rectangle'** _______________________________________________ code: from tkinter import * data = [10, … | |
Hi im a beginner and just need some help solving this problem. i think its simple but have tried to figure it out but im getting no where. i currently have four text boxes to which i add data to, i then click the add and want to add this … | |
Hi I just recently started learning about using the windows form application for C++. I am using Visual Studio 2010 and I have came across this problem. For instance, I am trying to read and write to a text file. Many guides suggest using StreamWriter^ and using namespace System::IO; to … Software Development c c# c++ visual-studio | |
I have two instances of Tomcat running on my server. I'm in the process of getting them to run as Windows Services (using the services.bat file in the bin - making sure the two service names are unique) and i'm getting stuck getting the second instance to work as it … Software Development apache java windows-server | |
i need the whole c++ programming code for this because am making mistakes in it everywhere i think so pls help me.................. (printing distinct numbers) write a program that reads ten numbers and displays distinct numbers (i.e., if a number appears multiple times, it is display only once). (hint: read … | |
Please don't mind, my question is very lengthy. Help me. I have been facing a problem with my usb for two months. When i copy something from any computer, it copies it perfectly and when i plug my usb in my computer, the files open only in usb's window but … Software Development file-system vb.net | |
Hi I am trying to use counted_ptr with a class. Can anyone tell me about the syntax and how to use it. I tried as below but failed. class counted_ptr ; counted_ptr<MyClass>pmyClass= NULL; Software Development c++ | |
The job market for c + + programmer is promising? And where it gets the best jobs? Thank you, Software Development c++ | |
I am using MS-Access & VB.Net I want to change Database password which use for connection string in Vb.Net forms (DB password change using, Open DB through MS-Access) For the beginning I used My.setting to save password and retrieve it from project load, but it not secure. My.Setting files easily … Software Development vb.net | |
I am trying to calculate the size of char *. I would would think one of these 2 methods would work but they are not. char *vertices; printf(strlen(vertices)); printf(sizeof(vertices)); Software Development c | |
Im having trouble translating this c++ program into pep8 assembly language if someone could help with at least part of it, I would appreciatte it, it would be extremely helpful thanks in advance # include <iostream> using namespace std; int get1(int list[]) { int j; int n; cin >> n; … | |
I've successfully gotten authentication to work on my web application using LDAP. So nothing is technically wrong with my login. What I'm having trouble with is once I have verified that a user is in active directory, I need to check a database to see if they have an account … | |
De curand mi-am instalat windows-ul si aveam code blocks , imi functiona inainte sa instalez windows-ul dar dupa cand dau compilare imi apare o eroare de genul :No such file or directory, mi-am instalat iar code blocks si tot apare chestia ia :| Ce ar trebui sa fac?? Software Development c++ | |
is there a way of in a loop automatically setting different commands to different buttons as they are created (automatically created via loops) or is there a way of setting custom names to the buttons while they arecreated in a loop i want "buttonName" to be different and known for … | |
So I have another problem(new project new code), with a rather lengthy code. The problem is I am getting tkinter errors left and right and I can't find why. The error I get is: File "C:\Python25\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript exec codeObject in __main__.__dict__ File "N:\dkaul\CLASS-VSFX160-01\sklock20\Python\blackjack\Black.py", line 212, in <module> … | |
I'm trying to represent my data using a bar graph, the data being displayed is goodVotes, neutralVotes and badVotes on the x-axis for each of my pieces of data (records in an sqlite3 database). I wish the "bookName" of each record to be displayed on the x axis of the … | |
I am getting output as json string with the following code. But I require it as JSON dict without leading and trailing quotes. How can I do that? It seems to work if I uncomment line4 but not with raw input. def main(args): f = open(args[1], 'w') inp = raw_input("Enter … | |
I'm new to this topic..!! Please help me out.. I have learned about Visual Basic during my High school but now there is a new topic which i'm interested & that is VB.net..!! Could you please tell me that is there any difference between them or are these two languages … Software Development vb.net visual-basic | |
I am trying to add the History page in my application which will work like as i shown below: 1st Column: (Date); 2nd column: (Login Time); 3rd Column: (Logout Time) I added the following code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load … Software Development listview vb.net visual-basic | |
Am new to python and i need help dealing so i would go ahead and post the question and my little solution so far. **Question:** a Procedure which takes four parameters as follows; Dictionary File- the file name of a text file containing four letter words Start Word- a four … Software Development python | |
int menu(c){ int choose; do{ printf("*MENU\n"); printf("*Press 2 to move down\n"); printf("*Press 4 to move left\n"); printf("*Press 6 to move right\n"); printf("*Press 8 to move up\n"); printf("*Press 5 to switch\n"); printf("*Press 0 to quit\n"); printf("Please enter your choose: "); scanf("%i",&choose); if(choose==2){ }else if(choose==4){ }else if(choose==6){ }else if(choose==8){ }else if(choose==5){ }else … Software Development c | |
I’ve been looking for the answer to this problem for around 2 hours while working on other code. It seems like my answer should be listed in the MSDN because of its simplicity but I cant find it anywhere. And my problem is thus: I have this VB6 program that … Software Development visual-basic | |
heres my variant class: // *** ADDED BY HEADER FIXUP *** #include <cstdlib> #include <iostream> #include <string> // *** END *** #ifndef VARIANT_H_INCLUDED #define VARIANT_H_INCLUDED class variant { string a=""; public: variant (string value="") { a=value; } variant (double value) { a=to_string(value); } friend istream& operator >>(istream &is,variant &obj) { … Software Development c++ | |
below's code is a code i wrote to get the value of 'monthly Depreciation' when i select the row on my jTable by either mouse-clicked or key-pressed. but it only selects the first value for 'monthly depreciation' when i click on the rows or key-press.the problem i know is coming … | |
i have some problem about link the library to executable. i tried to statically linking but when i create the .a file i always failed, what i want to know is there any way for the exe look up into current directory instead of the system if i has all … Software Development c++ | |
I am trying to develop an application where user will upload a file from screen, the file will be processed in server side. I am using Adobe Flex for UI, Spring 3.2 as middleware and Java 5. I can successfully upload the file and in server side can get the … Software Development apache java session spring-framework storage | |
Class A private X x; public Method(X x) { this.x = x; } public void stuff() { Method2 m2 = new Method(); m2.doThis(x); } Class B public Method2() { } public void doThis(X x) { X copyOfX = x; // MAKE CHANGES TO copyOfX here } What happens is. When … Software Development java | |
#include <iostream> #include <conio.h> using namespace std; void TOH(int d, char tower1, char tower2, char tower3) { if(d==1) //base case { cout<<"\nShift top disk from tower"<<tower1<<"to tower"<<tower2; return; } TOH(d-1,tower1,tower3,tower2); //recursive function call cout<<"\nShift top disk from tower"<<tower1<<"to tower"<<tower2; TOH(d-1,tower3,tower2,tower1); //recursive function call } int main() { int disk; cout<<"Enter … Software Development c++ | |
Hello, I'm having a hard time when thinking about methods that belong to objects. Most documentation tells us that objects contain the data and actions for the data. When running as program though, the methods seem like they are actions that belong to the program (get put on the stack … Software Development | |
This is a homework problem. I have 5 modules to encode and decode a txt file using the huffman algorithm along with. I'm having some difficulty with where to start with the decoding module. I have to do the decoding using the functions from binary.h and binary.cpp and my priority … | |
Im having problems creating a function that checks how many times a number shows up in the array The array is already sorted im trying to loop through the array and theres be a counter to keep track of the number of times it appears and then a second array … Software Development c |
The End.