132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for user543820

hi! i want to move a character A on the screen by using arrow keys. i know that there are 25 rows and 80 columns.i take a character input as follows: char input; cin>>input; int put=input; here, the ascii value of input goes in put. i am using the ascii …

Software Development c++
Member Avatar for Ancient Dragon
0
925
Member Avatar for markdean.expres

I have this control named axWindowsMediaPlayer. Everything is going smooth. Just have one concern - I have been really figuring out how to get the file information of the media files that I am playing. I mean, what I want is that, I can display the length of the music …

Software Development vb.net
Member Avatar for markdean.expres
0
69
Member Avatar for Dakot

hello , i made a election program , here it is [CODE]#include <iostream> #include <cstdlib> #include <string> #include <conio.h> #include <iomanip> #include <fstream> using std::ofstream; using namespace std; string users[4]; char choice2; int votes[100] = {0}; int choice; int totalVotes=0; void votes1() { cout<<"Voting! : "<<endl; cout<<setw(21)<<left<<"(1) To vote " …

Software Development c c# c++
Member Avatar for StuXYZ
0
183
Member Avatar for cvanithakpm

hi i need the help that how to calculate the bytes of datatypes in java...? if it in c/c++ we will use sizeof.. but in java.. how could?

Software Development java
Member Avatar for JamesCherrill
0
115
Member Avatar for maynardjk13

Hello! I was given the following problem: Define the function f(x; y) as: f(x,y) = sqrt(x^2-y^2) Write a program that produces a table of f(x, y) for integers x and y from 0 to n where y <= x. The value of f(x,y) appears in row (x+1), column (y +1) …

Software Development c++
Member Avatar for selina12
0
166
Member Avatar for javaAddict

This is not much of a question, but a discussion and searching for opinions. I have seen that many use the Scanner class for getting input from the keyboard. Some, like myself, use the BufferedReader. Why will someone use one over the other? Or they both do the same thing …

Software Development java
Member Avatar for StephNicolaou
0
553
Member Avatar for Shodow

help me update my database.. when i click edit it will add a new record.. i want to update a record.. to edit a new record it will be base on the cutsomer's nameu [CODE]Dim conn As ADODB.Connection Dim RS As New ADODB.Recordset Set conn = New ADODB.Connection conn.ConnectionString = …

Software Development mysql sql visual-basic
Member Avatar for Shodow
0
2K
Member Avatar for iamcreasy

I am trying to print my stack trace on a file. So far I am successful. But, when I try to create the log file name using current time and date, the main program throws exception in the Output(NetBeans) window instead allowing my code to handle it. I am using …

Software Development java java-netbeans
Member Avatar for JamesCherrill
0
164
Member Avatar for gunjannigam

Can anyone suggest a open source llibrary for plotting 3D graphs . More precisely dynamic graphs. I was using jfreechart but that is only for 2D plots. I need a library so that I can plot 3D graphs.............

Software Development java open-source
Member Avatar for AppB
0
144
Member Avatar for Mirfath

Hi! i want to deselect a few menu items depending on the user! For example the administrator can have access to all the menu items in the form , Manager access to an additional few items and the data entry person to have access only the data entry menu item! …

Software Development data-structure
Member Avatar for Mirfath
0
216
Member Avatar for Basteon

So, I need to make a program that draws a [URL="http://en.wikipedia.org/wiki/Automata_theory"]finite automata[/URL] from the input data. I had some experience with the [I]graphics.h[/I] header but as far as I know it's a Borland only header and VC++ doesn't support it. So I was wondering, is there a way to draw …

Software Development c++ image opengl
Member Avatar for sathishraji
0
1K
Member Avatar for ChaseRLewis

The below code gives an output of: [CODE] Allocated! Allocated! Deleted! Allocated! Allocated! Deleted! Size: 3 Capacity: 4 vector[0]: isAligned! 20 30 40 Deleted! Deleted! [/CODE] Can someone explain the first allocation and why there are 4 allocations instead of 2 (one for each reserve?). I figure the first is …

Software Development c++
Member Avatar for vijayan121
0
151
Member Avatar for amnakhan786

description of the program: 1. first i have to input a folder A by giving full filepath. this folder contains a benchmark program tcas.c, a text file universe.txt which contains 1500 lines, each line is a test case giving 12 arguments to the benchmark program, which are used to test …

Software Development c
0
136
Member Avatar for TheNNS

Basically I need to read from a text file that looks like this customer Kevin checking myaccount 100.00 bond mybond1 1997 100 0.07 bond mybond2 2010 200 0.01 irabond myirabond1 1997 100 0.06 end customer Mark irabond hisirabond1 1999 200 0.08 bond hisbond1 1990 2000 0.10 end I need to …

Software Development c++
Member Avatar for vijayan121
0
223
Member Avatar for collinskawere

how can i create something of this sort: * *** ***** ******* ********* ******* ***** *** * this is my source code: #include <stdio.h> int main() { int i; i = 1; while(i <= 5) { printf("*\n"); i++; } getchar(); }

Software Development c
Member Avatar for collinskawere
0
171
Member Avatar for kkreisler

I have an assignment to write a program that builds an array Usize determined by user inputs m,n. the hangup is that the first element in each row or column is equal to the number of the row or column,and all the elements inside are to be the value of …

Software Development c++
Member Avatar for mrnutty
0
107
Member Avatar for dmr1775

Hey all I have a program that I have been working on and am having some trouble with keeping count of all the users grades. I know that now I am only counting the last grade earned for each category but I want to know how to keep count of …

Software Development c++ ios
Member Avatar for WaltP
0
210
Member Avatar for rajeshpodder007

how to run a vb.net application after menu item of internet explorer clicked

Software Development vb.net
Member Avatar for rajeshpodder007
0
95
Member Avatar for danuzje

Hello, I have a problem with one basic method - saving a text file. I have no idea why it doesn't work: [CODE] static void Main() { Console.Write("Write the statement:"); string statement = Console.ReadLine(); Console.Write("Write the name of the file:"); string file_name = Console.ReadLine(); StreamWriter file = new StreamWriter("c:\\" + …

Software Development
Member Avatar for sknake
0
217
Member Avatar for rajeshpodder007

when i right click on web browser is it possible to get my application on right click option?

Software Development vb.net web-browser
Member Avatar for codeorder
0
179
Member Avatar for Gorozco925

I am new to C++ and I am having problems with my code as you may imagine. As a newbie, I am creating an application in which converts celsius to fahrenheit and vice versa. The application has to ask what the user wants. I set up the application to run …

Software Development c++
Member Avatar for WaltP
0
201
Member Avatar for valestrom

Hey, I have a volume/surface area calculating program, but the problem is that my program always runs through the first possible choice instead of choosing between two. It will always do the cube/rectangle function instead of going to the square pyramid function. Here's my code. [CODE] #include <iostream> #include <windows.h> …

Software Development c++
Member Avatar for WaltP
0
151
Member Avatar for maytinh07

I write a program but now got a problem. Everyone can help me. And this problem: + I have 2 form. - Form 1 have 3 combobox with some item load from database Access. - Form 2 load data when change item at combobox form 1. I close form 1 …

Software Development vb.net
Member Avatar for codeorder
0
164
Member Avatar for anthasuresha

Is there any framework or sample java code to evaluate an arithmatic / logical / bitwise expression , which will provide the value for input parameters , to make the condition pass. For example , In the below sample arithmatic condition , if the values a=7 and b=6 are passed …

Software Development java
Member Avatar for anthasuresha
0
236
Member Avatar for avgvstvs

[CODE] cout<<"\n\n Please Input The Drive Letter Of Your Input Device \n"; cin>>DRL; string str(DRL); string str2(":"); string src; string hi; src=str.find_last_of(DRL); cout<<src; if(src!=str2) { hi=string(DRL)+string(str2); cout<<hi; } else*/ cout<<hi; [/CODE] [What am i dong wrong.i am trying to enure a colon input in the drive letter regardless of user …

Software Development c++
Member Avatar for avgvstvs
0
1K
Member Avatar for necrojb

Hey guys, it's been a while since i've had to do any assembly programming but it's come up again in a course of mine to haunt me :p We're trying to simulate reverse polish notation, which is fairly simple..and all we have to implement is addition/subtraction, with a few other …

Software Development assembly
0
240
Member Avatar for zachattack05

Does anyone have a link to a good article or guide on creating help files that work with Windows XP, Vista and 7? I've used a program in the past to create help files, but it was a demo product and quite costly (and if I recall poorly supported). I …

Software Development windows-vista
Member Avatar for Mirfath
0
126
Member Avatar for lxXTaCoXxl

How would I go about creating a loading screen or method that will load all my components and show the progress of loading through a progress bar. I would love to set something like this up for some of my larger form applications. I know how to do it with …

Software Development
Member Avatar for lxXTaCoXxl
0
114
Member Avatar for reemhatim

I'm writing a program as a beginner in assembly my program is about summing up all integers in array and then getting their average . I'm stuck with the average is that i need to divide the sum of numbers by my array size and i don't know according to …

Software Development assembly
Member Avatar for reemhatim
0
141
Member Avatar for triumphost

Hi guys. I have a php script that reads some values off a website and prints to a file every second.. The thing is, the script is always ran in my browser and I don't like that. I want to write a c++ program that can run that script within …

Software Development c c# c++ php
Member Avatar for thines01
0
361
Member Avatar for Dann0

Hey guys, I'm working on my game project for college, I have the code started, just enough to put the sprite on the screen and have a scrolling background. It is telling me there are no errors but when i go to run the game it terminates immediately, it's got …

Software Development gaming python
Member Avatar for Dann0
0
188
Member Avatar for DoinWork

Hi, I'm trying to put together a recursive function to count number of internal nodes, but I can't seem to grasp how to just grab internals. Any help? This so far only seems to count number of nodes [CODE] int numI(Node* p) { if(p== NULL) return 0; else return 1+numI(p->left)+numI(p->right); …

Software Development c++
Member Avatar for DoinWork
0
435
Member Avatar for coolsport04

Hello. I am trying to get back into Java and wanted to start by trying to make a functioning GUI calculator. I have the basic framework for it, but I am having some trouble with the operator. I would like to take what is on the textfield and put that …

Software Development gui java java-swing
Member Avatar for coolsport04
0
928
Member Avatar for 1Nbl00m

Hi Guys, Firstly, i'd like to state that this is a homework question which means i'm not looking for a direct solution to my problem. Just subtle hints on how to improve etc. I'm posting this here as I want to try and get a better understanding of Java's wait() …

Software Development java puzzle
0
264
Member Avatar for KarpedByC#

I am working with Microsoft Visual C# and keep getting the error "Use of unassigned local variable 'letter'" and everything I've tried has not fixed it, not to mention looking on the web. What is the issue? [CODE=C#]private void Btn_Submit_Click(object sender, EventArgs e) { char letter; int number; Txt_Letter.Text = …

Software Development
Member Avatar for zachattack05
0
393
Member Avatar for nofanman4311

I need some help with this. For my class I have to make a game called hexo, basically "Hexo is a game loosely based on the television game show Lingo. Rather than trying to guess 5 letter words (as in Lingo) the Hexo player will have sixteen tries to guess …

Software Development java
Member Avatar for CSloan7597
0
154
Member Avatar for crazyIT

am trying to open a file but the problem is on the third line (open...) sub open_file { local $/ = undef; ($filevar, $filemode, $filename) = @_; open ($filevar, $filemode . $filename) || die ("Can't open $filename"); } everytime i run it i get the error: Can't use string ("FILE1") …

Software Development perl
Member Avatar for Dandello
0
160
Member Avatar for noobprogrammerr

public List<EventEntity> GetCurrentUpComingEventsByEstate(string EstName) { EventDBModelDataContext context = new EventDBModelDataContext(); var res = from e in context.EventEntities where e.eventDate >= DateTime.Now _estatename(?) select e; return res.ToList(); } Hi experts, How do i declare the estatename part so that when i test the program in web browser, i will only get …

Software Development web-browser
Member Avatar for thines01
0
96
Member Avatar for DK58

Ok so i am writing a program to determine a users hat,jacket, and waist size. I have most of it done but i am still getting an error. Any help would be appreciated! [CODE]import java.util.*; public class Sizes1 { public static void main(String[] args) { int answer = 0; int …

Software Development java
Member Avatar for hfx642
0
158
Member Avatar for noobprogrammerr

How to return a list using string array method ? For eg. i want to display a list of all the estates name using string array ?

Software Development
Member Avatar for thines01
0
280
Member Avatar for matharoo

What is the best approach we can follow while trying to solve a cipher text without a key? I searched over web but was unable to find some good method.... Plz help guys...

Software Development encryption java
Member Avatar for hfx642
0
231
Member Avatar for sweetypie95

hey guys, i have a C++ assignment and i have no idea where to start. my assignment is we have to capitalize first letter of the every word entered. if asked user to enter a their full name, the program should capitalize the first letter of their first name, middle …

Software Development c c# c++
Member Avatar for mazzica1
0
164
Member Avatar for tyricec

I'm having a problem with my struct I believe. [CODE]struct GLPoint { int x; int y; }; int totalmarbles = 64; GLPoint midhold[64]; double dist(GLPoint a, GLPoint b) { double distance = sqrt(pow(a.x - b.x, 2) + pow(a.y - b.y, 2)); return distance; } void init(void) { glClearColor (1.0, 1.0, …

Software Development c++ opengl
Member Avatar for Tumlee
0
576
Member Avatar for meowbits

I am in an assembly class and we are now working on using files. Part of the assignment is to make a file and write an array full of values into it. I have been working on this assignment for some time and I am stuck on the file portion. …

Software Development assembly
Member Avatar for meowbits
0
228
Member Avatar for v_janssens

I am using _getcwd() to get the full path of the current working directory but I am having a strange problem with this: When I run the program from within Visual Studio _getcwd returns "F:\...\ProgramName\bin" to which I append "\Debug\config.txt" to give the path of a text file. However, when …

Software Development c++ file-system visual-studio
Member Avatar for Tumlee
0
409
Member Avatar for Kyle Willett

In my cs2 class the assignment is to implement a sparse matrix with pointers without using a 2d array. Here is the exact text: A sparse matrix can be represented using an array of pointers called "arrayOfPointer" and an array of integer called "matrixInfo". The size of "arrayOfPointer" will be …

Software Development c++
Member Avatar for Kyle Willett
0
526
Member Avatar for Mafia_ir

hi guys , 1)i wrote this bunch of codes but i can't get any result from part update . this part should update those cells that user want to change it. for example you want to change some music ranking so you must duble click on data gide viwe to …

Software Development open-source
Member Avatar for mazzica1
0
153
Member Avatar for geosparovany2

Hi everyone....iam electronics engineering student and i have experienced some c++ ,i mean i know till oop basics... i want to learn scriptig language for EDA, i want to know which to learn...Perl or Python?....can python do everything perl can do??....i hear that perl is much harder to learn...is it …

Software Development c++ perl python
Member Avatar for Tumlee
0
231
Member Avatar for ben1996123

I've been getting an error that says a class isn't declared when I try to pass it to a function. I got this error before, so I deleted the code and typed it out again and it worked. It's not working this time. The program starts in main, then goes …

Software Development c++
Member Avatar for ben1996123
0
355
Member Avatar for lele07060

So I did the first part of my assisgnment like this * ** *** **** ***** ****** ******* ******** ********* using this code [CODE]public class starForTest { public static void main(String [] args) { for (int i=1; i<=9; i++) { System.out.println(); for (int j=9; j>=i; j--) { System.out.print(" "); } …

Software Development java
Member Avatar for NormR1
0
155

The End.