132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for extemer

class Stars { public static void main(String args[]) { int c=1; for(int i=1;i<=10;i++) { for(int k=1;k<=c;k++) { if(k%2==0) System.out.print("*"); // else // System.out.print("*"); } System.out.println(); c+=2; } output: * ** *** **** ***** ****** ******* ******** ********* i cannot understand that what the function of variable "c" and how it …

Software Development java
Member Avatar for NormR1
0
106
Member Avatar for charlesnazereth

I am trying to make an audio player in visual c++.I am using an audio engine called FMOD which is in a dll to call functions from it for audio playback. How do i import a .dll file to visual c++

Software Development audio c++
Member Avatar for chococrack
0
168
Member Avatar for Kevin Jose

heya.. im creating a quiz program...but i dont konw how to randomize the questions can any1 help me out???

Software Development c++
Member Avatar for iustitia
0
137
Member Avatar for Don_leon

I am doing a Smart device project The problam is I can not pass parameters to the stored procedure to insert into the database from the PDA emulator for the following sqlDbtypes it gives me the following error A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.SqlClient.dll Deicimal Money …

Software Development open-source
Member Avatar for Don_leon
0
115
Member Avatar for guptas

Hi all! i am trying to copy a file from 1 location to other location with a new name. The new name should be like "Oldname + date & time". I wrote the following code but getting error that the Given path format is not supported [code] Imports System.IO Public …

Software Development vb.net
Member Avatar for guptas
0
326
Member Avatar for Chris.Leah

Hi guys, I am using Visual Studio 2008 and have connected a database correctly as I have done a login that works fine, although when I try to insert information submitted in the text boxes a different table, it doesn't enter after I end program to check it still has …

Member Avatar for maj3091
0
410
Member Avatar for Stein102

Okay, so i need help getting a value from a variable in one class's method. I want to use that data in another Class's method. Heres what i mean... [code=java] public class RoomType{ public String N(String[] args){ Scanner scan = new Scanner(System.in); String opt = ""; int x=1; do{ opt …

Software Development java
Member Avatar for coil
0
158
Member Avatar for ezkonekgal

Hello. Anyone familiar with the Halstead product metrics? we are going to implement it. and again i need some help. here is our algorithm: 1. The user runs the program. 2. The program will ask the user to browse the file he/she wants to be evaluated using the programer's own …

Software Development algorithm java
Member Avatar for jon.kiparsky
0
661
Member Avatar for afg for life

hello everyone, i get this error when i try to run thsi program..its really nothing, i'm just a new programmer and this si practice but i'm stuck here :( error C2228: left of '.Text' must have class/struct/union 1> type is 'System::Windows::Forms::Label ^' 1> did you intend to use '->' instead? …

Software Development c++
Member Avatar for afg for life
0
335
Member Avatar for TheWhite

so, lets say I have a thread that looks like this: [CODE=java] public run() { boolean active = true; while (active) { //do some action that takes a really long time } } [/CODE] Is there any way I can directly stop and destroy this thread in the middle of …

Software Development java
Member Avatar for ~s.o.s~
0
155
Member Avatar for headedtomexico

I have a simple class [CODE]class Info { public: long One[31]; long Two[79]; };[/CODE] i'm reading values from a couple char arrays, when I write to Two[0], it overwrites One[31]. [CODE]CurInfo->One[31] = atol(BufferOne); chatoutf("%d",CurInfo->One[31]); CurInfo->Two[0] = atol(BufferTwo); chatoutf("%d",CurInfo->One[31]);[/CODE] if I feed bufferone a -1, and then buffertwo a 623, I …

Software Development c++
Member Avatar for headedtomexico
0
126
Member Avatar for laptop545

Hello All, I have a question regardind=g accessing shared resources. I have a for loop in which i am creating many threads.. And each thread at some point of time they call this function : [code] Public Function UpdateMailJobs(ByVal con As Data.DataRow, ByVal jobid As String, ByVal varName As String, …

Software Development multithreading vb.net
Member Avatar for the_carpenter
0
172
Member Avatar for KrisJones

Can Somebody please help a newbie ? I`ve searched high and low for an answer, but just can`t seem to get it working ! I`m trying to write a programme ,in VB2008 Express, to receive Serial Port Ascii data ( from a Multimeter) and display it as Hex Data in …

Software Development vb.net
Member Avatar for ÜnLoCo
0
150
Member Avatar for tallygal

The question is: Write a code that will take and inches input and convert it to mm. Then display the same result using m, cm, and mm. Example would be: Input: 53 inches Output: 1346 mm OR 1 m 34 cm and 6 mm Something is happening with the remainder …

Software Development java
Member Avatar for coil
0
162
Member Avatar for xtra333

Hi Guys. I am new here. I am trying to run a Poker program that can detect the different hands in poker. here is my code [CODE] class Card: # A card is an Object with a suit and rank # attributes. def __init__(self, rank, suit): # To create a …

Software Development algorithm flash python
Member Avatar for xtra333
0
2K
Member Avatar for Dorayaki

Hello, I Got problem in using delimiter by using vb.net 2008 Please take a look at my code [CODE] Dim array As String() Dim IPaddr as String Dim r As New System.IO.StreamReader("config.ini") Dim rline As String = "" Dim s As String = "" While r.Peek <> -1 rline = …

Software Development vb.net
Member Avatar for codeorder
0
107
Member Avatar for MAbebe

Can any one please help me figure out what I am doing wrong on the following C++ programing language? I couldn't figure out what I am doing wronge that it gave me a hard time to compile it. Here is what I have done so far. using namespace std; struct …

Software Development c++ ios
Member Avatar for chococrack
0
165
Member Avatar for TahoeSands

I found some code that does something that interests me, but I don't fully understand the implementation. The part I am struggling with is where the author "overrides" an "actionPerformed" method. I have a vague idea of why someone would want to override a method that is inherited from the …

Software Development career java java-swing
Member Avatar for NormR1
0
427
Member Avatar for vsraju

IS there a way of generating reports from VB6 ( not through Data Reports & Crystal Reports ) which directly sends to a local printer and printing should be done fast, No matter what ever may be the font.

Software Development printer visual-basic
Member Avatar for astonvic
0
155
Member Avatar for JOSheaIV

Okay first of all thanks for taking the time to read this post. So I took a C# class this last spring semester and love programming with it now. The program I am working on I decided to make for my job that will help with scheduling. Here's where the …

Software Development
Member Avatar for JOSheaIV
0
156
Member Avatar for rowanmck

I'm having problems with the code below, it compiles but no matter what I do it doesn't open the .csv file that I want it to. The file name is passed into this funtion then it must read the values in and then print them out, simple, yet I cant …

Software Development c++ file-stream
Member Avatar for Fbody
0
440
Member Avatar for arntb0rnprgrmr

Goodeve guys... please help me on how to start a java game.. we have a proposed game and mine is a song lyrics game.. this is our project for the finals and honestly, i'm not that good in java.. :C what should be the first step? what is the best …

Software Development java
Member Avatar for VernonDozier
0
200
Member Avatar for mustangBE

hello i have an appl. in vb2008 with a datagridview. when i import my data from excel (colum with text and numbers)it only imports the numbers or the text , not the both. example : 120 150 set25 160 "set25" is not imported example : set120 150 120 set130 "150 …

Software Development open-source vb.net
Member Avatar for mustangBE
0
116
Member Avatar for SaiBalaji

Please give me answer for following question in easy way for understanding of basic learners. Write a C program that reads an integer n and stores the first n Fibonacci numbers in an array.

Software Development c
Member Avatar for Narue
0
260
Member Avatar for lordbaddkitty

I'm trying to LINQ two tables based on a dynamic key. User can change key via a combo box. Key may be money, string, double, int, etc. Currently I'm getting the data just fine, but without filtering out the doubles. I can filter the double in VB, but it's slooooow. …

Software Development apple asp.net vb.net
Member Avatar for lordbaddkitty
0
288
Member Avatar for subrat_p

I tried a lot to open a JAR file but it is not opening.I typed in command prompt javaw -jar MyJar.jar but it is not open. It makes some error sound bt not open. Please help me regard this

Software Development java
Member Avatar for Ezzaral
0
175
Member Avatar for Quagmire232

Hi everyone, Before i outline my problem, i DO have an alright idea of how i'll code this thing, it's just i'm unsure and wondering if there's a better or shorter or a more simple way. Ok im at the end of my current term of programming and it's Assignment …

Software Development pascal
Member Avatar for niobi
0
292
Member Avatar for itsmeisuru

[code] #include<stdio.h> #include<conio.h> #include<stdlib.h> int main(){ int i = 2; char a[1]; itoa(i, a, 10); char *command = ("md %s", a); system(command); char *cop = ("copy %s.jpg \%s\%s.jpg" , a, a, a); // want to copy the jpg file in to system(cop); //new made folder the path as (2/2.jpg) getch(); …

Software Development c
Member Avatar for itsmeisuru
0
108
Member Avatar for priyanka.js28

which one of the following will execute faster? int p=2; p++; OR p=p+1;OR p+=1; and y?? is it p++ bcoz it is a single instruction??...nd the rest r multiple...

Software Development c
Member Avatar for SaiBalaji
0
430
Member Avatar for virtualvictory

Can anyone please help me in debugging this program.This is the implementation of linked list.I have not inserted delete function.I couldn't display the data in the list properly.

Software Development c linked-list
Member Avatar for Ancient Dragon
0
78
Member Avatar for malvi

Hello As per my project requirement i want to update edit box per second. give me an idea how can i do it?

Software Development c++
Member Avatar for Ancient Dragon
0
168
Member Avatar for ryan461

I'm new to perl, some experience in python. I've been tasked to create a script to remove comments in files. So basically id like to remove <!-- comment here --> from every line that has it in an assortment of files in a directory tree. Some comments may span multiple …

Software Development perl regex
Member Avatar for ryan461
0
153
Member Avatar for pixma

Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click conn.Open() Dim cmd As New OleDbCommand("Update (SELECT Employee.empno, Employee.emplname, Employee.empfname, Employee.empmidname, Employee.contactno, Admin.description FROM Admin INNER JOIN Employee ON Admin.adminNo = Employee.adminNo) Set emplname=?, empfname=?, empmidname=?, contactno=?, description=? where empno=?", conn) cmd.Parameters.Add("empno", OleDbType.Integer) cmd.Parameters.AddWithValue("emplname", OleDbType.Char) cmd.Parameters.AddWithValue("empfname", OleDbType.Char) cmd.Parameters.AddWithValue("empmidname", …

Software Development vb.net
Member Avatar for pixma
0
165
Member Avatar for chandrut

1) how to connect c to database..... 2) how to connect C++ to Database...... Reply me its urgent.

Software Development c c++
Member Avatar for Ancient Dragon
0
119
Member Avatar for Jiblix

Hey guys, I'm a newbie programmer and I'm trying to create a program which calculates BMI. Weight is in lbs and height is in inches. I've compiled this and its got quite a bit of errors, so I could really use some help. The final result that I'm trying to …

Software Development java
Member Avatar for Jiblix
0
947
Member Avatar for perryg30313

Can anyone tell me what is wrong with the following Code. I am trying to launch a form on a different thread because the form takes 10+ seconds to load. The code I am using follows: [CODE] Public Class frmAdjustments Inherits System.Windows.Forms.Form Dim gVariant As Guid Dim gsUID As Guid …

Software Development dataset vb.net
Member Avatar for perryg30313
0
129
Member Avatar for kinniburghc

I want to create a jpg image containg some graphics which I draw using the Tkinter Canvas widget. This draws the image to screen and then I use the PIL library ImageGrab() function to grab it off the screen into a file. It would be much neater to by-pass drawing …

Software Development image python tkinter
Member Avatar for kinniburghc
0
7K
Member Avatar for CodyOebel

Ok I am doing some windows API programming that deals with two applications\windows. One window is my program, the other is a games window. I am building my application to output the coordinates to my applications screen. The coordinates are to be retrieved and are needs to be relative to …

Software Development api c++ windows-api
Member Avatar for chococrack
0
274
Member Avatar for NewOrder

the class is the same. but there are two methods: first method: if simply returns a string. [CODE]public String FindPiece(String chessPiece) { return name; } [/CODE] name. is a constructor variable. it is a name of the chess piece [CODE]public Pawn(String name){ this.name=name; }[/CODE] second method public boolean isMoveValid(ChessPiece[][] pieces, …

Software Development java legal
Member Avatar for NewOrder
0
94
Member Avatar for Kevin_160

I'm doing my master thesis on radar signal generation and to create a scenario, I need to have a timing in execution of my C-script of microseconds resolution. By using the time.h I can only get to a resolution of 1 millisecond. I know it is feasible in linux, but …

Software Development c
Member Avatar for Kevin_160
0
250
Member Avatar for bettybarnes

hi everyone kindly help me with my code, my form isn't showing my newly added records in the database but when i close it and then open again it will show. I want to know how to add refresh button and it will automatically refresh itself.. Thanks in advance!

Software Development vb.net
Member Avatar for bettybarnes
0
197
Member Avatar for jelinky

this is the code i have: [CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; ifstream infile("grade_data.txt"); string answers, key; int num_grades; void highest(double [], int); void lowest(double [], int); const int NUM_QUESTIONS = 10; double scores[NUM_QUESTIONS + 1]; int results; //how many right answers int wrong=0; //how …

Software Development c++
Member Avatar for Fbody
0
132
Member Avatar for hoppy9

Hello All, I am student just starting Java. I do need help with swing - GUI. I am creating 4 textfield that accepts input from 3 user and will display as a 2D Array in the text area. As well as calculate the average of one column from the input. …

Software Development gui java java-swing
Member Avatar for NormR1
0
499
Member Avatar for bino87

im tyinh to writ a program to calculate nd display the volum ,area as well as the area of 6 sides of the rectangular prism but im stuck lol im a beginners import java.util.Scanner; public class RectangularPrism { public static void main(String[] args) { int length; int width; int height; …

Software Development java
Member Avatar for robertmacedonia
0
373
Member Avatar for Kevin_160

Hi Everybody, FYI (In order to get a feeling with the time it takes to send command strings to signal generators via a GPIB bus, I want to send a voltage level high pulse to an oscilloscope. Ones the RF signal arrives via a detector diode, The pulse and the …

Software Development c session user-interface
Member Avatar for Kevin_160
0
355
Member Avatar for Herve

Can you help me to communicate between a 8051 based micro controller and a PC via RS232 ? I built this µC system some years ago; the PC interface is written in Qbasic. Everything was all right untill I switched to Win XP. I'm looking for either a Qbasic version …

Software Development visual-basic
Member Avatar for Kevin_160
0
135
Member Avatar for robertmacedonia

OK, so I want to thank all of you that helped me with my little problems within the past few days,I have almost come to the end of this project thanks to your suggestions. Now the thing is, I used ObjectInputStream & ObjectOutputStream to write down whole objects to a …

Software Development file-stream java
Member Avatar for robertmacedonia
0
2K
Member Avatar for abby2589

private static void randomNumber() { int rand; int min = -10; int max = 10; System.out.println(" "); for (int i = 0; i < 10; i++) { rand = (int) (Math.random() * (max - min + 1) ) + min; System.out.print(" " + rand); } System.out.println("\n"); } can anyone explain …

Software Development java
Member Avatar for extemer
0
204
Member Avatar for Naveed_786

How to store and retrieve images from VB.NET and Sql Server 2008

Software Development image vb.net
Member Avatar for Naveed_786
0
477
Member Avatar for gudumba

Hi, I started Python command prompt and entered this: import distutils.dir_util as du du.mkpath( "c:/foo/bar" ) #assume dir 'foo' doesn't exist This works fine and it creates the path 'foo/bar'. Now, go to file explorer and delete the dir 'foo' and go to the Python prompt and issue the same …

Software Development python
Member Avatar for Stefano Mtangoo
0
188

The End.