132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Kyle Willett

Hi Im not sure if this question belongs in the form so sorry if it doesn't. Here is my question, in a cs class of mine we have to write a make file that compiles the two seperate programs in the project. The only problem is that none of the …

Software Development c++ client-server
Member Avatar for Kyle Willett
0
251
Member Avatar for Carc369

For instance... say that I set char a = 'a' char b = 'b' how would I combine them to make them "ab" using strcat?

Software Development c++
Member Avatar for Lucaci Andrew
0
325
Member Avatar for pratik65

i want to put the values from three text boxes into one cell of my datagridview..

Software Development vb.net
Member Avatar for pratik65
0
556
Member Avatar for tieties

Hi ok so i want to read images from an sql server database..the images are saved in bytes but im struggeling to retrieve them my code for the retrieving this is the code i used to save the image and its working. Dim sql As String = "INSERT INTO item …

Software Development sql vb.net
Member Avatar for G_Waddell
0
199
Member Avatar for highonbikes

This is an assignment from school, I have spent a week bashing my head against the wall atrying to figure out how to get this to work. The program reads in a 'maze' or X's and stuff from, a file, and my functions are to fill a pre diminshied char** …

Software Development c++
Member Avatar for Lucaci Andrew
0
153
Member Avatar for gassa94

hi i need help creating a program using arrays. this is what is assigned and i cant figure much of it out ! please help! The single field (instance variable) for this class is a array of type char named seats[] with 10 elements. The first five elements (0 to …

Software Development java
Member Avatar for Taywin
0
102
Member Avatar for ktsangop

Hello everyone! I am building a mfc dialog based application in visual c++ 6 and using mysql c api to connect to a database. What i need is a simple type of data grid to show mysql query results in a dialog. I do not need to edit, update, save …

Software Development c++ mysql vb.net
Member Avatar for ktsangop
0
1K
Member Avatar for salford6129

I'm working on an assignment and I've run into a small problem. Our teacher wants us to read a line from a file containing three things we need sperated by a whitespace. I'm trying to figure out the cleanest way to read the line and then break it into the …

Software Development
Member Avatar for TnTinMN
0
152
Member Avatar for AdLab

Hi Everyone, I'm trying to interpret some data from an embedded sensor device into a C++ program. The device uses a numerical format called 1.15 fractional format. This means it transmits 2 hex bytes into a value rangle of ~1 < n < -1. A full description of the format …

Software Development c++ pdf
Member Avatar for AdLab
0
533
Member Avatar for napninjanx
Member Avatar for stefilina

Hy, I have some methods which are identical as functionality but dependent on the parameter received from the method.For example: public long GetElementsFromList(long el,List<long> lst) { Random rndElement = new Random(); int random = rndElement.Next(0, this.lst.Count - 1); if (random >= this.lst.IndexOf(el)) random += 1; return this.lst[random]; } public string …

Software Development
Member Avatar for pritaeas
0
141
Member Avatar for Ravish.Ahmad.Khan

Hi! I am new to java and I'm trying to make a **Stop Clock** which shows time in minutes, seconds and mili-seconds. I've attached the zip file with this thread which includes the source code and other files required to run the program. The *problem* which I'm facing is that …

Software Development java
Member Avatar for Schol-R-LEA
0
229
Member Avatar for Atlanta15Braves

I need a program that will return an integers factorial, but only when the number entered is between 0 and 20. I have the code to disregard anything below 0 and above 20, but something with my math and/or syntax is off and I dont fully comprehend how to fix …

Software Development java
Member Avatar for JamesCherrill
0
271
Member Avatar for Carc369

Basically I'm trying to see if the first letter is in the dictionary... then if it is.. check if the first and second letter are in the dictionary.. and if it is... check if the first, second, and third letter are in the dictionary... and so on and so forth. …

Software Development c
Member Avatar for Banfa
0
266
Member Avatar for Carc369

How do I combine two c-style strings together? Basically I'm trying to see if the first letter is in the dictionary... then if it is.. check if the first and second letter are in the dictionary.. and if it is... check if the first, second, and third letter are in …

Software Development c++
Member Avatar for Ancient Dragon
0
393
Member Avatar for BablooDabloo

how can i shyow this output using a single for loop? `0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20` `0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 …

Software Development java
Member Avatar for stultuske
0
187
Member Avatar for manraj kaur

hi plz tell me the coding of exception handling in java..

Software Development java
Member Avatar for jalpesh_007
0
361
Member Avatar for FUTURECompEng

Currently this method has a run time of O(N^2) and I am trying to get it to O(N). Any suggestion as to where I should start? public void removeAll(e removeNum) { node nodeToFind = this.find(removeNum); while(nodeToFind != null) { this.remove(nodeToFind); nodeToFind = this.find(removeNum); } } Thanks

Software Development java linked-list
Member Avatar for JamesCherrill
0
302
Member Avatar for efth

Let's say I have an array/arraylist(doesn't matter) with the following content: 2, 2, 2, 4, 5, 5, 8, 8, 8. How wold I go about counting the different values, in other words; how would I find out that there are 3 twos, one 4, 2 fives and 3 eights. How …

Software Development java
Member Avatar for piyush09
0
317
Member Avatar for siddkh

AH 1106 AH 11989 AH 121 BH 120 BH 220 CH 330 I want result like AH 1160 11989 121 BH 120 220 CH 330

Software Development perl
Member Avatar for 2teez
0
83
Member Avatar for ali11

how can i replace the array notation with pointer notation #include<stdio.h> #include<stdlib.h> #include <math.h> /* 4 */ void run_sieve(char *, int); /* 5 */ void print_primes(char *, int); /* 6 */ int main() { /* 7 */ int i, top; /* 8 */ printf("compute primes up to: "); /* 9 …

Software Development c
Member Avatar for -[xxxxxxx]-
0
250
Member Avatar for s123456

spring model....i want to get the program to return the value of the period of the motion of the pendulum i have tried putting this outside the loop oldVelocity = vector(0,0,0) and this inside the loop before v: oldVelocity = m.v with print statement: if oldVelocity.y/m.v <0: print ("time = …

Software Development python spring-framework
Member Avatar for s123456
0
437
Member Avatar for vbenthu

Hi there Im trying to write up a code where two txt files are being compared to each other. One text files has the answer like "TFTTFFT" and the other txt files has the result including id like "1234 TT-FFT" The crazy part is that for each correct answer, the …

Software Development vb.net
Member Avatar for vbenthu
0
107
Member Avatar for tet3828

I have a two forms that I created using the design view of Visual C# Express (Form1 & infoEntry). I set the properties to of the listview in Form1. public System.Windows.Forms.ListView toSend; I've invoked the second form and sent some data using code below. Works great. infoEntry dataWindow = new …

Software Development listview microsoft
Member Avatar for TnTinMN
0
424
Member Avatar for alyssa.wilkins.77

#include <iostream> #include <fstream> #include <string> using namespace std; const int numRows=5; const int numCol=7; void openfile(ifstream& , ofstream& ); void initialize(ifstream& , ofstream& ); void ave(ifstream& ,ofstream& , double , double,string ); void printout(ifstream& , ofstream& ,string ,double ,double ); int main(){ ifstream infile; ofstream outfile; string names[numRows]; double …

Software Development c++
Member Avatar for dx9_programmer
0
332
Member Avatar for Vish0203

Hi.. can anyone tell me what is the meaning of this error?? [Error] cannot convert 'std::string {aka std::basic_string<char>}' to 'char*' for argument '1' to 'char* strcpy(char*, const char*)' When I'm taking TeamName as char TeamName[30]; , the compiler shows linker error. what could be the problem? I use DEV C++ …

Software Development c++
Member Avatar for rubberman
0
207
Member Avatar for sivate
Member Avatar for rubberman
0
49
Member Avatar for Ray124

Hey guys I have a wierd issue that im not sure how to fix. If a users starts timer1 it will open form that has a timer and continue allowing them to choose other options. BUT the sendkeys do not go through until the timer is up and the form …

Software Development vb.net
Member Avatar for TnTinMN
0
128
Member Avatar for charles.coogan

Dim num1, num2, sum As Double num1 = txtFirstNum.Text A variable input any number can go here num2 = txtSecondNum.Text A variable input any number can go here sum = num1 + num2 txtoutput.Text = sum My goal is to have the txtoutput show the equation 2 + 2 = …

Software Development vb.net
Member Avatar for charles.coogan
0
105
Member Avatar for slygoth

I am working on this project and i am going to need to write information and retrieve them from a file. I get all the information needed but i am not sure how to write it to a file and how to get it back. if (id.is_open()) { cout<<endl; cout<<"Enter …

Software Development c++ file-system
Member Avatar for slygoth
0
164
Member Avatar for chris.vargas.773

For an assignment for class i wrote this code right but the only problem i have is that i can't get the right value that assignment wants which is distance so far: 0 meters distance so far: 1000 meters distance so far: 0 meters distance so far: 0 meters distance …

Software Development c c# c++
Member Avatar for dx9_programmer
0
137
Member Avatar for jake.jackson.7169709

I'm still a little confused. Basically this is what I'm trying to do, and I'm having one hell of a time with it... My program has two values "Value" and "N". The goal of the program is to select every Nth number of Value starting with the last, and print …

Software Development c
Member Avatar for dx9_programmer
0
236
Member Avatar for chris.vargas.773

i wrote this code for sending and recieve mail but i can't get the output that is required for class which is -Test 1-- Creating a new envelope Addressing from Muffin To Howie Inserting the message: Pet me! Affix Postage: 0.33 stamp Sealing the envelope Mailing the envelope --Test 2-- …

Software Development c c# c++
Member Avatar for dx9_programmer
0
174
Member Avatar for Lardmeister

This little experiment with Tkinter and pixel drawing shows some strange effects (look at line 27 comments!!!): '''tk_put_pixel.py place a pixel at pos=(x,y) with color=(r,g,b) on an image area note: one pixel might be hard to see, so create a series of pixels (line) ''' try: # Python2 import Tkinter …

Software Development image python tkinter
0
148
Member Avatar for favoredanteater

python help on making the program accept other values? # Find the area and perimeter of a rectangle import math class Rectangle(object): """A 2D Recangle""" def __init__(self, width = 1, height = 2): self.width = width self.height = height def Perimeter(self): "Return the Perimeter of the rectangle" return (2 * …

Software Development python
Member Avatar for Schol-R-LEA
0
210
Member Avatar for sk8ergirl

this is practice is require to create 3 class when I click load button I should get flight number ,day,time, destanation , pilot , co pilot I should get this http://s17.postimage.org/52smv6jl9/screenshot_A1.jpg every thing seem to be right I didn't get any red lines , but I can't find where is …

Software Development java
Member Avatar for Schol-R-LEA
0
95
Member Avatar for badboy515

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Drawing.Drawing2D; /* * @(#)fractal.java - Fractal Program Mandelbrot Set * www.eckhard-roessel.de * Copyright (c) Eckhard Roessel. All Rights Reserved. * 06/30/2000 - 03/29/2000 */ //import java.awt.*; //import java.applet.*; //import java.awt.event.*; /** * @version …

Software Development c# java
Member Avatar for ddanbe
0
274
Member Avatar for Inshu

TypeError: 'float' object has no attribute '__getitem__' What does this mean ???

Software Development python
Member Avatar for Lardmeister
0
753
Member Avatar for edensigauke

I have been working with Java a longtime, but my main problem is this. Everytime i try to set my classpath, set my path variables, all works well, until i think of adding a new package from elsewhere. Disaster breaksout, such that i have to recode the entire package for …

Software Development java
Member Avatar for edensigauke
0
237
Member Avatar for sabrimev

Anyone has idea to seperate a word in parts for example ( kalemimin -> kalem-i-min ) 'kalem' is str1 , 'i' in str2 and 'min' should be get into str3.

Software Development c++
Member Avatar for myk45
0
105
Member Avatar for richjohn.bulante

i have a problem on how to code for automatic generate an employee id whenever i registered an account in my system. i used asp.net as my front end and Sql Server Database 2005 as my back end.. thnx a lot!

Software Development c#
Member Avatar for Dani
0
222
Member Avatar for PinoyDev

Good day! I just need a little help on how to create this program the precise way. Example if the user will enter 123450, it should output the sum of all individual integers, in the example the result must be 15. If the user will enter a character or a …

Software Development java
Member Avatar for JamesCherrill
0
153
Member Avatar for kalelovil

The code below should be extracting the pixel data from the mapProvinceFile bitmap specificed and placing it into a byte array, modifying some of that color data depending on the contents of a custom ArrayList, vertically flipping the image, and then displaying the resulting modified image in a new pane. …

Software Development image java
Member Avatar for JamesCherrill
0
407
Member Avatar for Delnith

I am looking for a project or goal to reach in order to improve me programming skills. I'd say I am still a beginner as it comes to C programming and would like a project to work on but cannot seem to think one, any ideas?

Software Development c
Member Avatar for Schol-R-LEA
0
234
Member Avatar for johsh.hanks

So, I have to find rhyming words. Basically I am getting a bunch of words and I need to compare which ones rhyme. So if I am given words like... friendl|y, luck|y, murk|y, rapidl|y luc|ky, mur|ky frien|dly, rapi|dly They can also rhyme with other words, so a word could appear …

Software Development algorithm java
Member Avatar for johsh.hanks
0
535
Member Avatar for kayceedude

`Inline Code Example Here` I have been trying to solve this but i just can't get it right... can someone help me pls? Using array to summarize survey results 40 Students were asked to rate the quality of the food in the student cafeteria on a scale of 1 to …

Software Development c++
Member Avatar for kayceedude
0
467
Member Avatar for nostalgia

Hello, It appears that I'm having a slight problem with a pesky ArrayIndexOutOfBoundsException when trying to assign a value to an array embedded within an object. I *think* it's because the array hasn't been instantiated before I try to add values to it's index. The purpose of the program is …

Software Development java
Member Avatar for richieking
0
224
Member Avatar for kt9871

ran into a little snag with my code. i am trying to push the data of all the nodes in a linkedlist into a stack. problem is, i have no idea how to properly convert a node into a variable. Node current = list.returnHeadNode(); //other code... stack.push(current.getData()); my error lies …

Software Development java linked-list
Member Avatar for kt9871
0
432
Member Avatar for mahnaz0098

Hello I want to turn on a LED using C, meaning that I want to write on printer port. but the code doesn't work. I use char ledStatus instead of BYTE ledStatus. is there any difference?? what is the problem in this code? #include <windows.h> #include <conio.h> #include <staio.h> #define …

Software Development c printer
Member Avatar for Ancient Dragon
0
384
Member Avatar for Tuna_1

Hello, I am solving the assignment by Faculty Dean.but I face with that problem CS=1000; AX=0001; IP=0006; SP=0038; DS=2000; BX=0004; BP=0005; ES=4000; CX=0005; SI=0008; SS=5000; DX=4477; DI=0009; SUB [BX],CL; and another problem ADC DL,[BX]; footnote:these problems do not depend on each other

Software Development assembly
Member Avatar for deceptikon
0
247

The End.