132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pdunc88

Hi guys, first post so be nice :S I've been working on a software project (wordsearch generator) for one of my classes at university and I'm stumped on this section. I'm supplied with an array filled with x strings, the integer value of x (for the size of the array) …

Software Development c++
Member Avatar for pdunc88
1
3K
Member Avatar for caliguy1979

Hi, I know its possible submit a form serverside without actually creating a html form. As you can see below: string url = "http://websiteToSubmitTo"; HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); string proxy = null; string data = String.Format("parameter1={0}&parameter2={1}&parameter3={2}", parameter1, parameter2, parameter3); byte[] buffer = Encoding.UTF8.GetBytes(data); req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; req.ContentLength …

Software Development asp asp.net file-stream first-post
Member Avatar for Ramy Mahrous
1
211
Member Avatar for Gman36

Hi All, As you've probably read a million times, I am a newbie to java programming and need some help with uni assignment. I need to know how to numerical update a Textarea by clicking on a button. This would be a lot simplier if I could do it one …

Software Development java java-swing
Member Avatar for VernonDozier
1
192
Member Avatar for pom9x

how do i get a user input string for file input/upload to work? [CODE] int main() { string P = ""; cout << "Input Directery Example: \" C:\\Users\\mugen\\Desktop\\data.txt \" " << endl; getline(cin, P); ofstream fileOut(P); //does not seem to read string "P" how do i get it to work …

Software Development c++
Member Avatar for ArkM
1
161
Member Avatar for DJInsane

I am trying to write a program for my school assignment, but this programming thing is extremely hard, so I am looking some help in getting it done. The program i am writing is a basic grading system, where it should show the students class, and grade, and also calculate …

Software Development c
Member Avatar for jephthah
1
348
Member Avatar for trickiscool

I was trying to create a program that simulates tossing a coin to a user specified number of times and then say how many times heads appeared. However when i run my program it only seems to be looping once. [ICODE]//generates a random number 1-10 int rdom_gen() { srand((unsigned)time(0)); int …

Software Development c++
Member Avatar for trickiscool
1
182
Member Avatar for rstewar

I am trying to read a data file with this format: 2 2.0 5.8 4 -3.8 1.4 2.0 5.8 3 1.0 2.0 3.0 5 2.2 3.4 4.5 -1.0 2.0 The first number is the number elements and the numbers under are the elements. I would like to read the first …

Software Development c file-system
Member Avatar for Ancient Dragon
1
3K
Member Avatar for Twitty25

Hello everyone! I'm a Java newbie and I'm trying to create an applet that will draw a graph to find the roots of a cubic equation y = ax^3+bx^2+cx+d. The user has to input the range and the values of a, b, c and d. I've done the layout but …

Software Development java
Member Avatar for VernonDozier
1
2K
Member Avatar for jackalope686

I am in a beginners programming course, and we have been doing C programs up until now, and the first C++ program we have confused me a bit. We have to make a simple tic tac toe program that plays against you [it doesn't have to be great at playing, …

Software Development c++
Member Avatar for jackalope686
1
402
Member Avatar for ejiroy

I am trying to make a program that computes gross by using a class and three functions. When I try to run it, it gives me this error I think something is wrong with my set function and my int main function, any help would be appreciated, I think it …

Software Development c++
Member Avatar for VernonDozier
1
94
Member Avatar for Clockowl

Hey guys, I was wondering, with this code: main.cpp [code=cpp] #include <iostream> using namespace std; class car { public: car (float speed) : speed(speed) {} car () : speed(0) {} void cruise(float speed) { this->speed = speed; cout << "New speed: " << getSpeed() << endl; } void brake(float power) …

Software Development c++
Member Avatar for stephen.id
1
246
Member Avatar for myselfantara

Hello Everyone, I am a new member in the forum. I had a question regarding a code. The code is not able to open the input file. Any help is appreciated. thanks Here is the code, [ICODE] #include <iostream> #include <fstream> #include <cstring> #include <cstdlib> #include <iomanip> using namespace std; …

Software Development c++ file-stream file-system
Member Avatar for tux4life
1
217
Member Avatar for ClimaxBeetle

Hello, this is my first time in participating in this forum and also this is the first time that I've used Java for my entire life. The objective behind my problem was: "Create an Animal Interface that has two methods: eat and move. All these methods do not have any …

Software Development java java-swing
Member Avatar for BestJewSinceJC
1
136
Member Avatar for mj85

Hi all! would like some help, hopefully someone can enlighten me. My program has for input a 2d array where the number of rows and columns is decided by the user. So in the code below, the matrix A is the input matrix and the matrix Q is the matrix …

Software Development c
Member Avatar for jephthah
1
97
Member Avatar for dmpop

Hello, I'm not a programmer, so please bear with me. I'm using the following script with Python 2.6 to send emails with attachments from the command line. [CODE]#!/usr/bin/python import smtplib from email.MIMEMultipart import MIMEMultipart from email.MIMEBase import MIMEBase from email.MIMEText import MIMEText from email import Encoders import os import sys …

Software Development email python
Member Avatar for vegaseat
1
146
Member Avatar for Riskboy999

hi guys, im new at the forum and would like to ask for assistance with a programming assignment. First the Question.. [COLOR="Green"]DEVELOPMENT OF A C++ PROGRAM FOR A STUDENT RECORD SYSTEM. You are to develop a student record system that makes use of the C++ structure and classes. The record …

Software Development c c# c++ data-structure
Member Avatar for Riskboy999
1
3K
Member Avatar for prabhu_kar

What is the output of printf("%d") What will happen if I say delete this Difference between "vector" and "array"? How to write a program such that it will delete itself after exectution? Can we generate a C++ source code from the binary file? What are inline functions? Details about profiling? …

Software Development c++
Member Avatar for tux4life
1
146
Member Avatar for tlinux

I have several programs written for Python 2.6. When I downloaded Python 3.0 the programs wouldn't run. I'd like to have both versions on my computer and be able to run my 2.6 programs by default. Then, for new programs, I'd like to switch to 3.0. How can I do …

Software Development python
Member Avatar for scru
1
387
Member Avatar for pdrino

Hi, I use char* for string handling because I read strings from a file and I don't know the length of these strings. The problem comes when I need to keep some strings in an array. I think char** is the best thing for that goal. But again since I …

Software Development c
Member Avatar for Aia
1
2K
Member Avatar for asme

Hii..! I am using C# for the first tyme and i dont have much idea of its syntax.. I hate to make an analog clock... I even dont know how to draw a circle and line in C#..I have made that all in C++...But i cant swtich that to C#.. …

Software Development c#
Member Avatar for ddanbe
1
289
Member Avatar for tgreer

Hi. I'm having some difficulty with a project that involves working with very large binary files. These are PCL files, where the decimal character "12" represents a Form Feed, but only if it's not embedded within a string of binary data. In other words, I'm looking for decimal "12", then …

Software Development file-stream open-source
Member Avatar for bpazhoor
1
1K
Member Avatar for JavaKiddo

This is a conceptual question... I'm planning to make a simple paint program using swing and I want to plan it in advance before I actually code it. I want to be able to draw some rectangles using fillRect, etc, and then be able to drag those rectangles around the …

Software Development java java-swing
Member Avatar for Ezzaral
1
123
Member Avatar for meghs007

Please help me to solv this program known circular matrix input=3 output like 1 2 3 8 9 4 7 6 5

Software Development c
Member Avatar for John A
1
83
Member Avatar for Tejas

I got a question which i cannot do. Pls help me. (This is using Turbo C++ IDE). The questions are: Q1. WAP to print the sum of the following series: 2(square) + {2(square) + 4(square)} + {2(square) + 4(square) + 6(square)} .............. till N terms. Q2. WAP to find out …

Software Development c++ ide
Member Avatar for WaltP
1
238
Member Avatar for madden88chw

I have the following as my code, and i cant figure out why i am getting this error. I think it has to do with my While statement. Please help! [code] import javax.swing.*; import java.lang.String; public class FollowingDate { public static void main(String[] args) { String date, month, day, year; …

Software Development java java-swing
Member Avatar for verruckt24
1
158
Member Avatar for fox64

I've been wracking my brain over the last week. I have project due soon, but I'm having a lot of trouble with certain aspects of pointers in class instances. My project is to re-design the String class library by remaking basic functions. I was given a header file and told …

Software Development c++ file-stream
Member Avatar for fox64
1
93
Member Avatar for davi

Hi, i was wondering is there anyone who could help me with my problem. The is i dont know how to send a z39.50 request from the client to the server. If anyone could help me with this. i would really appreicate it. Thanks

Software Development client-server java
Member Avatar for stephen84s
1
358
Member Avatar for shelly121

any1 help, basically iv wrote the code to search for a client name in a database(in access) and this is the code:[quote] Private Sub BtnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) 'search If txtSearch.Text = "" Then MsgBox("Please type Client Name", MsgBoxStyle.Critical, "Enter Text") : Exit Sub Dim MYDA …

Software Development dataset vb.net
Member Avatar for Live_eviL
1
141
Member Avatar for Acis

Im trying to create a Text Based Game and i want to have a 'Game Menu'. This is my code but i dont know exactly how to make the menu. Please Help! I also wouldnt mind if some can tell me how i would be able to integrate a cheat …

Software Development c++
Member Avatar for siddhant3s
1
160
Member Avatar for mimita

Hello, I'm really a beginner in programming, and i might need you're help. I have an array[position][3] with fixed coloumns Position is from 0 to 99 an it looks like this: array [position][0] = helpFlow; array [position][1] = i; //i=rows of a [10[10]-grid array [position][2] = j; //j=column of a …

Software Development c++
Member Avatar for kbshibukumar
1
100
Member Avatar for fancy2

Hello, I am very very new at VB 2008 and Coding. I need to create a Basketball simulator that has two teams of five players each. Each player has an offensive, defensive and shooting percentage. whih are randomly generated and the uses can randomly generate them until he is happy …

Software Development vb.net
Member Avatar for timothybard
1
136
Member Avatar for darked90

hi, i tried to create a program that takes in 8 inputs in an array, then grade the user and see if they passed or not (6 out of 8 or higher is a pass), but my program always tells me that i passed even if i get 0. other …

Software Development c++
Member Avatar for darked90
1
329
Member Avatar for guest7

Hi, I am trying to read number from file. Following is my code. I am not able to read it correctly. When i>1 then i should read the second and third line of the file and store the values in the vector rows. But it is not reading the second …

Software Development c++
Member Avatar for daviddoria
1
129
Member Avatar for thrasas

Hello everyone! i found some days ago a really nice algorithmic problem, and i am trying to solve it (implement it in pascal in the end). I know it is a shortest path problem, (it is obvious) but i still can't seem to find any proper approach to it! Any …

Software Development pascal
Member Avatar for jsosnowski
1
192
Member Avatar for sweetApple

I am creating a program that involves a simple agent navigating a grid world to discover food. I am having trouble creating a unique class for the agent (which contains data members that represent its perception of the world - direction of the smell of the food, a visual 5x7 …

Software Development c++ data-structure socket-programming
Member Avatar for sweetApple
1
140
Member Avatar for erdomester

Hi! I want to read a table from Access to Java. This is the table: [url]http://kepfeltoltes.hu/090221/heights_www.kepfeltoltes.hu_.jpg[/url] I tried to do it with HashMap, but I have a problem, and I don't even know what im doing is right, I have no practice in this, altough I've been trying to find …

Software Development java sql
Member Avatar for erdomester
1
156
Member Avatar for jhowardsandy

Hello, I am trying to write a simple program that takes input from the fields I have created for the following UI and writes them to a command prompt. Can someone help me with the next step.... getting the input entered and writing it to the prompt? I would also …

Software Development java java-swing window-manager
Member Avatar for jhowardsandy
1
101
Member Avatar for gyagyus

Hi! I wrote two functions in order to access two private data members of a template class and I got the messages in the title every time I call these functions(getNcols(), getNrows()). I'd be very grateful for your help, guys... (Without the "template<class T>" before the friends, I got linker …

Software Development c++ matrix-multiplication
Member Avatar for gyagyus
1
242
Member Avatar for halfnode

hi all pretty new to programming here the idea of the code is for the function to take in an string and an int and to pad the string with space on the left with the int being the number of space to put in. am i doing something wrong? …

Software Development c++
Member Avatar for ArkM
1
199
Member Avatar for cassie_sanford

The problem that i am working asks to calculate a customer's monthly bill. The customer has to input their name, which package they purchased, and how many hours were used. For example package a is for 9.95 a month 10 hours of access provided. Additional hours are 2.00 per hour. …

Software Development c++
Member Avatar for dvsConcept
1
202
Member Avatar for abhi_elementx

Hello folks, I m trying to simulate the RSA algorithm. This is some of my code: [ICODE] System.out.println((int)Math.pow(6, 5) % 119); System.out.println((int)Math.pow(41, 77) % 119); [/ICODE] The first results in 41 while the second results in -9 when the expected shud be 6. Whats wrong?

Software Development algorithm java
Member Avatar for stephen84s
1
169
Member Avatar for shahab.burki

Hi, We no that their no support for Pointer in Java as in C and C++. So how can we print the exact location of a varaiable in java? Shahab

Software Development java
Member Avatar for stephen84s
1
531
Member Avatar for M3rcury

[code] #include <iostream> using namespace std; void round(); int main() { void round(); { double input; double output; double first; double second; double third; double decimal_fix; cout << "Please enter the Number and the Places to round off" << endl; cin >> input; cout << "DEcimal places to fix" <<endl; …

Software Development c++
Member Avatar for Ancient Dragon
1
110
Member Avatar for tpetsovi

Just a note, were not using arrays or functions, other than main. We've only covered the basics and started to get into <iomanip> and the stuff thats in that liabrary. Thanks in advance. [ICODE]#include <iostream> using namespace std; void main () { const double A = 4.0; const double B …

Software Development c++
Member Avatar for Comatose
1
128
Member Avatar for bajanpoet

I'm trying to use VB.NET to insert the data in the current row of my datagrid into a table. I wrote the following code: [CODE] Dim vCustomer, vBulkQty, vItem, vBaseUnit, vEachQty, vEachUnit As String vCustomer = dgCustomers.CurrentRow.Cells(0).Value vItem = dgItems.CurrentRow.Cells(0).Value vBulkQty = dgItems.CurrentRow.Cells(3).Value vBaseUnit = dgItems.CurrentRow.Cells(4).Value vEachQty = dgItems.CurrentRow.Cells(5).Value vEachUnit …

Software Development vb.net
Member Avatar for bajanpoet
1
224
Member Avatar for anthology

#After user inputs the year they were born I want to break it down using fadic addition like below# birth_year = int(raw_input('Please enter the year you were born')) #User inputs 1953 birth_year = 1953 #What I want is to do this using Fadic addition: birth_number1 = 1 + 9 + …

Software Development python
Member Avatar for anthology
1
260
Member Avatar for rosenberg_a

I got a problem that is not for homework in the book. It states... "Total Template Write a template for a function called total. The function should keep a running total of values entered by the user, then return the total. The argument sent into the function should be the …

Software Development c++
Member Avatar for rosenberg_a
1
574
Member Avatar for xtremerocker

I'm currently working on ProjectEuler.net's problem no. 39 and it states "If p is the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions for p = 120. {20,48,52}, {24,45,51}, {30,40,50} For which value of p <= 1000, is the number of solutions …

Software Development c++
Member Avatar for xtremerocker
1
127
Member Avatar for dhpatil1

I'm getting the following exception "ORA-24960: the attribute OCI_ATTR_USERNAME is greater than the maximum allowable length of 255" when using Environment:createConnection. I'm using VisualC++ 8.0 and Oracle 10g R 10.2.0. Below is the snippet of code that creates the problem:[code] #include <iostream> #include<occi.h> using namespace oracle:cci; using namespace std; try{ …

Software Development c++ oracle
Member Avatar for Agni
1
2K
Member Avatar for rosenberg_a

I basically got all the errors out of this software program i am doing for my own study, not for school. But i keep getting an error saying that in the main program before the cout it is missing a ;. This leads to believe i am missing a ; …

Software Development c++
Member Avatar for rosenberg_a
1
141

The End.