132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Learner010

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++
Member Avatar for richieking
0
190
Member Avatar for scaiferw

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
Member Avatar for scaiferw
0
228
Member Avatar for mansi sharma

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
Member Avatar for anup_1
0
149
Member Avatar for booicu

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
Member Avatar for woooee
0
17K
Member Avatar for Timlince55

I need to print out a pattern that looks like this when N=6 1 21 321 4321 54321 654321

Software Development java
Member Avatar for nabanit.sarkar
0
242
Member Avatar for Krasen

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++
Member Avatar for darkenmac
0
217
Member Avatar for dhruv_arora

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
Member Avatar for Ancient Dragon
0
3K
Member Avatar for molu

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++
Member Avatar for kellyperry15
0
278
Member Avatar for Sara Tech

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
Member Avatar for tinstaafl
0
329
Member Avatar for Violet_82

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
Member Avatar for Violet_82
0
162
Member Avatar for zahnsoftware

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
Member Avatar for lydia.aram.9
0
181
Member Avatar for SaRa Ahmad

can't show non-modal form when a modal form is displayed

Software Development visual-basic
Member Avatar for Learner010
0
223
Member Avatar for MaddTechwf

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
Member Avatar for MaddTechwf
0
186
Member Avatar for AnLag

Hi, Am new in VB.Net.I want to know how to call for data from SQL server usin code. Thanks

Software Development sql vb.net
Member Avatar for AnLag
0
254
Member Avatar for chdboy

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
Member Avatar for chdboy
0
2K
Member Avatar for sterno68

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
Member Avatar for JamesCherrill
0
563
Member Avatar for 117

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
Member Avatar for JamesCherrill
0
284
Member Avatar for AmrMohammed

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
Member Avatar for castajiz_2
0
161
Member Avatar for shqiptari88

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
Member Avatar for MRehanQadri
0
797
Member Avatar for CodingCabbage

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, …

Software Development gui python tkinter
Member Avatar for CodingCabbage
0
3K
Member Avatar for beginnerinneed

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 …

Software Development c# listview
Member Avatar for hreylorbe
0
8K
Member Avatar for clasp1

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
Member Avatar for clasp1
0
653
Member Avatar for bostondevin

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
Member Avatar for stultuske
0
264
Member Avatar for kymera

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 …

Software Development c c# c++
Member Avatar for stevedaniel
0
240
Member Avatar for Saboor880

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
Member Avatar for Mr.M
0
203
Member Avatar for Learningvinit

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++
Member Avatar for Learningvinit
0
525
Member Avatar for Neuman

The job market for c + + programmer is promising? And where it gets the best jobs? Thank you,

Software Development c++
Member Avatar for Neuman
0
70
Member Avatar for pc20912

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
Member Avatar for Dili1234
0
623
Member Avatar for COKEDUDE

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
Member Avatar for Ancient Dragon
0
263
Member Avatar for andreagonz9

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; …

Software Development assembly c c# c++
Member Avatar for andreagonz9
0
477
Member Avatar for MaddTechwf

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 …

Software Development asp.net c c# c++
Member Avatar for MaddTechwf
0
294
Member Avatar for ciocolatadulce77

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++
Member Avatar for Dani
0
156
Member Avatar for CodingCabbage

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 …

Software Development python tkinter
Member Avatar for vegaseat
0
243
Member Avatar for Astudent

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> …

Software Development os-x python tkinter
Member Avatar for vegaseat
0
7K
Member Avatar for CodingCabbage

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 …

Software Development python sqlite
Member Avatar for vegaseat
0
285
Member Avatar for Prithiv_1

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 …

Software Development json python
Member Avatar for vegaseat
0
292
Member Avatar for 2384443

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
Member Avatar for v008370
0
372
Member Avatar for Deep Modi

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
Member Avatar for Begginnerdev
0
310
Member Avatar for Netcode

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
Member Avatar for Netcode
0
296
Member Avatar for sing1006

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
Member Avatar for deceptikon
0
213
Member Avatar for CanadianBlue

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
Member Avatar for Carlos_8
0
4K
Member Avatar for cambalinho

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++
Member Avatar for cambalinho
0
236
Member Avatar for Benjamin_4

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 …

Software Development java mysql
Member Avatar for mKorbel
0
283
Member Avatar for Sugondo

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++
Member Avatar for richieking
0
167
Member Avatar for java_programmer

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
0
165
Member Avatar for asif49

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
Member Avatar for JamesCherrill
0
152
Member Avatar for surfingturtle

#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++
Member Avatar for surfingturtle
0
915
Member Avatar for Sphinx'LostNose

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
Member Avatar for pritaeas
0
330
Member Avatar for Delters1

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 …

Software Development algorithm c++
0
151
Member Avatar for toniann.midori

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
Member Avatar for Ancient Dragon
0
207

The End.