132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hariprasadrao

i've started learnin OOPS lately... and i hav a question... check it out... i started studying abt friend class and friend functins... a friend function program... now, how can i write a progarm 2 add two complex variables... can i use: void getdata() { cin>>a+i; cin>>b+i; } to input two …

Software Development c++
Member Avatar for Luciusduplantis
0
108
Member Avatar for Tankadin

hi folks the program I am attempting to do here, even though its horrible so far, is one that reads in a file containing: [code] Johnson 85 83 77 91 76 Aniston 80 90 95 93 48 Cooper 78 81 11 90 73 Gupta 92 83 30 69 87 Blair …

Software Development file-system hard-drive java
Member Avatar for kramerd
0
180
Member Avatar for jems5

In my program I need to have the user get two chances before ending the program. Currently if the condition is not satisfied then they only get one try. I would like some help in getting a second try. [CODE] // Takes user entry Scanner user = new Scanner(System.in); System.out.println("Please …

Software Development java
Member Avatar for jems5
0
81
Member Avatar for DerLars

Hello everybody, I have spend the last 6 hours on trying to access a char * type within a static struct without success. I guess I use the pointers wrong but after trying "everything" I am pretty lost right now. So hopefuly someone of you can help me. I have …

Software Development c queue
Member Avatar for gerard4143
0
142
Member Avatar for Violet_82

Hi there, I have a question about a really simple program. The code below doesn't work, the compiler comes back with "fatal error C1083: Cannot open include file: 'ofstream': No such file or directory": [CODE]#include <iostream> #include <ofstream> using namespace std ; int main( ) { ofstream myfile("newfile.txt") ; myfile …

Software Development c++
Member Avatar for Violet_82
0
199
Member Avatar for Spudgunner

Hi I'm beginning a new game project involving Event data cards. Most have common types of data. They fall broadly into three types: terrain, movement or fire. Although there are some special event cards or modifier cards but on the whole, similar data on the most part. Except the fire …

Software Development gaming
Member Avatar for Spudgunner
0
113
Member Avatar for obinimalyn

what are the modules do you prefer to do when you are creating a COMPUTER AIDED INSTRUCTION SYSTEM??

Software Development vb.net
Member Avatar for obinimalyn
0
87
Member Avatar for Vast

Hello. I need some help in deducing time in a game. The current time is (06:45:10) I have two fleets that is send to attack a planet. The first fleets arrival time is known (10:31:15) 24 hour format The second fleets time to get to the target planet is known …

Software Development visual-basic
Member Avatar for AndreRet
0
87
Member Avatar for gedas

hey everyone, well i got a little problem im trying to write input from the JTextField into the file (file4.txt) but the problem is it keeps overwriting the text file each time i make input and any data ther was is changed in to new data.all i need is that …

Software Development java
Member Avatar for gedas
0
88
Member Avatar for akondray

I'm trying to write a program that, after playing a game with the user, asks if they want to play again. For this test, I want to simply test the first letter of the word they input and if it's a "y" then the game will repeat. at first, I …

Software Development java
Member Avatar for Taywin
0
160
Member Avatar for Goshutu

my program is made to enter a matix,in which it finds all of the column`s minimum numbers which are[COLOR="Red"] >0[/COLOR] and then put them under the last row.i have sucseded entering the array and puting it out,but i think my IF is wrong somehow.I have tried initialising the last row …

Software Development c matrix-multiplication
Member Avatar for Goshutu
0
204
Member Avatar for pyprog

I was just wondering if there is a method or something in Java that, once a URL has been passed, can determine if a webpage under that URL was written in HTML, PHP, XML, and so on. I looked in URL and HTTPConnection classes but didn't find anything. Maybe missed …

Software Development java xml
Member Avatar for Taywin
0
82
Member Avatar for flyingcurry

The program like the title says is supposed to return the largest integer value in an user-inputted integer array, using binary recursion. And in the case of an empty array, return Integer.MIN_VALUE. I am kind of stuck on the logic of this binary recursive algorithm. I know there is errors …

Software Development algorithm java seo
Member Avatar for Taywin
0
180
Member Avatar for sidra 100

what r sum applications of very common microprocessors and microcontrollers that uses assembly language as its basic or core language

Software Development assembly
Member Avatar for coolshiva
0
74
Member Avatar for ichigo_cool

I've been doing research on data structures but I just can't really wrap my head around what they are. I'm thinking classes, enums, structs are data structures; but then I also see linked lists and queus, etc that I don't understand either. Could anyone tell me what they are, what …

Software Development c++
Member Avatar for invisal
0
191
Member Avatar for Rajdarji

[CODE]#include <stdio.h> #include <ctype.h> #include <string.h> #include <unistd.h> #include <libgen.h> #include <time.h> #include <errno.h> #include <ctype.h> #include <math.h> #include <float.h> #include <stdlib.h> static char * string_tok( char *str) { static char *next = NULL; if(str == NULL) { str = next; } else { next = str; } if(str == …

Software Development c
Member Avatar for invisal
0
127
Member Avatar for Dazaa

I am writing another header file. And I am still trying to get my head around these templates. They seem extremely easy to understand but I have had the compiler moaning at me for the last 2 hours. This is what i have: [CODE] #include <iostream> #include <cassert> using namespace …

Software Development c++
Member Avatar for Fbody
0
6K
Member Avatar for homeryansta

Greetings fellow programmers! I'm doing a computer vision project in my AI class and am looking for some tips. My task is to read a bitmap into memory and alter that image file and find an object within it. In my case, I'm searching for a box that appears in …

Software Development c++ computer-vision
Member Avatar for Taywin
0
149
Member Avatar for khaled_jawaher

how can i associate jar files with java.exe not javaw.exe in window 7,since if jar file is associated to javaw.exe,then console is not displayed. thanx

Software Development java
Member Avatar for JamesCherrill
0
333
Member Avatar for atramposch

I have no syntactical errors, but i cant figure out why this wont work. Heres the code. [CODE]#include <stdio.h> #include <string.h> #include <ctype.h> #include <math.h> int main (void) { char str[100]; int i = 0, line_count = 0, len = 0, alpha = 0, lower = 0, upper = 0, …

Software Development c++
Member Avatar for Taywin
0
335
Member Avatar for rje7

[code] public class Animal { public void eat() { System.out.println("I eat like a generic Animal."); } public static void main(String[] args) { } } class Fish extends Animal { @Override public void eat() { System.out.println("I eat like a fish!"); } } class Goldfish extends Fish { @Override public void eat() …

Software Development java
Member Avatar for javaAddict
0
170
Member Avatar for timb89

im trying to get my code to perform dijkstra's algorithm on my adjacny matrix, it works great for the inital row (0) but i cant get it working for any other value?! [CODE]void dijkstra (int a[size][size], int matSize, string CityID[size]) { string startCity; cout << "Enter start city : "; …

Software Development algorithm c++ queue
Member Avatar for Taywin
0
150
Member Avatar for adams161

I figured out how to make indentation with [code=java] SimpleAttributeSet style = new SimpleAttributeSet();// = doc.addStyle(null, null); StyleConstants.setLeftIndent(style, 12); StyleConstants.setFirstLineIndent(style, -12); [/code] and then use doc.setParagraphAttributes(doc.getLength(), 1, style, false); after the insert into document. now numbers there doc.getLenght(), 1, i've been changing around but always same issue. The problem is …

Software Development java java-swing
Member Avatar for adams161
0
193
Member Avatar for prayag.419

i have just entered T.Y.B.Sc.I.T 6th sem. and i am confused which project topic should i select, can anyone help plz. Project wourth is 200 marks

Software Development vb.net
Member Avatar for Naveed_786
0
73
Member Avatar for tyras

some one help me with visual basic bus management system please

Software Development visual-basic
Member Avatar for AndreRet
0
108
Member Avatar for zulhimi89

Hi experts, I'm using vba to do my coding. I have to check whether the data exists in the db or not. so I'd done this to check it. [code] Set rs = New ADODB.Recordset With rs .Open "pr_q", cn, adOpenKeyset, adLockOptimistic, adCmdTableDirect curr_year = Year(Date) q = 4 .MoveLast …

Software Development vb.net
Member Avatar for AndreRet
0
87
Member Avatar for jmcorpse

I want to say thank you to everyone in advanced for all the help that has been provided. I am currently stuck on two more items on this program. Currently I am completely stumped on how to create a bar graph using the information gathered by the program. Some reason …

Software Development c++
Member Avatar for jonsca
0
99
Member Avatar for johntech2001

I am working through the book Beginning Visual Basic 6 Database Programming by John Connell. I have finished the section on Building a Data Control Class Module and have created a nice Book List program for my wife. I am using the DAO database control as shown in the book. …

Software Development visual-basic
Member Avatar for AndreRet
0
608
Member Avatar for numancia

Hi guys I need help with my C# winform app below/attached the code Thanks. -------------------------------------------------------------------------------- [code] 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.IO; namespace ListOfRunners { public partial class Form1 : Form { //protected Runner runner; //protected List<Runner> listRunner; …

Software Development display
Member Avatar for numancia
0
203
Member Avatar for Chargerfan

how do i receive two separate inputs from the same text box? here is what i have so far: [CODE] c1 = textBox1.Text; textBox1.Clear(); c2 = textBox1.Text; [/CODE]

Software Development
Member Avatar for kvprajapati
0
71
Member Avatar for Tellalca

How is it possible to delete a byte ( char, int, double .. ) from a text file ? Suppose that the file.txt contains :"110Hello". And I want to delete "110" from the file leaving only the "Hello" part. How to do this without reading the whole file into the …

Software Development c file-system
Member Avatar for WaltP
0
74
Member Avatar for adaniel058

[ATTACH]17854[/ATTACH] [ATTACH]17855[/ATTACH] [ATTACH]17856[/ATTACH] Guys I am trying to help a friend of mine with this project they have due in a few days and because I program in Java mainly I am a bit rusty with this. I can not figure out why my getInput function shows up under the …

Software Development c++
Member Avatar for adaniel058
0
140
Member Avatar for littleCuteMaria

I am working on a control break algorithm in C, and part of this algorithm is to have while loop check for the end of file and whether two strings equal each other. the first string is a part of a typedef struct structure called 'record' [I]rec.state[/I], and the second …

Software Development algorithm c
Member Avatar for Ancient Dragon
0
123
Member Avatar for purijatin

Hello I am making an project in Netbeans and the following is my problem: I deleted some of my .java files of my project and later copy pasted the same files. Now the code runs perfectly fine but Netbeans doesnt detect the packages. I mean inside the code it shows …

Software Development java java-netbeans
Member Avatar for purijatin
0
102
Member Avatar for Rez11

The point of the program I am making is to have a pure abstract base class called BasicShape and have 2 child classes, Circle and Rectangle. I have the program written but with one unresolved error. [B]Main.cpp file[/B] [CODE]#include "Pure.h" #include <iostream> using namespace std; int main() { Circle pizza(2,2,10); …

Software Development c++ oop
Member Avatar for Rez11
0
968
Member Avatar for watery87

Hi guys, im having problems verifying date. My exact problem is that even if user inputs an incorrect condition, the system still stores it into the class. My question is, where do i put the conditions so that the error gets printed AND the user gets to reinput that value …

Software Development c++
Member Avatar for watery87
0
120
Member Avatar for swathys

hi, when i run the code below its hit the error [COLOR="Red"]Index was outside the bounds of the array.[/COLOR] in a place that i highlight in red. Please help [CODE] Dim crParameterFieldDefinitions As ParameterFieldDefinitions Dim crParameterFieldDefinition As ParameterFieldDefinition Dim crParameterValues As New ParameterValues Dim crParameterDiscreteValue As New ParameterDiscreteValue rpt.SetDatabaseLogon("sas", "123") …

Software Development vb.net
Member Avatar for swathys
0
843
Member Avatar for widapol

Hi all, I want to send a file to my gmail over socket. Reading a file and writing it to socket is simple but actually I donot know how to implement SMTP over socket. Could anyone tell me how to do it ?

Software Development c socket-programming
Member Avatar for group256
0
102
Member Avatar for Dazaa

I am sure there is nothing wrong with this... I am racking my brain as to why it wont compile. [CODE] #include <iostream> #include <string> using namespace std; class Vehicle { public: Vehicle(); Vehicle(string m, int y); void print() const; protected: string model; int year; }; void Vehicle::print() const { …

Software Development c++
Member Avatar for group256
0
103
Member Avatar for poojabi

between merge sort and binary insertion sort which is more efficient?i know that theoritically both are nlogn search bt practically which will be better.that means if we plot the graph of number of comparison vs number of element in the list hose slope wll be slightly more than the other.and …

Software Development c
Member Avatar for Adak
0
627
Member Avatar for Hawkpath

Hi, I'm trying to create a simple program in Win32 and I can't find how to accept input in the form of text. Like "What's your name: ___" then the user enters their name and my program can evaluate the input. I have already googled this for a long time, …

Software Development c c# c++ windows-api
Member Avatar for Frederick2
0
504
Member Avatar for triumphost

kk so I am having a problem on a mac where the audio doesnt work very well unless my finger is on the touchpad... it works perfectly smooth... I want to write code to detect whether the finger is there or not and if it isnt then move the mouse …

Software Development audio c++ objective-c
Member Avatar for triumphost
0
181
Member Avatar for emko

Hi, I need to make a simple calculator that just does addition and subtraction. But the program should keep a running total of the calculations entered like this: sum = 0 12 + 3 sum = 15 5-2 sum = 12 1+1 sum = 13 But it also needs to …

Software Development c++
Member Avatar for emko
0
398
Member Avatar for HoneyBadger

I am trying to add two hexadecimal numbers. [CODE]def addbinary(n1,n2): s = "" carry = '0' for i in range(3,-1,-1): if (n1[i] == '1' and n2[i] == '1' and carry == '0'): s = '0' + s carry = '1' elif (n1[i] == '1' and n2[i] == '1' and carry …

Software Development python
Member Avatar for HoneyBadger
0
458
Member Avatar for zwench

What does this mean and how can I fix it? An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll Additional information: Index was out of range. Must be non-negative and less than the size of the collection. [CODE]dgtsCustomers.GridColumnStyles(0).HeaderText = "Factory ID" dgtsCustomers.GridColumnStyles(0).Alignment = _ HorizontalAlignment.Left[/CODE]

Software Development vb.net
Member Avatar for samina228
0
161
Member Avatar for timb89

anyone have any ideas? for some reason uni forgot to include lectures notes on this, yet decided to base homework on it. i get the general idea just not sure how to implement it.

Software Development c++
Member Avatar for SasseMan
0
3K
Member Avatar for qbmike

Hi, I am relatively new to JAVA and especially SQL and I am having trouble with a "cannot find symbol error. I believe it is at this line catch: "catch(SQLExeception e)". Any advise would be greatly appreciated. Thanks, Mike NetBeans code looks like this: [code] import java.sql.*; public class Book …

Software Development java java-netbeans java-swing
Member Avatar for qbmike
0
180
Member Avatar for vijay.neo

Hi friends, As i a writting small C program to pass the structure pointer in the function. i am endup with small problem, plz let me know how to crack this one? ///////////////// [code] void function1(void *); void main() { int size_offset = 0; typedef struct { int a; int …

Software Development c c# c++
Member Avatar for ahmad chehade
0
206
Member Avatar for jack223

It's from my homework assignment Question 1) Based on the O notation, approximately how many swaps and comparisons occur when Selection sort is called on a worst-case array of length 8? a) 16 b) 64 c) 100 d) 800 Number of swaps = O(n) which is "8" and Number of …

Software Development c
Member Avatar for Adak
0
153
Member Avatar for bio-grad

I received the following error, but I don't understand how to fix it. Help? "readline() on closed filehandle IN at transcribe.pl line 21." [CODE]#!/usr/bin/perl #transcribe.pl #convert DNA to RNA (T to U) use strict; use warnings; #TASK: Read DNA sequences from ‘DNAseq’ input file – #there is one sequence per …

Software Development perl
Member Avatar for bio-grad
0
3K

The End.