575 Topics

Member Avatar for
Member Avatar for LeoC++

Hi, can some one please have a look at my code for the user to enter integers and display it back to him. For some reason my program can not accept more than 8 integers? I wrote this program for a class assighnment where we where suppose to ask the …

Member Avatar for LeoC++
0
119
Member Avatar for HiHe
Member Avatar for TrustyTony
0
4K
Member Avatar for ans025

[B]Here is the actual homework problem. I am stuck on parts 1 and 2 and I really don't know how to make this right. Any help is greatly appreciated.[/B] 1. Write a C++ program that reads following data from an input file called “in.txt”, And stores them to an array …

Member Avatar for ans025
0
201
Member Avatar for HiHe
Member Avatar for john10

Hi, I'm new to C++. I'm having trouble detecting space bar as an input. I'm unfamiliar with using the char data type. I've tried using ASCII decimal numbers but only detects the '.' . And I'm unsure how to go about this without using string or anything advanced. [CODE] char …

Member Avatar for john10
0
2K
Member Avatar for Loranus

Hello for my C++ programming class I am programming a Dictionary program that allows the user to enter in definitions and stores them between 2 classes. Dictionary which will contain all my entries and Entry which will contain the definition for every word that the user inputs. Now when they …

Member Avatar for mattjbond
0
105
Member Avatar for aomran

[CODE] import java.util.*; import java.util.Scanner; public class InputconsoleArray2 { public static void main(String args[]) throws java.io.IOException { int[] a=new int[100]; // create an array of type interger size // Objects of type Scanner are useful for breaking down formatted input into tokens and // translating individual tokens according to their …

Member Avatar for javaAddict
0
226
Member Avatar for musikluver4

I just wanna be able to input 10 integer numbers, display the numbers, then be able to modify a specific number I have already entered, then display the new updated numbers again. [code] //Date: 4/6/2010 import java.io.*; public class EnterNumbers { public static void main(String[] args) throws IOException { BufferedReader …

Member Avatar for musikluver4
0
206
Member Avatar for Covert06

Hello, I'm still a huge beginner in C++ and while i spent hours trying to find a solution to this problem i came to this forum pretty often and I thought it'd be a good idea if I try to ask about my problem. (If you notice anything that can …

Member Avatar for Covert06
0
2K
Member Avatar for bigt666

I've been working on this program and can't seem to understand how to print an output file of the calendar of July. Is there any help I can get? This is the code: [CODE]//---------------------------------------------------------------------- // // This lab exercise is to practice rand(), srand() and // output formating with help …

Member Avatar for WaltP
0
216
Member Avatar for astronomical

All, Basically what you have here is a PART of my program. Here I am supposed to get the LENGTH of a rectangle from a user and return that length to the main method for further use. My program works fine if I take out the input validation but I …

Member Avatar for javaAddict
0
127
Member Avatar for bhp2005

Having a problem setting user input to a dynamic array. It worked with a static array, but now I'm having some kind of pointer issue. The user sets the dimensions and enters in a number of characters, which should be set to the array 'gameboard'. it's just setting jibberish though. …

Member Avatar for bhp2005
0
159
Member Avatar for lionaneesh

[CODE]#include<stdio.h> #define CR 13 #define LF 10 int main() { FILE *tg; FILE *th; FILE *printer; int i,a; char input[20]; char file[100]; char input2[20]; char file2[100]; printf("Enter the file name for reading : "); scanf("%s",input); th = fopen(input,"r"); printer = fopen("PRN","w"); do { i=fgets(file,100,th); putc(i,printer); printf("\n\n%s",file); }while(i != EOF); printf("Enter …

Member Avatar for Ancient Dragon
0
126
Member Avatar for JTX

Let's say there's list of numbers like this saved in a txt file: 4 6 3 4 5 How do I put it into an array?

Member Avatar for JTX
0
126
Member Avatar for solarb

it's a update form and i want when pressing edit, the input text to be changed with the text in mysql database but it doesn't work. is there some kind of error which i don't see? or is there alternative way to do this form? [B]update.php[/B] [code]<?php include("contentdb.php"); if(isset($_POST['submit'])){ $id= …

Member Avatar for Koekoeksklok
0
156
Member Avatar for Tango2010

Hi, I realise this may be a simple problem but i've really been pulling my hair out at the moment. I've got a text file, which I need to read each of the 15 characters (numbers and letters) on each line in to a new record in an array (called …

Member Avatar for WaltP
0
157
Member Avatar for Zaelis

Ive been working on a Game of Life simulator in C for my programming class. Essentially, it needs to take a single line of input and print out a nice grid of x's and o's (representing live cells and dead cells, respectively). I need to input the grid size, the …

Member Avatar for erantivanisha
0
139
Member Avatar for nuB

hey im now starting prog in c++ n im being honest- im REALLY flustered i have to create a program to get information from a user, put the info to a file, create another program to read from that file, calculate total scores of x amount of students n grade …

Member Avatar for nuB
0
114
Member Avatar for Draculaboy1014

So I have this C code which is supposed to check if words from a input.txt are in a dictionary.txt document that I have created. Words in both texts are separeted by comas ej. dog,house,car@ and end with the "@" char. So far I have adjusted the code and it …

Member Avatar for gerard4143
-2
136
Member Avatar for elcaro.miao

This is going to be somewhat a lengthy post, i do hope someone here can help me with this problem that i've already spent a gazillion brain cells on. >.< I AM a student asking for help as i cannot seem to be making this work with my atrocious programming …

Member Avatar for elcaro.miao
0
297
Member Avatar for monstercameron

trying to make an mp3 player applet of sorts that will index a folder on my local media and make a list, which its adresses will feed into the audio tag (using chrome beta), but im stumpedat the html and know very little javascript! help!

Member Avatar for MidiMagic
0
94
Member Avatar for Dave Sinkula

This is a [inlinecode]strtol[/inlinecode] version of [url=http://www.daniweb.com/code/snippet353.html] Read an Integer from the User, Part 2[/url].

Member Avatar for anthonytan
0
550
Member Avatar for fatalblade

hi , I have my python code but I couldn't solve it. here my sample loop: [CODE= python]import os import sys whileloop = True while(whileloop): initial_drive = "C:\\" inputline = input(initial_drive) <<< PROBLEM... if inputline == "exit": whileloop = False elif inputline == "about": print("no input") elif inputline == "": …

Member Avatar for fatalblade
0
166
Member Avatar for sammen89

[B]Background:[/B] Hey guys I'm making the first part of a greater program. We are instructed to create a program that stores a list of all our CD's. It has to be created in 3 different classes... that obviously link together. [B]My Question[/B] How do I create an array that is …

Member Avatar for Um num num
0
156
Member Avatar for weylinthedirty

I am writing an application for class. The user is prompted to enter a number, then select what to do what that number. I'm using JPanel and JOptionpane for input and console for output. The application is supposed to: prompt for input, ask for what to do with the input, …

Member Avatar for weylinthedirty
0
197
Member Avatar for cousinoer5

This program has been bugging me a lot to get working, so far I've had to fight through tons of errors Hydra style (every one I got rid of, 2 took its place). Then I finally got an error free compile, but the txt file where the answers should be …

Member Avatar for cousinoer5
0
176
Member Avatar for frankycool

HI i am using this syntax to store arraylist to inventory.dat file.When i store, it give a scattered output on the .dat file like this..... ¬í sr Carsguimainexecution.SaleinfoÕE£ñWfö L productsalest Ljava/util/ArrayList;xpsr java.util.ArrayListxÒ™Ça I sizexp w sr Carsguimainexecution.SalesubZ㾝ÓÅ xr Carsguimainexecution.SaleProductøié>‘2q I CarnumberD pricesoldI productNumberD stockD unitsoldL Carbuyert Ljava/lang/String;L Carnameq ~ xp …

Member Avatar for javaAddict
0
215
Member Avatar for Dum_

Hi, i need to block input if first char 2 and second char must not be more 5. And first char input must be 1 or 2. Specifically I need the input of only 1-25 and nothing else. I tried and only allow entry of numbers, but fail to limit …

Member Avatar for Geekitygeek
0
236
Member Avatar for xxunknown321

Write a C++ program that ask the user for the name of a file. The program must have a function that prompt the user to enter a file name and open the file. The program should display the last ten lines of the file on the screen. Each line of …

Member Avatar for xxunknown321
0
183
Member Avatar for ckenned8

I am trying to write a program that is a statistical calculator. The way i have it set up is that you press the enter data button and it asks you how many numbers you want entered by inputbox then it proceeds to take the numbers one by one by …

Member Avatar for kplcjl
0
135

The End.