132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hedwards09

Hello, I am an online student in an intro to Java programming course and am a little stuck on my current program. The program is supposed to prompt for the name of files until the user enters "stop" to quit and includes the following methods in addition to the main …

Software Development java
Member Avatar for brownjohn
0
121
Member Avatar for nguerrero03

I've long looked at this site for advice, but I'm stuck now. I have an idea of WHAT I need to do, but don't know exactly how to do it. YES this is homework. NO I'm not asking for anyone to completely do it because I need to learn this …

Software Development c++
Member Avatar for nguerrero03
0
544
Member Avatar for Afupi

I am very new to using the STL list library. From what I have been reading here and other places on the web is that I have to create a compare function to use within the sort member function of list. The reason being that the list node's contain structures. …

Software Development c++
Member Avatar for Afupi
0
333
Member Avatar for StaticX

Hi i am in need of an explanation to the following: I have created a program to take in a string(stored in a character array). With my string,i must pass it into a function and 2 functions i have created are stringLength and toUpperCase.(i know there are string functions to …

Software Development c++
Member Avatar for StaticX
0
98
Member Avatar for ybean4

Hi, I'm looking for a way to write programs for a pc on a palm and "compile" them (check them for compiling errors without actually creating an executable). Any ideas? Thanks

Software Development c++
Member Avatar for ybean4
0
77
Member Avatar for pac-man

Hi guys, I have a static vector which holds objects of a class. I want this vector to be singleton i.e. be the only vector of this type which will indefinitely store the relevant objects. Unfortunately, a problem arises whereby, when I access the vector from a different class, for …

Software Development c++
Member Avatar for pac-man
0
844
Member Avatar for acdougla17

OK, so I have this project to do and cant figure it out. I am not positive on calling functions correctly and I am kind of lost when it comes to parameter passing. So my program needs to read a text file 1 integer at a time, find out if …

Software Development c++
Member Avatar for restrictment
0
155
Member Avatar for react05

How would I call the function so the program runs through each option. I've got the program done but everything i run it, the options do not run. Any help? Thanks. [code]#include <iostream> #include <fstream> #include <iomanip> using namespace std; void readMatrix (double x[][30], int & m, int & n); …

Software Development c++
Member Avatar for react05
0
116
Member Avatar for shakunni

How do you add a character to an existing string? In java you could just do: char c='a'; String b="posit"; b+=c; but I tried doing that in C and it doesnt work. Is there a workaround? Thanks.

Software Development c
Member Avatar for shakunni
0
93
Member Avatar for shakunni

I need to read data from a flat file [find below] into a linked list. Each line is a record and each record needs to be read into a different node. After I open the file using fopen(), I have the following problem: 1) How do I move from the …

Software Development c file-system linked-list
Member Avatar for gerard4143
0
105
Member Avatar for ulxlx

I've made pong and was wondering how I could embed it (it was made in java). I'm new to java so if you could explain it, that would be helpful, but if you can't that's ok. Thanks in advance :icon_mrgreen:.

Software Development java
Member Avatar for ulxlx
0
177
Member Avatar for mitsuevo

hey guys, Got another question: in C programming etc we can stop an execution of say an infinite look by pressing Ctrl+C. What's the equivalent in python? i'm using the IDLE GUI. I've found myself in situations where its running a never ending long task which i want to stall, …

Software Development gui python
Member Avatar for jlm699
0
110
Member Avatar for shakunni

Hey, How do I create a file from a C program? I want to check if the file exists and if it doesnt, then create it. I am using the following code to check if it exists: [code] filecheck() { b=fopen("password.csv","r+w"); if(b==NULL) { // need code for creating a file …

Software Development c
Member Avatar for venomxxl
0
118
Member Avatar for PopeJareth

Can Someone tell me why these files won't compile on unix but work fine (mostly) in windows? It looks like unix-land doesn't load the variables from the inherited class QueueArray into the proper scope. prog5.cpp is supposed to create 3 different types of Deque classes. each Deque inherits from ArrayQueue …

Software Development c++ unix
Member Avatar for PopeJareth
0
256
Member Avatar for pyprog

Can I pass a string filename as a parameter to a function? For example, [CODE]def func("something.txt"):[/CODE] When I do this, it says that the syntax is invalid. Is there a proper way to do it or it is simply not done?

Software Development python
Member Avatar for pythopian
0
118
Member Avatar for mitchstokes225

I have tried the two ways below to get my functions to call and run, but VS gives me the error error c2660: ..... function does not take 0 arguments First way tried [code] //Michelle CSI 130 Lab 11 Part 2 Section B //Digital logic and Boolean algebra #include <iostream> …

Software Development c++
Member Avatar for mikiurban
0
143
Member Avatar for tag234

Hello, I am currently trying to write a program that will read from either stdin from a file (using <) or from piped input. I have the portion using the < working because i am able to read the st_size of the file and create a read() call accordingly: read(0,&inptr,stdinfo.st_size); …

Software Development c ubuntu
Member Avatar for banders7
0
194
Member Avatar for luxxnatura

Hi all, I'm supposed to write a small program that asks the user for a number of a month( 1= Jan, 2=Feb, etc) and then outputs the month name and the month number. If the number entered is invalid (for example, > 12 or equal 0), then the user receives …

Software Development java
Member Avatar for luxxnatura
0
91
Member Avatar for ranjithgoud

hi guys, i am ranjith intrested in writing c c++ progs i hav a doubt that can i write a c or c++ program to excute at a given time thanks

Software Development c c# c++
Member Avatar for abdelhakeem
0
924
Member Avatar for tootaa

please any help with this homework IMPORTANT: Use Techniques Learned in Chapeters 1 – 5 only Problem # 1 (Points): Write a JPanel class named OlympicsLogo which displays the Olympics logo as shown. The OlympicsLogo has one instant variable – diameter (type int). The diameter value must be an even …

Software Development java
Member Avatar for masijade
0
148
Member Avatar for 4ukh

dear all, what is the sql command for ms access 2007 to get the tables name of the database? and also how to put these names into a list box? thanks in advanced. 4ukh

Software Development visual-basic
Member Avatar for 4ukh
0
119
Member Avatar for Martin310

Hi guys, I've created a program to write form data to an access database. Currently I am extending it so that I can read the data back from the database. I have created a new dialog with a datagridview to view the table data. I wish to be able to …

Software Development dataset microsoft-access open-source
Member Avatar for vbr
0
538
Member Avatar for Harris68

Hi, I need help coding the following subject. this is the Subject **************************************************** The program allows customers to list the videos available and to borrow them (ignore returning videos). It records whether a video is on the shelf or on loan, and if it is on loan, the date it …

Software Development java
Member Avatar for Harris68
0
214
Member Avatar for tintin.iitk

class A { A& a; public: A(): a(* new A()) {} }; There is a huge flaw here and before I compiled this code I was hoping that it will fail to compile, But it didn't. At first I felt like I had a big flaw in C++ as it …

Software Development c++
Member Avatar for gusano79
0
245
Member Avatar for jjf3rd77

I keep getting errors in my code. I can enter the first number 1 fine but then is says that letter c or a is not initialized. What am I doing wrong? This is what i have so far [CODE]// Exercise 8.13: ComparingRates.cpp // Application that calculates the amount of …

Software Development c++
Member Avatar for mrnutty
0
122
Member Avatar for ovidiu82

I am trying to do this: z=(5*a-b/7)/(3/b+a*a) in assembly code and I keep getting some errors. Here is the code & the errs. [CODE] assume cs:code,ds:data data segment a dw 5 b dw 6 z dw 10 intermed dw ? rez db ? data ends code segment start: mov ax,data …

Software Development assembly
Member Avatar for gusano79
0
785
Member Avatar for srikanth48

Type BITMAPFILEHEADER bfType As Integer bfsize As Long bfReserved1 As Integer bfReserved2 As Integer bfoffbits As Long End Type Type BMPInfoHeader biSize As Long biwidth As Long biheight As Long biPlanes As Integer bibitcount As Integer biCompression As Long bisizeimage As Long biXPelsPerMeter As Long biYPelsPerMeter As Long biClrUsed As …

Software Development image visual-basic
Member Avatar for vb5prgrmr
0
328
Member Avatar for Sarang07
Member Avatar for Sarang07
0
90
Member Avatar for klactose

Hello, I have created a simple webservice and I am now in the testing mode. I am trying to write a simple script that will use curl to create user accounts and another one to delete user accounts. I have tried to use system to send curl commands [CODE=perl] my …

Software Development http-protocol perl
Member Avatar for klactose
0
165
Member Avatar for Iam3R

i have just written a small program on DEV C++. i have been using it for couple of months but i never observed this error. [CODE] #include<stdio.h> int main() { printf("Welcome\n"); system("PAUSE"): return 0; } [/CODE] could not create makefile I/o error 32 any idea? what does that mean

Software Development c c++
Member Avatar for Iam3R
0
96
Member Avatar for pyprog

I have a file like this: a,z,1 b,y c,x,1 d,w,1 e,v f,u What I need to do is to create a dictionary that has the characters in the first column as keys and characters in the third column as values. The rest should be ignored, i.e. {a:1, c:1, d:1}. This …

Software Development python
Member Avatar for pythopian
0
132
Member Avatar for dmm

Can I change a file stream object's read position in C++? I mean I have a file with a series of integers separated by a newline character. Can I read the first five integers into some variables and then move the read position back to read the fifth integer one …

Software Development c++ file-stream
Member Avatar for dmm
0
650
Member Avatar for lewashby

I am currently reading two books, one on PHP and one on Python. Not that I'M good at ether. I'M about half way through the book on PHP or less and almost done with the one on Python. Though I haven't actually read anything web related in this particular Python …

Software Development php python
Member Avatar for pythopian
0
635
Member Avatar for Mitja Bonca

I have a form1 as a parent form (and is a MDI container) which is a parent for a lot of the other child forms. Now I would like to create a Login. It should be another windows form - formLogin called. And it has to start the 1st when …

Software Development
Member Avatar for Geekitygeek
0
2K
Member Avatar for kulrik

Having trouble with this one: The formula y = nekt can be used for estimating growth where n is the initial amount k is a constant t is the time y is the final amount This formula will be used for estimating the bacteria growth in a lab experiment. The …

Software Development java
Member Avatar for kulrik
0
2K
Member Avatar for wangatang126

Hi i have a binary function search program where the user enters a index of numbers, then enters the number he wants to find. However my program wont compile and says the subscripted value is neither an array or pointer. Help me out please. Here is what ive got: [CODE]# …

Software Development c c# c++
Member Avatar for stephen186
0
104
Member Avatar for P00dle

Hi guys. I need help with this. I dont know where or how to start, and I dont have peers to help me. I have .txt files that I need to read and sort, then write. The text files are always in this format: 1 row containing column headers, then …

Software Development java
Member Avatar for P00dle
0
90
Member Avatar for Ashishinani1756

i want to print the file names in a particular directory

Software Development c++
Member Avatar for NicAx64
0
110
Member Avatar for raigs

I get this g++ warning when I use the [I]-Wconversion[/I] flag. Anybody know how to write this "correctly" ? [QUOTE]a.cpp:15: warning: conversion to ‘float’ alters ‘double’ constant value[/QUOTE] [CODE]#include <iostream> using namespace std; float VAR1(float VAR2) { int VAR3 = (int)(VAR2 * 1.045 * 1.55); // Result must be an …

Software Development c++
Member Avatar for JasonHippy
0
1K
Member Avatar for NitaB

Hi, my name is Anita. I'm new to this forum and I'm here because I am utterly frustrated with this program that I have been working on for days. This program is supposed to ask the user a series of arithmetic problems and report on how the user performs. The …

Software Development c++ pdf
Member Avatar for AAAKsu
0
187
Member Avatar for saikeraku

I'm just wondering what do I have to add to the code [code] print "Hello World" [/code] to output H e l l o W o r l d like there's spaces in between each letter? Thanks.

Software Development python
Member Avatar for pythopian
0
127
Member Avatar for MichaelSammels

I have the following code: [code] For lngPosition = LBound(strNames) To UBound(strNames) mainForm.NameDisplay.Caption = strNames(lngPosition) mainForm.StockDisplay.Caption = intLevels(lngPosition) Next lngPosition [/code] This code, in my opinion, should print everything in array in a label. However, it only prints the last element of the array. Anyone got any ideas on how …

Software Development visual-basic
Member Avatar for MichaelSammels
0
204
Member Avatar for bhoop

I want to create exe file from my jar file in java programming. Anyone can help me!

Software Development java
Member Avatar for P00dle
0
95
Member Avatar for trihaitran

Hi I am running OS X 10.5 Leopard. It ships with Python 2.5.1 and I just installed Python 2.5.4 from python.org. The site-packages directory for 2.5.1 is located at /Library/Python/2.5/site-packages The 2.5.1 interpreter is located at /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5 The 2.5.4 interpreter is located at /Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5 The thing is that now that …

Software Development os-x python
Member Avatar for pythopian
0
190
Member Avatar for Muathelbou

Anyone who can help me please do I am totaly lost. this is the homework: You will implement a set of functions that will analyze and/or manipulate character data. You are provided with a header file called charRoutines.h that contains the declaratins (prototypes) for the functions that you are to …

Software Development c++
Member Avatar for tintin.iitk
0
227
Member Avatar for samsons17

how to display this output ? ********** ********* ******** ******* ****** ***** **** *** ** * ** *** **** ***** ****** ******* ******** ********* ********** thank you...

Software Development c++ display
Member Avatar for tkud
0
369
Member Avatar for programmer01

hey guys, I have written a calculator program in C++. It suppose to get the input from the user which is a string. Some thing like ((5+3)/2)*5. If you input that expression it gives 20, which is the correct answer. The problem i am having is that it cannot compute …

Software Development c++
Member Avatar for Naira88
0
2K
Member Avatar for yasirm79

How to Save and retrieve picture in access data base with vb.net 2008

Software Development vb.net
Member Avatar for yasirm79
0
1K
Member Avatar for johnroach1985

Hi. I would like to create a 3D desktop environment like the one done in [url]http://www.real-desktop.de/[/url] please check it up. However I do not know how to start... I thought of creating a a huge form that is always on the top and calling short cuts when someone clicks on …

Software Development c#
Member Avatar for bk_bhupendra
0
394
Member Avatar for johndory

Hello, I really need your help. I am writing a program to create a polynomial using linked list. The program is to perform different operations such as addition, subtraction, multiplication. I am however having problems setting the coefficients of this polynomial. I have an idea on how to implement the …

Software Development c++ linked-list
Member Avatar for fireprogramer
0
4K

The End.