132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Valiantangel

I understand overloading but what does someone mean by "Overload the increaseRed method with an increaseRed method that accepts a number that specifies an increase factor"? The increasedRed() is as follows: public void increaseRed() { Pixel[] pixelArray = this.getPixels(); Pixel pixel = null; int value = 0; int index = …

Software Development java
Member Avatar for stultuske
0
130
Member Avatar for broodwich

I have to make an applet that gives you 2 single digit integers and you have to multiply and then it will tell you if you are correct. I got it to work but how do I make it continue the same set of numbers until you provide the correct …

Software Development java java-swing
Member Avatar for stultuske
0
155
Member Avatar for on93

how to do the total of value in the array ben[20] have to use function or other ??????? #include<stdio.h> #include<stdlib.h> void main() { int ben[20]; printf("pls enter 20 no\n"); for (int i=0; i<20; i++) { scanf("%d",&ben[i]); } system("pause"); }

Software Development c
Member Avatar for dawidbrook
0
123
Member Avatar for tanu.jain.39566

how can i put a c# windows form application on server?

Software Development c c# c++
Member Avatar for tanu.jain.39566
0
115
Member Avatar for tmunyemana

Hello, Would you please help me? my code is not executing loop to allow user to play again after user cin>> yes. also the code suppose to allow user 10 tries to guess the number then stop, I am using this code if ((i = 10) && (userGuess != RANDOM_NUMBER)){ …

Software Development c++
Member Avatar for WaltP
0
2K
Member Avatar for kkhembrom

I am working in school projet. I have made a database and also search from database, everything is fine... But I want to know how in search I can retrive exact parameter. eg: suppose in TaxtBox1.Text = "VI" then the search result must come "VI" only not "VII"/"VIII" Kindly help

Software Development vb.net
Member Avatar for Reverend Jim
0
102
Member Avatar for andy8521

This programs seems to run perfectly fine. but there is a bug in the get_number function I tried to find for hours but I couldnt. See if you guys can help me. Any help is greatly appreciated. Thanks **fconvert.h** // This is the header file for the functions used in …

Software Development c c# c++
Member Avatar for WaltP
0
164
Member Avatar for 111100/11000

#include <iostream> #include <cmath> #include <string> #include <cstdlib> #include <cstring> using namespace std; int main() { char chouseing_alphabet[27]={'a', 'b', 'c', '\0'}; string abc[27]; cout << "This program encrypts messages using Ceaser Cipher\n"; cout << "NOTE:capital letters are not allowed in this program\n"; cout << "\n---------------------------------------------------------"; cout << "\n---------------------------------------------------------"; cout << …

Software Development c++ programming-construct
Member Avatar for Ancient Dragon
0
222
Member Avatar for AlitaMixx

Here's the problem, I was wondering if i am right to assume that when a three-digit input is entered, i.e. 123, then the string 1 will be stored to al, 2 to ah, but i'm not sure where the 3 goes, or if ever it's plain wrong to look at …

Software Development assembly
Member Avatar for GunnerInc
0
992
Member Avatar for rosechen

I have to wirte a code for monte carlo pi approximation for a menu driven calculator. here is my code but when i run it it shows me 1 instead of the pi value. can someone tel me what is wrong. double approximatepi(void) { double x,y,z,pi,randomnumber; double r,p,in; int tries; …

Software Development c mathematics
Member Avatar for WaltP
0
169
Member Avatar for soham.m17

I want some **Logical** algorithm to get all possible combination of given string except the palinadromes. Like Input is: ABC OutPut: A,B,C,AB,AC,BC,ABC,ACB,BCA,BAC It can't contain CBA,CAB as it already has ABC,BAC i.e reverse of those. I want to get it done by boolean logic and but it is no where …

Software Development algorithm java
Member Avatar for stultuske
0
287
Member Avatar for aangner

Write a program that calculates and outputs the monthly paycheck information for an employee, including all the amounts deducted from an employee’s gross pay, and the net pay that is due to the employee. The user of your program will know the employee’s name and the gross pay for the …

Software Development c++
Member Avatar for aangner
0
514
Member Avatar for softtech1011

Write a Java program that can take a positive integer greater than 2 as input and write out the numbers of times one must repeatedly divide this number by 2 before getting a value less than 2.

Software Development java
Member Avatar for stultuske
0
291
Member Avatar for shensteffi

#!\strawberry\perl\bin print"Enter the number of column\n"; $r=<stdin>; print"\nEnter the numer of row\n"; $c=<stdin>; print"\neNTER THE sEQUENCE FOR THE ROW\n"; $i=0; for($j=1;$j<=$c;$j++) { $a[$i][$j]=<stdin>; } print"\neNTER THE sEQUENCE FOR THE ROW\n"; $j=0; for($i=1;$i<=$r;$i++) { $a[$i][$j]=<stdin>; } $i=0; { for($j=0;$j<=$c;$j++) { chomp $a[$i][$j]; print"\t$a[$i][$j]"; } print"\n"; } for($i=1;$i<=$r;$i++) { $j=0; { chomp …

Software Development perl
Member Avatar for 2teez
0
165
Member Avatar for sblass92

Lets say I have a class A and I also have classes B and C that inherit from class A class A { virtual void foo()=0; //stuff } class B : class A { void foo(); //more specific stuff } class C : class A { void foo(); //more specific …

Software Development c++ oop
Member Avatar for sblass92
0
349
Member Avatar for Sendy Hipo

hi guys :D! im trying to make specialized template for cstring, but it seems i stuck on it.. i tried to search how to make specialized template for cstring , but there wasnt any good explanation and im trying to figure this out my self here's my template header : …

Software Development c++
Member Avatar for Sendy Hipo
0
155
Member Avatar for broodwich

I have the following problem: Write a Java Applet that will help an elementary school student learn multiplication. Use either Random class or Math.random() method to produce two positive one-digit integers. The applet should prompt the user with a question. The student then enters an answer. If the answer is …

Software Development java java-swing
Member Avatar for broodwich
0
275
Member Avatar for sathvikareddy57

how do i implement a c program that removes all nonalphabets in the given string??

Software Development c
Member Avatar for Ancient Dragon
0
101
Member Avatar for ScubaSam

Hey people I wrote a program and installed it on another computer. Every time I get this error that says "The Microsoft ACE OLEDB 12.0 provider is not registered on the local machine". Please can anyone assist. Thanks

Software Development c c# c++
Member Avatar for zachattack05
0
183
Member Avatar for zachattack05

Just came across [this](http://www.faqs.org/rfcs/rfc2821.html) (RFC2821) and in section 4.5.3.1 (Size limits and minimums) it states (emphasis added): > There are several objects that have required minimum/maximum sizes[...] > **local-part** > *The maximum total length of a user name or other local-part is 64 characters.* > > **domain** > *The maximum …

Software Development email sql
Member Avatar for zachattack05
0
188
Member Avatar for sandz24

#include <iostream> #include <vector> using namespace std; template< typename T > using matrix = vector< vector<T> > ; I saw this code snippet while searching for templates. I was wondering why there's a word "using". What is it for? Thanks :)

Software Development c++
Member Avatar for sepp2k
0
167
Member Avatar for ScubaSam

Hi guys I came to a dead end writing a program for one of my friends, I cant seem to get data in my datagridview to show in my textbox. can anyone please assist? I need to make a invoice in the multiline textbox with data in my datagrid view …

Software Development vb.net
Member Avatar for ScubaSam
0
94
Member Avatar for chrisdent1986

Hi I'm a final year university student and i'm running into a bit of trouble with my final year project (It's very important) My task is to create a DBA (Database Administration) tool in visual basic to allow me to add/edit/delete users from an existing oracle(sql) database. I really don't …

Software Development oracle sql vb.net visual-basic
Member Avatar for 201061198
0
204
Member Avatar for DyO1

Hello i'm trying to make a text editor but i cant find codes for Save button....someone please give me? I searched on google but no luck (like always)

Software Development vb.net
Member Avatar for Pride
0
218
Member Avatar for jinglylime

Hi guys, I wrote some code for finding the three longest words in a string. The code I wrote seem too complicated, is there a better way to appoarch this? public class Size { public String[] threeLongest(String word){ String[] three = new String[3]; String[] words = word.split(" "); three[0] = …

Software Development java
Member Avatar for sepp2k
0
3K
Member Avatar for Violet_82

HI peeps, I have a general question about scripting. what's the best scripting to learn (I would like to learn one language) and do you have any link to any good resource, not just a tutorial but somewhere I can see what scripting can do (sorry I am really new …

Software Development perl
Member Avatar for Violet_82
0
166
Member Avatar for theCompiler

im creating a program that will convert certain character into its ascii value then i will change the value. for example the ascii value of A is 65 right? but i want to change the value of it into 1 so if i input A the output of it is …

Software Development java
Member Avatar for JamesCherrill
0
219
Member Avatar for romanzo

Hello, I basicaly not familiar with vb.net because I'm new to it but I need help for my assingment P.O.S System but I can't fin a way to deduct the amount that you want to remove from the list. I always have this eror and I don't know if the …

Software Development vb.net
Member Avatar for romanzo
0
329
Member Avatar for trishtren

Hey, Im trying to extract numbers from a scanner, but im having problems extracting them all. Primarily i need it to * read a text file which contains some text and numbers. * go through the file and locate all numbers * differentiate between numbers contained in bracket (3), and …

Software Development java
Member Avatar for trishtren
0
260
Member Avatar for Iceman10284

Assume that a file containing a series of names ( as strings ) is named names.dat and exists on the computers disk. Design a program that displays the numbers of names that are stored in the file. ( Hint: Open the file and read every string stored on it. Each …

Software Development python
Member Avatar for sepp2k
0
541
Member Avatar for tanu.jain.39566

<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <script> function adddate() { date=new Date(); var month = date.getMonth()+1; var day = date.getDate(); var year = date.getFullYear(); if (document.getElementById('datetext').innertext =='') { document.getElementById('datetext').innertext = month + ' ' + day + ',' + year; } } </script> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> …

Software Development
Member Avatar for ckchaudhary
0
90
Member Avatar for abhi415

**I am facing some problem in updating ms access with parameters. I succeeded to insert the data in access with parameters. My code for inserting the data is:** Dim dbPath As String = "C:\Users\Abhishek\Documents\ToolDatabase.mdb" Dim connStr As String ="Provider=Microsoft.Jet.OLEDB.4.0;" _ & "Data Source=" & dbPath & ";Jet OLEDB:Database Password=agupt80;" Using …

Software Development microsoft-access open-source vb.net
Member Avatar for M.Waqas Aslam
0
159
Member Avatar for marky101

is it possible in vb.net to save automatically records in mysql database during brownout or power supply loss? I want to develop an application in vb.net that is able to save records automatically when there is a power failure. I need ideas. Thank you.

Software Development motherboards-cpu-ram vb.net
Member Avatar for M.Waqas Aslam
0
215
Member Avatar for coroll

Hi all, I dont why my code is not detecting the matching words. Firstly Im reading the words from a text file into an array. Plz help me to make this correct. This is my code. import java.util.*; import java.io.*; public class TestRegex{ public static void main(String[] arg) { String …

Software Development java regex
Member Avatar for coroll
0
373
Member Avatar for nekoleon64

Hello my name is Leonard E. Norwood Jr. I haven't been back much but I'm still studying and practicing C++ I'm still doing arrays starting from beginning to better get used it it. Anyway, it's a simple program of finding the largest number of the 10 numbers. I know my …

Software Development c++
Member Avatar for WaltP
0
3K
Member Avatar for salah_saleh

Hi, In the code below I have 2 nested loops, with the inner loop starts from the index of the outer loop till the end. You can think of it as I am trying to find ll the combinations. So if we have 'm' rows, we will have m(m+1)/2 possible …

Software Development c++
Member Avatar for salah_saleh
0
121
Member Avatar for dancks

I don't really have an explanation and whoever thought that this new posting format was the way to go... idk what to say. I really don't like it. I can only post so much lines of code before something happens to the window and I can't scroll all the way …

Software Development c++
Member Avatar for mike_2000_17
0
260
Member Avatar for cartersin

hi, I have an IP camera and i want to see it on windows form. i read some articles at codeproject but they're a little bit too complicated to me. there're too much functions. How can i make a simple interface to watch my IP cam? Any help is appreciated. …

Software Development
Member Avatar for darko444
0
426
Member Avatar for javanub123

im trying to write a program that will read a line of text from a file and then print that text into whereever the cursor is in the browser. like into the address bar or something. is the possible with python? how would i go about doing it. i know …

Software Development python
Member Avatar for javanub123
0
123
Member Avatar for rithish

generally we can build a application in java and vb make it as a exe.but how do we build application using c or c++.even some operating systems like xp was written in c++.how is it possible????/

Software Development c operating-system
Member Avatar for Ancient Dragon
0
154
Member Avatar for DyO1

i need a code for making a tabbed browser please help me ! just give me instructions on hol to duplochase the browser windo and how to make the back,next buttons to work for the selected tab. thank you.

Software Development vb.net web-browser
Member Avatar for DyO1
0
142
Member Avatar for Lostelf

Hi everyone I'm having a problem with this program giving me the wrong output. The question is • void getScore() should ask the user for a test score, store it in a reference parameter variable. This function should be called by the main once for of the six scores to …

Software Development c++ programming-construct
Member Avatar for rithish
0
381
Member Avatar for Pride

Okay so im a programmer. C#, VB.Net, Html, Css, Jscript, some Java. So I'm here because I think I'm finally ready to make a good project that people would use/play, not one of those test/practice projects that I made for 3 years. I have a few ideas in mind. Anyways, …

Software Development client-server html-css
Member Avatar for hericles
0
236
Member Avatar for shibu2all

Hello, can anyone suggest me how to execute graphics programs(such as DDA line algo) using GCC compiler under windows? graphics.h is a part of turbo c and is not available in gcc.. so is there any way to do this??

Software Development c
Member Avatar for Schol-R-LEA
0
157
Member Avatar for diknas

#include <conio.h> #include <iostream> using namespace std; int main() { int A[10][10],m,n,x,y,sum=0; //Create a Matrix cout << "Enter number of rows and columns in Matrix A : \n"; cin>>n>>m; cout << "Enter elements of Matrix A : \n"; for(x=1;x<n+1;++x) for(y=1;y<m+1;++y) cin>>A[x][y]; //Find sum of each row for(x=1;x<n+1;++x) { A[x][m+1]=0; for(y=1;y<m+1;++y) …

Software Development c++
Member Avatar for phorce
0
274
Member Avatar for Random_Integer

Right now I'm writing a java program that makes special edits to the hosts file on windows. Some people at work were complaining about it. Anyways, the program is finished everything works great! However I have to run eclipse as admin to give it permission to write in the hosts …

Software Development java
Member Avatar for Software guy
0
261
Member Avatar for fafa70

hi. i have a panel in a form and a button. iwant to write a program that when i push the button,a circle be drawn in panel but problem is here. because the handler in button is eventArgs but the panel is paintEventArgs. can someone give me a suggestion for …

Software Development vb.net visual-basic
Member Avatar for Pride
0
775
Member Avatar for rahul pareek

char a[5000]; main() {} and in another file main() { char a[5000]; } after compiling both file. exe of both file size have large difference. why

Software Development c
Member Avatar for deceptikon
0
273
Member Avatar for gizmo7008

I'm not sure what I'm doing wrong. I get a warning when I compile and an error after my program runs. This is the warning I get: myList2.cpp: In function ‘int main()’: myList2.cpp:96: warning: deleting array ‘int score [6]’ And this is what shows after my program runs: a.out(7023) malloc: …

Software Development c++
Member Avatar for gizmo7008
0
251
Member Avatar for ckwolfe

Hello, I have an issue using Haskell's Command-Line args functionality. I'm writing a Typechecker for my parser and I need to be able to tell my program via command-line arguments that I can have at most x errors reported where x is: ./typechecker --number-of-errors=x test.cl This is the run-statement I …

Software Development
Member Avatar for sepp2k
0
231

The End.