43,549 Solved Topics
Remove Filter ![]() | |
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++ ![]() | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 … Software Development assembly microsoft-office visual-studio windows-vista-7-8 windows-xp | |
How does one roll back a readline from a text file? Software Development | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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`, … | |
![]() | 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 |
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 | |
![]() | 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:  Software Development c |
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 … | |
![]() | 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 ![]() |
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 | |
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 | |
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 … | |
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 | |
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 … | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
Hello everybody,can someone help me? i have to make a program who ilustrates Kirchhoff's first law.Thank You! Software Development c++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 … | |
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++ | |
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. … |
The End.