43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Brennan_1

I need help with my coding I need to be able to take in at most 300 integers(0 to 100) and then fin the count of zeros and evens. After this i need to add all of the integers up and get the average. Find the maximum and minimum values …

Software Development c++
Member Avatar for iamthwee
0
789
Member Avatar for OCompany

Hey ! Someone can help me how i can close form using another form i try with this code private void button1_Click(object sender, EventArgs e) { Form1 frm = new Form1(); frm.Close(); } but its dont work !!!

Software Development
Member Avatar for OCompany
0
267
Member Avatar for pekemp23

I am trying to havea program give me the averages from the tests. If the number is over 100 it is to give me an excpetion code this is what i have thus far... having issues on line 36-38 and 40. any help would greatly appreciated. import java.lang.IllegalArgumentException; //declare and …

Software Development java
Member Avatar for stultuske
0
421
Member Avatar for alina.nazchowdhury

This is for a command button array but i have a problem in the quoted text, the error Expected End of Statement, i am learning from a book, i guess there is some problem in typing the code. Please somebody resolve my problem! Dim BookMark1 As Variant 'Mark your place …

Software Development vb.net
Member Avatar for alina.nazchowdhury
0
337
Member Avatar for phoenix_2000

Heya all, I'm working on a small 'file browser', where the list of files is printed in a console (for now), but where the user inserts the file's path in a GUI. My gui is rather simple: one frame and one panel containing a JTextField and a JButton. I want …

Software Development gui java java-swing
Member Avatar for phoenix_2000
0
270
Member Avatar for crebz

Hi am kinda new in python programing. I have this game that involves a user inputs a value , say color it iterates over imported modules( in this case color) and prints data about it. The problem is that i cant get to code the best way to iterate over …

Software Development python sqlite
Member Avatar for crebz
0
234
Member Avatar for Doogledude123

I've noticed when watching videos, usually people import everything. Such as `import javax.swing.*;`. So my question is, is it better to Import everything? Or only the things you need indiviually? I've heard it slows down your program if you import alot of things, is this true?

Software Development java java-swing
Member Avatar for jwenting
0
258
Member Avatar for Cameronsmith63

Error that I get: ERROR [42000] [Microsoft][ODBC Text Driver] Undefined function 'REPLICATE' in expression. Code below: DataTable dt = new DataTable(); string tempPath = @"C:\swd\"; string strConn = @"Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" + tempPath + @";Extensions=csv,txt"; string SqlString = "Select RIGHT(REPLICATE('0', 10) + RowNr, 10)," + "RIGHT(REPLICATE('0', 10) + …

Software Development
Member Avatar for Cameronsmith63
0
848
Member Avatar for strRusty_gal

Hi All, Thank you for viewing my thread. I have an enquiry on process. My application runs this way. First, it will export something to PDF format. Second, the application will attach the PDF to send an email to someone. Next, i want to delete the PDF file. When i …

Software Development pdf
Member Avatar for strRusty_gal
0
117
Member Avatar for kirtee2209

Hi. I have a c# project created in Visual Studio 2010. The project runs successfully on Windows XP 32bit but I get an error when building on Windows 7 64bit. The error is as follows: Could not load referenced assembly "C:\WINDOWS\system32\stdole.dll". Caught a FileNotFoundException saying "Could not load file or …

0
280
Member Avatar for overwraith

How does one roll back a readline from a text file?

Software Development
Member Avatar for overwraith
0
174
Member Avatar for Labdabeta

Hello, I have a particular set up of cast operators and constructors which is leading to a compile-time ambiguity error. I am wondering if somebody can explain why this is happening and what can be done to fix it. For example, here we have 2 classes: class A { int …

Software Development c++
Member Avatar for Labdabeta
0
313
Member Avatar for Maurice_3

I have a package of python modules that I need to import to another module. Wi use of user input of a string or interger, the module is to iterate over the list of the modules to find the one with an answer as follows. from hometests.clauses import * # …

Software Development python
Member Avatar for Gribouillis
0
1K
Member Avatar for murali2489

Hi All, I have just completed studying Core Java and started to learn Spring Framework. I think its a silly question but still Im confused about this. Can i build a Dyanamic webpage / website using Spring Framework ?

Software Development java spring-framework
Member Avatar for murali2489
0
98
Member Avatar for Builder_1

i have intalled jdk 7 update 51 and netbeans 7.0 .for the first time it works fine but later IDE netbeans does not start at all and dialogue box comes that JVM creation failed...kindly help

Software Development ide java
Member Avatar for Builder_1
0
229
Member Avatar for kjklls

I have a tab panel on form1 and on the 1st tab there's a button and when i click this button it will enable a function. what i want to do is to work on other tabs while the function on the 1st tab is still executing. is there anyway …

Software Development vb.net
Member Avatar for Reverend Jim
0
266
Member Avatar for Grazel

I have a login form , i want to limit privileges of the user based on their type (e.g ; admin, encoder) wherein when the admin login, the mdi form will load and all the control buttons are accesible for him, while when the encoder login , only one button …

Software Development gui vb.net
Member Avatar for Grazel
0
282
Member Avatar for blazemadej

Having issues making a menu that will subtotal and then display a grand total. My professor is no help. It would be awesome if anyone can point me in the right direction. Because i have no idea why its not working. The program works fine until I get to the …

Software Development c++
Member Avatar for blazemadej
0
842
Member Avatar for ZaneDarklace

I have figured out how to do this. All that is needed is the .useDelimeter error. help? `import java.io.*;` `import java.util.*;` `public class AddEmUp `{` `public static void main(String args[]) `{` `Scanner sc = new Scanner(System.in); `System.out.print("Enter something like 8 + 33 + 1,345 - 137 : "); `String s …

Software Development java
Member Avatar for ZaneDarklace
0
1K
Member Avatar for Damian_2

Okay so inside my ArcherArmor.cpp, I'm trying to figure out why the map initializer list isn't working, but for some reason I keep getting "Error C2593: 'operator =' is ambiguous". Here is my code: I also have a class which ArcherArmor is derived from, that has a struct called `Armor`, …

Software Development c++ oop
Member Avatar for Damian_2
0
746
Member Avatar for Rahul47

Hi guys, here is my code for sizeof() problem. #include<stdio.h> struct student{ char name[30]; int roll_no; float marks; }; int main(){ struct student s; printf("\nSize of Name: %d Bytes.", sizeof(s.name)); printf("\nSize of Roll No: %d Bytes.", sizeof(s.roll_no)); printf("\nSize of Marks: %d Bytes.", sizeof(s.marks)); printf("\nSize of S Total: %d Bytes.", sizeof(s)); …

Software Development c
Member Avatar for ddanbe
0
214
Member Avatar for murali2489

Dear All, In Java Swing, for all components there is a setSize method which takes int height and width as arguments. And we will pass parameters like 600,500 & 400,300 etc... My doubt is what is the unit of these height and width . I mean on what unit, the …

Software Development java java-swing
Member Avatar for murali2489
0
5K
Member Avatar for Rahul47

Hello folks, here is my code with question in it. #include<stdio.h> int main(){ float c=10.0001; char *p; p=(char *)&c; // Casting is correctly done. What exactly is purpose of (char *) ? printf("%f", *p); getch(); return 0; } OUTPUT: ![7d924474e7b33ad0974a971ebce23576](/attachments/small/4/7d924474e7b33ad0974a971ebce23576.jpg "align-right")

Software Development c
Member Avatar for ddanbe
0
168
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to get only the visible section of the image from picturebox1 and place it in picturebox2. So what I have is picturebox1 set to a certain size, and the image size mode is set to center. Picturebox2 is also set …

Software Development html-css image vb.net
Member Avatar for joshl_1995
0
1K
Member Avatar for Rahul47

Hi guys, here is my code that am working on this morning, and I came across a point when pointer operation went wrong. #include<stdio.h> int main(){ char a[20]="Hello World !!!"; char *ptr=a; FILE *p; p=fopen("new.txt", "w"); int i; for (i=0; *ptr != '\0'; i++){ fprintf(p,"%c", ptr[i]); } fclose(p); getch(); return …

Software Development c
Member Avatar for Rahul47
0
190
Member Avatar for cleve23

Hi I just started learning on making gui on Java. I watched some youtube videos and i realise one of the them uses DefaultTableModel. At first i thought it was to allow access to the function of the table but i realise i can directly write and get value from …

Software Development gui java java-netbeans
Member Avatar for cleve23
0
244
Member Avatar for lewashby

greens = dict(green="#0080000", olive="#808000", lime="#00FF00") >>> print("{green} {olive} {lime}".format(**greens)) -> #0080000 #808000 #00FF00 In the program above what are green, olive, and lime in the dict function? I've seen and read about supplying a function with keyword arguments but only when the function was written with default argument. Even then …

Software Development python
Member Avatar for TrustyTony
0
166
Member Avatar for Iurie

HI ALL, I am trying to sketch the beging of function and the end, #include<ctype.h> #include<graphics.h> #include<conio.h> #include<math.h> #include<dos.h> #include<stdio.h> #include<stdlib.h> int xmax =1024;// getmaxx(); int ymax =760;// getmaxy(); float r,h;//??? int i; void grafica(){ //int gd=DETECT, gm; //initgraph(&gd, &gm, "..\bgi" ); initwindow(xmax,ymax, " Miscare "); setcolor(15); } float f(float …

Software Development c c++
Member Avatar for Iurie
0
224
Member Avatar for np complete

I want to extract this data from a website `You need to add the numbers present in this string. Your string is: 3754537dd2f082ad578e0ff1806d86a6` This is what I was doing url = opener.open('http://www.website.com') data = url.read() extract = re.search('your string is: <strong>(.*)', data) ans = extract.group(1) ans = string.split(ans, '</strong>')[0] print …

Software Development python
Member Avatar for snippsat
0
257
Member Avatar for cool_zephyr

I'm packaging my java program as a jar..it includes mysql-connector.jar..it runs fine when i run it in eclipse..now i need to distriute the jar file..I packaged the jar file and when I run it through command line using java -jar myprogram.jar, it throws ClassNotFoundException: com.mysql.jdbc.Driver could anyone please tell me …

Software Development java mysql
Member Avatar for cool_zephyr
0
350
Member Avatar for mixelplik

I'm practicing my parsing, and I'm writing a program with an overloaded function that counts the words in a user entered cstring and regular string. Suprisingly the cstring was easy peasey but the string object is has me a stumped. I don't think my cstring was the most efficient solution, …

Software Development c++
Member Avatar for mixelplik
0
326
Member Avatar for mixelplik

This code is supposed to randomly assign numbers to an array of structs, but isn't working at all. I have no clue why, everything looks fine to me, can some one take a look and tell me why it's crapping out on me? #include <iostream> #include <cmath> #include <cstdlib> #include …

Software Development c++
Member Avatar for mixelplik
0
99
Member Avatar for brandon66

Hello everyone im not very good with using pointers, maybe just need more explanation of using them/how i would change my code. Well i have to update this program i have to read in item number cost and qusantity from a file instead of getting it from the user. the …

Software Development c++ file-stream file-system
Member Avatar for brandon66
0
279
Member Avatar for CoilFyzx

Hello good afternoon. I have successfully serialized data in the past, however it seems as if I don;t fully understand the process. I have a class called ProgramState which stores a variable (called lastCreated) with custom class LinesProject and an ArrayList variable(called recentProjects) of this custom class. The purpose of …

Software Development java
Member Avatar for CoilFyzx
0
391
Member Avatar for dlmagers

Needing some help with a small problem. I have this program that is not compiling correctly. The instructions are simple which are: The PairTest should prompt the user for the two values, create a Pair object with the values and then print the average, distance, maximum, and minimum of the …

Software Development java
Member Avatar for JamesCherrill
0
196
Member Avatar for Mr.M

Hi Dw I'm create an application that register a user and now because we accept even oldest people we have to include their years in a dropdownbox so I'm not sure if this is possible but I do think it is possible it just that I don't have a clue …

Software Development vb.net
Member Avatar for Spyderbane
0
215
Member Avatar for LeNenne

Hi I will from the database only copy some textboxes to excel to specifik place in the excel sheet Just those from the database surename,lastname,adress,zip,zipadress,prn only one at the time PS ! the excel sheet is an invoice one textbox to excel i4 = prn one textbox to excel f9 …

Software Development visual-basic
Member Avatar for Stuugie
0
136
Member Avatar for ghazanfar abbas

draw a flow chart to discribe your logic to find out and disply to given charecter from lower case,uper case or number. asci table below. 65-95(A-Z),97-122(a-z) and 48-57(0-9).

Software Development c++
-1
79
Member Avatar for Noralyn_1

hello, ahm, can somebody help me, i'm always getting this error InvalidArgument=Value of '25' is not valid for 'index'. Parameter name: index this is my code: Dim currrentRow As Integer currrentRow = lv2T1.Items.Count() If compare(lv1T1.Items(currrentRow).SubItems(2).Text, txt2T1.Text) = True Then Dim lv As ListViewItem lv = lv2T1.Items.Add(txt1T1.Text) lv.SubItems.Add(txt2T1.Text) txt1T1.Text = "" …

Software Development vb.net
Member Avatar for Noralyn_1
0
400
Member Avatar for alexandru.caplescu

Hello everybody,can someone help me? i have to make a program who ilustrates Kirchhoff's first law.Thank You!

Software Development c++
Member Avatar for Suzie999
0
1K
Member Avatar for Tcll

lol don't take any offence to the title XD just being funny :P anyways... I'm having a problem with my function... it's supposed to allow you to read/write float values in any specified byte length. but there's a problem with the output value >_> first off though I must state …

Software Development python
Member Avatar for Tcll
0
851
Member Avatar for murali2489

Hi Team, I have two java Files 1. Print (Package A) 2. Apple (Package B.C) (Jave file is inside C:\Z\A\B\C\ I have compiled and kept Print.class file inside C:\Z\A\B\A\ Now i have made a Jar file of Print.class named MyJar.jar and kept it in Z\A\ When i try to compile …

Software Development apple file-system java
Member Avatar for murali2489
0
666
Member Avatar for Vish0203

Hi everyone, I know that we can pass string as command line argument and use it as we want. But, can we pass a text like "this or that" (with several spaces)?? Is there any way??

Software Development c
Member Avatar for Vish0203
0
95
Member Avatar for siskaj

Hello. I have problem with compiling this piece of code after "install" of Allegro (according to this http://www.daniweb.com/software-development/cpp/threads/248782/help-installing-allegro-for-bloodshed): #include <conio.h> #include <stdlib.h> #include “allegro.h” int main() { allegro_init(); printf("Allegro version = %s\n", allegro_id); printf("\nPress any key...\n"); getch(); return 0; } END_OF_MAIN(); Because I got these errors: 3:10 ..\GetInfo\main.cpp #include expects …

Software Development c++
Member Avatar for siskaj
0
354
Member Avatar for V3N0M

Hi everyone can anyone help me debug this code apparently it works on my mac and doesnt work on windows and codepad.org. Thanks in advance: //Tic_Tac_Toe game #include <stdio.h> #include <stdlib.h> /************************************ function prototype ***********************************/ void displayBoard(); int verifySelection(int, int); void checkForWin(); /************************ gloobal variables ***********************/ char board[9]; char cWhoWon …

Software Development c
Member Avatar for V3N0M
0
315
Member Avatar for ankman

Im new to programming python3 and i'm trying to write a password program. i want to compare a word from a .txt file with a input. no matter if i type the password in write or wrong it always comes up 'access denied!' inFile = open('passwordtest.txt', 'r') password = inFile.read() …

Software Development python
Member Avatar for Gribouillis
0
2K
Member Avatar for Start4me

I’m trying to create a textbox, where the user enters a number, and the output shows a word representing each digit, each word is in an individual label created by the code, regardless of how many digits are entered. So if the user enters 153, the output will be: one …

Software Development vb.net
Member Avatar for Start4me
0
511
Member Avatar for mixelplik

I have no clue why this search isn't working. Two majors problems (1) As is it always returns false (2) It would recognize valid IDs if instead of setting found to true, I just returned true, but I don't want to do it like that, and if there was an …

Software Development algorithm c++
Member Avatar for rubberman
1
125
Member Avatar for glamiex

Hi guys, my assignment is to create a program that sets up a menu for a user to choose from. The menu should consist of an addition, subtraction, multiplication and division problem. It seems to work well, but the only thing that's not working is the division problem. Whenever I …

Software Development c++
Member Avatar for rubberman
1
160
Member Avatar for mavtcr

I was working with VB6. Now I am trying to study VB.NET. In vb6 There is Cancel property for command button eg. If we make the cancel property of exit command button 'True',then if we press Esc key ,we can exit from that form even without clicking the exit button. …

Software Development gui vb.net
Member Avatar for Start4me
0
273

The End.