132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vn_utami

hii,I'm a new programer.. and now I have a homework. And I stuck with this,, This homework about find 100 first number.. I have one solution but,this solution is using syntax goto().. and the problem is my homework is restricted using syntax goto()..this my first solution #include<conio.h> #include<stdio.h> #include<stdlib> main() …

Software Development c++
Member Avatar for Killer_Typo
0
137
Member Avatar for Mickomitiku

hello everybody I am here to get some help abt developing timer with VB,meaning a countdown timer to remind me sth. after some time, tx in advance

Software Development visual-basic
Member Avatar for plusplus
0
70
Member Avatar for annagraphicart

Take a look at the "points" section. It says that i haven't declared the string name for "scores"... but scores is an int name not a string. Whats going on? #include <iostream> #include <string> using namespace std; int main() { const int MAX=4; std::string names1[4] = {"Anna" , "Jenny", "George" …

Software Development c++
Member Avatar for annagraphicart
0
88
Member Avatar for riham

how can calculate the memory address of lower triangular array such this one : 20 7 5 60 8 0 10 0 0 0 0 0 ineed just the formula 2calculate just the upper traingular and cancel the zero i tried 2use svd ( singal value decomposition) but i really …

Software Development c++
Member Avatar for iamthwee
0
133
Member Avatar for maheshmohan

explain me about programming in exception handling and threading and synchronization

Software Development java
Member Avatar for orko
0
103
Member Avatar for alapick

I’m working on a project that includes comparing XML files and I need a source code on Java to compare XML fragments. I’m using ExamXML from [url]http://www.a7soft.com[/url] to compare XML files but I need the Java source code.

Software Development java xml
Member Avatar for orko
0
590
Member Avatar for jjt

I was wondering is there any algorithm, method, concept, idea for "Reverse Calculation"? Basically I provide an output/Answer , and 1 or more inputs, then it will result the math formula/pattern. For example 1: I provide, Dynamic Output: 30; I provide, Dynamic Input Value A: 2 I provide, Dynamic Input …

Software Development algorithm java
Member Avatar for iamthwee
0
175
Member Avatar for kaarthikvr

hi i m going to start a new project centre for that i need java latest project titles for develop any body have means kindly help me.

Software Development java
Member Avatar for orko
0
76
Member Avatar for aruna_k_2006

hi ,i want to print e.printStackTrace in File using log 4j but its giving error ........ these r my files web1.xml [COLOR=green]<[/COLOR][COLOR=green]context-param[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]param-name[/COLOR][COLOR=green]>[/COLOR]driverName[COLOR=green]</[/COLOR][COLOR=green]param-name[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]param-value[/COLOR][COLOR=green]>[/COLOR]com.microsoft.jdbc.sqlserver.SQLServerDriver[COLOR=green]</[/COLOR][COLOR=green]param-value[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]</[/COLOR][COLOR=green]context-param[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]context-param[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]param-name[/COLOR][COLOR=green]>[/COLOR]log4j1[COLOR=green]</[/COLOR][COLOR=green]param-name[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]param-value[/COLOR][COLOR=green]>[/COLOR]WEB-INF/classes/log4j.properties[COLOR=green]</[/COLOR][COLOR=green]param-value[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]</[/COLOR][COLOR=green]context-param[/COLOR][COLOR=green]>[/COLOR] MyListener.java [B][COLOR=green]public[/COLOR][/B][B][COLOR=green]class[/COLOR][/B][COLOR=green] MyListener [/COLOR][B][COLOR=green]implements[/COLOR][/B][COLOR=green] ServletContextListener{[/COLOR] Connection [COLOR=green]con[/COLOR]; [B][COLOR=green]public[/COLOR][/B] [B][COLOR=green]void[/COLOR][/B] contextInitialized(ServletContextEvent sce) { [B][COLOR=green]try[/COLOR][/B]{ ServletContext sctx=sce.getServletContext(); String log1=sctx.getInitParameter([COLOR=green]"log4j1"[/COLOR]); sctx.setAttribute([COLOR=green]"log1"[/COLOR],log1); } [B][COLOR=green]catch[/COLOR][/B][COLOR=green](SQLException e)[/COLOR] …

Software Development apache java xml
Member Avatar for orko
0
111
Member Avatar for Bmarkusrowe

I'm pretty new to the python programming and I am currently trying to create a factorial function which I have, but now I an trying to get it to list the positive integer n as input and then computes and outputs, in separate lines, 1!, 2!, 3!, ..., (n-1)!, n! …

Software Development python
Member Avatar for bumsfeld
0
75
Member Avatar for ivatanako

[code] System.out.println("Enter new name: "); String stdName = input.readLine(); st.executeUpdate("UPDATE Customers SET stud_name='"+stdName+"' WHERE stud_ID='45698'"); [/code] Ok, this is my problem, this command should update\replace the existing column stud_name with a new name. But it wasn't able to replace it. There were no sql errors. Did I miss anything? Or …

Software Development java
Member Avatar for jwenting
0
722
Member Avatar for jhen
Member Avatar for Ramy Mahrous
0
77
Member Avatar for Dee76

Everything compiles no warnings or errors, but after I run this I get a core dump if I uncomment "delete [] a;" at the end of the main() function. It seems to run correctly if I leave "delete [] a;" commented out? Any suggestions will be appreciated. [code=C++] #include <iostream> …

Software Development c++
Member Avatar for Dee76
0
155
Member Avatar for n.aggel

this is the final version of the priority queue i implemented {with some of your help!}... the problem is that when i profile the code with valgrind, it shows that i have a memory leak.... i can also see that, if in my code i make certain test_points{where i pause …

Software Development c++ queue storage
Member Avatar for n.aggel
0
418
Member Avatar for -EquinoX-

Okay so say I have an array which is like this: [code] .data values: .half -17 .half 16 .half 153 [/code] and I want to print it as -17 16 153 How do I do this?? If it is stored in a 4 byte of integer then it would be …

Software Development assembly
Member Avatar for Salem
0
235
Member Avatar for scottb2

OpenFileDialog seems to only allow files to be selected. Is there a variation of this dialog that allows you to select a folder? Thanks, Scott

Software Development vb.net
Member Avatar for scottb2
0
61
Member Avatar for noobyy

i just want to know if it is possible in SQL select statement to have more than one column to be compared for the searchstring(recordsource) like for example select * from [Tablename] where lastname like ... AND firstname like ... because the VB is giving me a run time error …

Software Development visual-basic
Member Avatar for ryan_vietnow
0
90
Member Avatar for riya100

How to calculate time complexity of the following piece of code?? [code] assume n= 2^k i=n; while (i>=1) { j=i; while(j <= n) { <body>> // Needs theta(1) j=2*j; } i=i/2; } [/code]

Software Development c++
Member Avatar for riya100
0
109
Member Avatar for teppuus

Hello, I need to complete a selection sort (descending order) on a string that contains 3 letters and one number. This is the function I wrote so far, but it doesn't sort properly. It is sorting, but I can't figure out its scheme. Any tips? Thanks! (The arrays are parallel. …

Software Development c++
Member Avatar for teppuus
0
235
Member Avatar for Duki

hey guys. the following code should return a percentage of the current values of the object. I keep getting 0 returned. If this isn't enough code let me know. [code]Money test = ourAmount.percent ( 10 ) ; test.output ( ) ;[/code][code]const Money Money::percent ( int percentFigure ) { return ( …

Software Development c++
Member Avatar for Ancient Dragon
0
205
Member Avatar for aparnesh

I am currently working in Vb6 and ASP 2.0 and planning to switch to .Net. I have very little knowledge about it, so would be obliged if someone offers some answers to these Qs. 1. What software do I need ? MS Visual Studio.Net ? 2. Can I have VB6 …

Software Development asp vb.net visual-studio
Member Avatar for aparnesh
0
172
Member Avatar for jdphenix

Hello everyone.. I small snippet about me. This is my first post, and I just decided to start coding in C++ a couple weeks ago, so needless to say, I'm a newbie. I bought a Beginning C++ book to help me with initial concepts. On to the reason for my …

Software Development c++
Member Avatar for jdphenix
0
687
Member Avatar for annagraphicart

[code] #include <iostream> #include <string> using namespace std; int main() { string names[4] = {"Anna" , "Jenny", "George" , "Michael"}; int score[4]; for(int i = 0; i < 3; i++) { cout << names[i] << ": "; cin >> score[i]; cin.ignore(); } //sort by score for ( int i = …

Software Development c++
Member Avatar for Duki
0
273
Member Avatar for annagraphicart

Sorry about that. Please help here. Extremely important. It says I need to declare the "i" in scores[i] But im not sure what to do. [code=cplusplus] #include <iostream> #include <string> using namespace std; int main() { //Declaring variables string names[3] = {"John","Anne","Mary"}; int score[3]; int points[3]; //Ask for scores. cout …

Software Development c++ first-post
Member Avatar for Ancient Dragon
0
172
Member Avatar for annagraphicart

Can ya'll take a look at this? [code=cplusplus] #include <iostream> #include <string> using namespace std; int main() { string names[3] = {"John","Anne","Mary"}; int score[i]; cout << "Enter Scores" << endl << endl; cout << "Anna Marie: "; cin >> score[i]; //sort by score for ( int i = 0; i …

Software Development c++
Member Avatar for Ancient Dragon
0
80
Member Avatar for hoon

i'm doing a budget calculator for my assignment. and now i'm facing the problem about how to load or save the data i type in the textbox into mdb...? i already had one simple mdb for login process...(containing username and passwords) i hope to do sth like when User A …

Software Development vb.net visual-basic
Member Avatar for xyte
0
129
Member Avatar for JohnHull

:sad: Write a C++ template class Nvector that enables arrays with negative subscripts to be defined. The class should be usable in the following code fragment: [code]Nvector<double> a; // instantiate double array class a.resize(-10, 10); // allocate array from locations -10 to 10 for(int i=-10 ; i<=10 ; ++i) a[i] …

Software Development c++
Member Avatar for Salem
0
118
Member Avatar for metalbassist56

Hey, I'm new to programming and I was wondering if anyone could tell me how to create a simple Yes/No interface for a program so I can figure out how to do things like that...

Software Development c++
Member Avatar for Duki
0
153
Member Avatar for khalid0404

the new algorithm will consist of combining Huffman and Shannon-Fano coding system, which will be later translated in C language. Any proposals???

Software Development algorithm c
Member Avatar for khalid0404
0
114
Member Avatar for Raulito

hi guys i have a proble to solve but i do not have a clue what the problem is asking me to do i need some help. i allready know this that a fibonacci sequence i generated by the fuction Fn=fn-1+Fn-2 but the problem says that i need to to …

Software Development python
Member Avatar for woooee
0
113
Member Avatar for ptaylor965

Hi, I have datatable with three rows of data that will increase I want each row to fill lables, checkboxes and textboxes on their own tab of my tab control I have created a Template tabpage but when i try to add the other dynamic tabpages they are all blank …

Software Development vb.net
Member Avatar for ptaylor965
0
149
Member Avatar for jobs

Why you specify type and name of the exception in your custom exceptions, but not in python built in exceptions? except IOError: print "no file by the name ccy_rates*.txt" except MyError, e: print e.msg

Software Development python
Member Avatar for bumsfeld
0
83
Member Avatar for tamik0

I need help figuring out how to get the value of my text boxes into the variables I have declared (in bold) , any suggestions would be appreciated: (/code) Option Explicit On Option Strict On Imports System.Convert Public Class frmMain Inherits System.Windows.Forms.Form [B]Private mlblInitialValue As Double Private mlblSalvageValue As Double …

Software Development vb.net
Member Avatar for bharatsaboo
0
85
Member Avatar for H22H

Dear All, I'm tring to build << Announcments Ticker/Scroll >> using [B]OnPaint [/B]event to draw a text on the form, then I added a timer [I]'interval=10' [/I]to change the X-coordinate of the graphics object so it start moving to the left I noticed the following: 1. It is using more …

Software Development
Member Avatar for Ramy Mahrous
0
332
Member Avatar for kazek

Am currently working on a car dealer system. Am trying to design the system in a way that a user can view the number of vehicles available, the type, e.t.c and obviously the user can make a purchase. At the moment am just trying to deal with the basics. Am …

Software Development c++
Member Avatar for Salem
0
3K
Member Avatar for Donnovan

Hi, I'm using Microsoft Visual C++ and I keep getting this error referring to this one line in my main file . can someone HELP ME ? [code]#include <iostream> using namespace std; int main() { float tempFahrenheit; float tempCelsius; float Omrekenen; cout << "Geef de temperatuur in Fahrenheit: "; cin …

Software Development c++
Member Avatar for Donnovan
0
200
Member Avatar for JBI_UK

Hi there, I downloaded all the things i need for the building of the Firefox source code but the thing is, I want to be able to actually edit it before i build it... You know so it doesn't say Firefox just like what Flock did. If anyone knows how …

Software Development c++
Member Avatar for Salem
0
88
Member Avatar for Pja

Can any one please tell me how to retrieve image that i have stored in SQL SERVER 2000 and display the image in datagrid in VB.net 2003? I am able to display text data in datagrid but the picture cannot be display (in datagrid the picture is not shown but …

Software Development vb.net
Member Avatar for Pja
0
231
Member Avatar for ryy705

Hello, I have some questions about how to work with urls in java. Any help would much appreciated. When I execute the following code from my app it executes just fine. But when I move my app to a different directory and change the url accordingly, it fails. original code: …

Software Development java
Member Avatar for ryy705
0
113
Member Avatar for tonyf

HI I have a Tip of the day form that loads from a main form. The focus stays on the main form. Is there a way that I can switch the focus to the tip of the day form at runtime? Tony

Software Development vb.net
Member Avatar for waynespangler
0
1K
Member Avatar for wendy2learn

Have you ever used Quincy 2005 for writing and compiling your c++ codes? Quincy 2005 is simply an open source IDE for c/c++. It's simple. However, this application frequently gives me a headache. What I can describe from this IDE is it is unstable, clearly unstable. Recently, I worked on …

Software Development c++ ide laptop open-source
Member Avatar for Salem
0
780
Member Avatar for madhan

[COLOR=#000000]I am executing all my c/c++ programs in VC++ cmpiler.[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=blue]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=maroon]<iostream>[/COLOR] [COLOR=maroon] [/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] [/COLOR][COLOR=blue]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=blue]int[/COLOR][COLOR=#000000] main() [/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=blue]int[/COLOR][COLOR=#000000] age; [/COLOR] [COLOR=blue]char[/COLOR][COLOR=#000000] sex;[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]cout<<[/COLOR][COLOR=maroon]"please input your age:"[/COLOR][COLOR=#000000]; [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]cout<<[/COLOR][COLOR=maroon]"please input your sex (M/F):"[/COLOR][COLOR=#000000];[/COLOR] [COLOR=#000000]cin>> age; [/COLOR] [COLOR=#000000]cin>> …

Software Development c++ google
Member Avatar for Tom_Zeke
0
5K
Member Avatar for java_starter

[code] public class Customer { private String name; private String address; private double totalPurchase; private double invoiceAmount; public Customer(String name, String address) { this.name = name; this.address = address; totalPurchase = 0.0; invoiceAmount = 0.0; } public String getName() { return name; } public String getAddress() { return address; } …

Software Development java
Member Avatar for jwenting
0
166
Member Avatar for challa.kamal

hay please any body can give me the code how to implement [B]forums [/B]using java

Software Development java
Member Avatar for jwenting
0
268
Member Avatar for tycoonjamie

Hello I am trying to make an VB program to open an excel workbook and just open it. I have two forms. the first is a crude password system that if completed switches to form2. That is fine but i have no idea how to then make this form have …

Software Development visual-basic
Member Avatar for tycoonjamie
0
109
Member Avatar for xerenist

i don't know if it allowed to ask like this,, but this triangle make me confused(coz i'm new in C++) but,can u teach me how to make it?/explain how am i supposed 2 do? the triangle is like this: [code] 1 2 3 4 2 3 4 5 6 5 …

Software Development c++
Member Avatar for Ancient Dragon
0
118
Member Avatar for kahaj

I think I'm missing something really minor here, but after reading over both the html & the perl several times, I'm not catching anything wrong. Why isn't this page giving the proper output? [code] <html> <head><title>Jackson Elementary School</title><basefont size=5></head> <body> Click here.<br /> <a href="http://localhost/cgi-bin/chap02/c02ex2.cgi" /><img src="jackson.gif"></a><br /><br /> <a …

Software Development perl
Member Avatar for KevinADC
0
108
Member Avatar for wendy2learn

I'm having problem with my program here. See, I have an array of char* as data member in Action class. With the help of getFirst() function, I'm returning the value of the first element in the array. But, when I tried to print out this value in the test.cpp, it …

Software Development c++
Member Avatar for Salem
0
117
Member Avatar for DCM101

Hey guys! I found this site today and was wondering if you guys could help me out here. My teacher assigned us this homework assignment today. I was working on my code and was pretty deep into it, so I didn't here him explaining how to do it. He's kind …

Software Development pascal
Member Avatar for jackkenyon
0
142
Member Avatar for luxgud

Hi I have been trying to do some simple graphics with Visual C# 2005. I want to create a dial or pointer that acts like an analog speed indicator in a car. My initial attempts produce multiple pointers. What I obviously want is just ONE pointer moving. I am drawing …

Software Development
Member Avatar for luxgud
0
88

The End.