132,726 Archived Topics
Remove Filter ![]() | |
Hi there guys can anyone help me with my program. Because I have an enrollment form program for highschool students and what I want to happen is it will automatically save the information inputted to it in system, not in notepad like in file streaming. So when I open the … Software Development | |
| |
Hello below is the progra... i cann access araylist in the main class function.... like "LoanBook" see that in the code.... plz recity meeee folks... thanking uuuu =--------------------------------------------------------------------------= [ICODE] import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String … Software Development java | |
I have got errors which where commented in below program.Plz compile these program and cpy paste the code ... iam little bit confused... dudee.... [CODE]import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String fName; String lName; long phNo; … Software Development java | |
Hey im just trying to get back into c++ and i cant seem to solve why this is happning? I know theres too many header files also, i just normally leave them there in practise things when im messing with colours etc. Could you also please explain why it is … Software Development c++ | |
Hii I have developed a code in which i have two check those 2 digit numbers whose 3 times sum is equal to the number eg:-27=3(2+7) [CODE] #include<conio.h> #include<stdio.h> int main() { clrscr(); int a,b,n; long sum=0; loop:for(n=24;n<=28;n++) { a=n/10; b=n%10; sum=sum+(a+b); } if(n==(3*sum)) { printf("%d \n",n); } else { … Software Development c | |
I'm just starting to learn C++ and I need some help. I need to be able to read in a text file and pull out numbers from the file (like a news story, etc). I will need to be able to do other checks with the numbers as well, I'm … Software Development c++ | |
Hello all I was wondering how i could pass the following SLQ function to my datatable: Select sum(Quantity) from Purchases where transaction_mode=1 Thank you Software Development vb.net | |
I would like to make a selection menue for 2 programs that i have. A menu similar to the one below. [CODE]import sys print """Menu 1) Random 2) Search""" answer = raw_input("Make a selection> ") if "1" in answer: print "This will contain program 1" elif "2" in answer: print … Software Development data-structure python | |
Hi friends, I need to convert this random number generator in C++ to C. Please help me. C++ code [CODE] #include <iostream> #include <ctime> using namespace std; //This class will give satisfy basic // random number considerations for // games an general apps. // WARNING: Not for Cryprographic use // … | |
i wanna use the Sleep fucntion in a CLR vc++ app, if i include windows.h it gives a huge list of errors, if i use _sleep() then it dowsnot work at many systems since its obslete. what should i do? i am bound to use CLR bcoz my code uses … Software Development asp.net c++ visual-studio | |
i have a form and i need to use mouse scroll for moving my panel. so i need to create event ( :) ok ok im not sure ) and No matter where the selected i need to use this event when i use mousescroll :) I hope i was … Software Development vb.net | |
Please refer to the attached image [ATTACH]22297[/ATTACH] I want to create an application which provides toolbar 'button' like BatteryBar. Thanks for your help :) Software Development microsoft vb.net windows-xp | |
[code] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main () { int guess; unsigned int seed = time (0); srand (seed); //different spot?// int upperBound; int lowerBound; int range; char c; bool done = false; do { bool found =false; upperBound = 101; lowerBound = 1; do … Software Development c++ visual-studio | |
Hi people im new here. I want to work with security but i got many issues with this simple program. I want to encrypt and decrypt a msg with openssl cmds. Btw im using pipeline and process open (popen) function. Im using Fedora gcc to compile. Any help, recommendations will … Software Development c ![]() | |
hi, My application is in VS2008 coded in vb.net.I have a form with a datagridview which loads data from databaase.there is one column where data is stored separated by comma's.Like Name,Surname,LastName name this column as [B]Testing[/B].I have a checklistbox on another of my form.When the user selects a particular row … Software Development vb.net | |
[I]Dear experts, I am trying to code out my assignment but i made a problem with my [CODE]break;[/CODE] within my [CODE]if (operator.equals(zero))[/CODE]. i have received compilation error stating the following: [/I] [B]HelloWorld.java: break outside switch or loop[/B] [I]Appreciate if someone can point out my mistake. Thank you.[/I] [CODE] import java.util.*; … Software Development java | |
So from what I've been taught, in school and in books, all C programs(I assume C++ too) always have main(). That's very explicitly mentioned. However in my poking around with some relatively large open source projects in hopes of learning something, it isn't as straight forward. What I've encountered was … Software Development c ide open-source | |
I wrote a procedure to read integers(unsigned) from stdin and store it in a variable. I wanted it to handle backspaces too. so I made some adjustments but unfortunately it didn't work.--see line 14 in the code [CODE]get_num: ;(function get_num: read integers from stdin) push ax ;save all registers push … Software Development assembly | |
So this is my first post and I have only begun using python. One of my first assignments is to design a program which will count the most used words in the given text file. In my case we are using the Declaration of Independence. Here is what i have … Software Development file-system python | |
I know C++, but I'm trying to learn C. Anyways, what am I doing wrong here. If I delete the line with 'scanf', it will compile so obviously I'm doing something wrong there. Anyways... [CODE]#include <stdio.h> int main() { int x; printf("enter a number\n"); scanf("%d", &x); printf("Your number is: %d\n", … Software Development c | |
need a[CODE][/CODE] in C that converts any given BCD to GRAY Code, and any given GRAY to BCD. I am a started so little halp ;) Software Development c | |
Who can teach me the purpose of stringStream, and how to use it, please. I have read some paper about this, but I still have something don't understand. Software Development c++ | |
Here is the assignmnent I need to complete: "Write a program to calculate and print the result of the following two operations: 1/1 + 1/2 + 1/3 + 1/4 + 1/5 + ... + 1/99999999 + 1/100000000 and 1/100000000 + 1/99999999 + 1/99999998 + 1/99999997 + ... + 1/3 + … Software Development c++ | |
Here is the code I have so far. I'm not sure how to proceed from here. My goal is to make a program that outputs the probability of n amount of coin tosses, where n is the user input. [CODE]import java.util.Scanner; public class toss{ public static void main(String[] args){ Scanner … Software Development java | |
I am writing a program that writes log entries to an external text file and returns them upon request. When called, the return function should output the log entries between two user- submitted dates or outputs the last 100kb of the file if that's what's requested. The logfile stores each … Software Development c++ | |
[code]#include <direct.h> int main(){ mkdir("C:\\Program Files\\Bacon"); }[/code] Creates a folder in the folder that the .exe file is in, and is called "Program FilesBacon". I think it's obvious what I wanted it to do. Help please? I'm using codeblocks if it matters. Software Development c++ | |
Im an AP computer science studen (we started two weeks ago so I dont know much). For homework we had this problem: " Write a program that will let you enter your gender (M or F) and your height in inches and will then tell you wether you are tall,medium … Software Development java | |
I'm programming a program that add feet and inch together(assume feet and inch are integer). I run into a compiler error. I know the problem is I'm missing the returning statement. But I don't know what to return. [CODE]public class Distance { private int feet; private int inch; public Distance() … Software Development java ![]() | |
Hi guys/gals, I've recently developed a piece of software and it currently uses 1 external .txt file (located in the bin\debug folder of the project folder) that is used to store data long term. The program works wonderfully when i use the visual studio 2008 debugger, but when i either … Software Development visual-studio | |
I am building an excel address parser. Column B = streetnumber Column C = UnitNumber Column B is my streetNumber and What I need it to do is anytime it finds a letter attached to the number it needs to move it from column b to column C. So if … Software Development vb.net | |
Any thoughts on a clean way to modify an extant (and otherwise "ordinary") listBox such that it has more than one column? Further, once so altered, how to populate said listBox? example: listBox1.MultiColumn = true; ... now, I'm stuck! :( Software Development | |
I just finished a program, it worked perfectly, then I changed a bit of it, and now it won't work at all, even if I change it back. [CODE]self.secret_txt = Text(self, width = 35, height = 5, wrap = WORD).grid(row = 3, column = 0, columnspan = 2, sticky = … Software Development python | |
hello, i started programming again after a while and i made this just to pass time/relearn the basics and stuff there is a weird issue that i can't figure out, when i input row 0 column 2 or row 1 column 2 it will fill the spot for both the … Software Development c++ | |
Hello everyone! I have been working on a sudoku generator. My main aim is to create a completed 9x9 grid that follows the rules of sudoku. The grid should display unique numbers every time it is run i.e the numbers have to be randomised. My logic in tackling the problem … | |
Greetings, I made a simple "restarter" app... However, I need to close multiple instances of an application. For example, if I have three windows of paint, or three windows of Word open, how do I check if it is still open before I open a new instance? Here is my … Software Development vb.net | |
hi i have a datetime picker in user control form in C#. when i load the user control i want the datetime picker to disply no value in the datetime picker box. the code is below. [CODE] dpEDate.Format = DateTimePickerFormat.Custom; dpEDate.CustomFormat = " "; [/CODE] and when the user control … Software Development asp.net | |
Well, I recently got a program from csharp . But im not familiar with c# . I only got codes from vb.net . Is it possible if you guys help me to translate these following codes to C# ? First set of codes, it will download the file from the … Software Development c# first-post vb.net | |
If I have a list of strings, for example here's a small part of my list: [CODE]small_list=['HETATM 2142 O DUM 2142 -26.000 -8.000 12.300','HETATM 2143 O DUM 2143 -26.000 -6.000 12.300'][/CODE] Is there a way to remove the 12.300 from a string in this list and then replace it with … Software Development python | |
I'm try to make a program that will ask a user to input a string then the string gets masked (by asterisks) and later, guess every letter (character) of the masked word until the string is fully unmasked (a la Hangman). But my problem is, after the first unmasking, the … Software Development c++ | |
Hey, I need to know what identifier i can use instead of string that will output all of the words that you type in the program. For example: if i was to use string ans1; cout <<"How are you?: "; cin >>ans1; and for my answer i typed "very good"...it … | |
I'm having an issue displaying images in tkinter, I've tried the methods suggested by effbot and a couple other sources to no avail. Here are a couple ways I've tried so far:[CODE] gmail=PhotoImage('gmail.gif') self.glab=Label(self,image='gmail.gif') self.glab.image=gmail self.glab.grid(row=3,column=4) gmail=PhotoImage('gmail.gif') self.glab=Label(self,image=gmail) self.glab.image=gmail self.glab.grid(row=3,column=4) self.glabim=PhotoImage('gmail.gif') self.glab=Label(self,image=self.glabim) self.glab.grid(row=3,column=4) gmail=PhotoImage('gmail.gif') self.lab=Label(self,image=gmail) self.lab.image=gmail self.lab.pack() [/CODE]the last one … | |
Hi, I got a doubt about for loop while i was thinking about time complexity.... Is increment operation in for loop a two steps operation i.e., increment i and assign it the i or an one step operation just like just incrementing it? Is there any pointer operation involved in … Software Development c | |
Hey. I'm creating a second degree equation solver in the windows form application.(In the form ax^2+bx+c= 0) And the basic programming is complete but I'm having problems making it bullet proof, in case the user type in the wrong number and type in a =0. So basically i have an … Software Development gui | |
I've been trying to modify the following code so that it only displays one scrollbar for 3 radio buttons but so far I just can get it to work right. After the modification the gui should have 3 radio buttons at the top, one scrollbar for all 3 buttons, and … | |
i am fixing something and i have that fuction in it [CODE]bool DeckOfCards::checkFlush(const Card checkCards) { counter=0; cardCheck=" "; for(int x=1;x<5;x++) { cardCheck=checkCards.suits[x]; for(int y=0;y<5;y++) { found=hand[y].find(cardCheck); if(found!=string::npos) { counter++; } } if(counter==5) { return true; } counter=0; } }[/CODE] it goes here: [CODE]bool result=false; if((result=checkFlush(checkCards))==true) { return winner=5; }[/CODE] … Software Development c++ | |
Hello. I would like to ask some suggestions to the community. In Arrays, we can implement a 2D array like: [CODE]String[][] testString = new String[][] { {"1", "2", "6"}, {"4", "5", "3"} };[/CODE] How can I implement this in Vector? Or is that even possible? I was doing it in … Software Development java |
The End.