132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Spaiz

I wasn't sure where to put this topic, web or software development... The questions is this: is there a way to build a website with C? (not PHP calling C application) I read the web for a couple of days now, but I can't really find any explanation how to …

Software Development c c# c++
Member Avatar for jephthah
0
58
Member Avatar for TheSmokey777

Greetings, I need help with a Simple C program. I have to take input data such as this : Write a C program that will process a series of "words" entered by the user. A word (for the purpose of this assignment) is defined as a sequence of non-white-space characters …

Software Development c
Member Avatar for jephthah
0
105
Member Avatar for Suraine

i figure out that srand() and rand() are not quite good in creating a random number. for: [code]while(true){ int x = 0; srand((unsigned)x); int r = random(); cout<<r<<endl; }[/code] It gives back the same number. Am I doing something wrong? If not, is there anywhere that we can create our …

Software Development c++
Member Avatar for vmanes
0
84
Member Avatar for fredmac

parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10. Assume that no car parks for longer …

Software Development c c# c++
Member Avatar for jephthah
0
349
Member Avatar for shadow_shooter

Hello everyone, I'm working on a project which I should read from a text file. Text file contains two lines of sequational numbers, something like this: [TEX] 4 5 2 1 10 8 3 4 6 1 [/TEX] In the program, I need to find out where exactly a new …

Software Development c
Member Avatar for shadow_shooter
0
119
Member Avatar for veronicak5678

I am trying to write a "censor" program. here are the instructions: Write a program that reads a file of text and replaces each `target' word with its first letter followed by a string of asterisks that indicate its length. Have it read the list of target words from a …

Software Development c++
Member Avatar for veronicak5678
0
185
Member Avatar for gelcode

EDIT: Apologies... user error strikes. Tis the way of the newb. Nothing to see here, move along. I have a dict with the following pairs: [code]object = {'v1': 1, 'e5': 6}[/code] If I set a variable using this data and print it: [code] var = object['v1'] print var [/code] I …

Software Development python
Member Avatar for vegaseat
0
90
Member Avatar for eranga262154

Hi all, I use the swing timer to move a dialog from one position to another. Here is the code I have use. [CODE="java"] // Set the main window display location public void setWindowLocation() { int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height; int screenWidth = Toolkit.getDefaultToolkit().getScreenSize().width; int frameHeight = this.getHeight(); int frameWidth = …

Software Development java java-swing
Member Avatar for eranga262154
0
162
Member Avatar for Yellowdog428

Wow, I am having huge problems passing values between functions and wrapping my head around pointers. For some reason when I tried to return values from functions they would not pass and when I tried putting pointers in the place, passing them kept giving me compiler errors. Now I have …

Software Development c++
Member Avatar for Yellowdog428
0
98
Member Avatar for inamabilis

Hi, First off apologies if this is in the wrong forum - moderators feel free to move it if it is, or ask me to repost somewhere else. Now, my actual question is as follows. If I understand correctly by initiating a hook using SetWindowsHookEx then my hook will be …

Software Development c++
Member Avatar for inamabilis
0
79
Member Avatar for WonderWomen204

I have to do an assignment for class. Here is what the assignment is: Start with the following program code. Write the function called "increment" which takes one integer parameter and returns that value plus one. [code] #include #include using namespace std; // YOUR FUNCTION GOES HERE! int main() { …

Software Development c++
Member Avatar for Ancient Dragon
0
122
Member Avatar for infernojmd

my out put file comes out like 0105000011500970099001120011600108001 and so on for a while. any one help me figure out wat is wrong with my code. oh yea and what is in the input file is it-is a-CaPital Mistake tO-theorize Before-one has DatA123. [CODE=cplusplus] #include <iostream> #include <iomanip> #include <fstream> …

Software Development c++
Member Avatar for Ancient Dragon
0
123
Member Avatar for fongoos

I am new to programming and after a month or so of googling, I have decided to learn Python. Is this a good time to learn the language or people will soon jump ship since JAVA is now open source? By open source software, I understand that the code developed …

Software Development open-source python
Member Avatar for linux
0
823
Member Avatar for Dio1080

I can't figure out why it is saying (Vehicle.java:174: cannot find symbol) but there is a symbol, what is going on? [code]import java.util.Scanner; public class Vehicle{ protected int hp; protected int mileage; protected int year; public String make; public String model; Vehicle(){ hp = 0; mileage = 0; year = …

Software Development java oop
Member Avatar for Dio1080
0
170
Member Avatar for cquestion

Hello: I'm almost killing myself to figure out the problem with the attached code. It seems that passing a text array to a function is impossible. Anyone is so kind to help me, please.

Software Development c++
Member Avatar for Ancient Dragon
0
93
Member Avatar for starkman

Hey All! I am trying to implement a clutch like system in a little project I'm creating, Basically i am extracting information from a .csv file of the location of a users gaze whilst studying a standard desktop... I have the methods, MoveClickGaze, and MoveMouse, however i want to implement …

Software Development c++
Member Avatar for starkman
0
103
Member Avatar for karlee

Everything works, except my WritetoDisk, it gives me a NullPointerException PLEASE HELP! /* * database.java * * Created on March 28, 2008 by Karlee * * This program allows the user to add/remove students' first & last name, social security number, debt, and GPA * The user can change te …

Software Development java java-swing
Member Avatar for Ezzaral
0
172
Member Avatar for Dr Windows (XP)

Hi guyz, I''ve done a bank's savings account program in java but can't compile, I keep on gettin the errors. 1. overrides `java.lang.Object.toString` 2. This methode must return a result of type String. both of the errors are on the method public `String toString () {...` public class SavingsAccount { …

Software Development java
Member Avatar for Ezzaral
0
92
Member Avatar for DJ-KhaosTheory

Hello all, I have been working with the playsound() function in Visual Studio 2005, and find myself coming up short in getting it to work. I have recieved many compile errors, and never successfully have gotten it to function. I am using VC++ console application, WITHOUT a precompiled header. My …

Software Development c++ visual-basic visual-studio
Member Avatar for DJ-KhaosTheory
0
4K
Member Avatar for it2051229

How do i disable the editing of row in a table? i saw this property "editing row" which by default is "-1".. i changed it to 0 and still doesn't work, I really dont know what "-1" means... how do i disable editing of row? and enabling the sorting too?

Software Development java
Member Avatar for majestic0110
0
95
Member Avatar for mostafa mahmoud

Hi, I am a computer engineering Student having knowledge of basics in C++. I have to make a C++ project (pharmacy and its inventory). Please guide me how to make such an online project in C++. What all tools i need to use and how much time they will take. …

Software Development c++ engineering
Member Avatar for Narue
0
103
Member Avatar for jasonlys

Hi I'm new to C++ and would really appreciate if someone could help me. How do you exactly put the friend function into this program? Not that I haven't tried. I really have no idea where to put and what to change. My program is grouped into three different parts. …

Software Development c++
Member Avatar for Narue
0
87
Member Avatar for Taker

I have wrote this program to do i of 6 thing to 1) Initialise: Read static data from a file and a) store in appropriate data structures at run time b) sort into alphabetic order for subsequent display in the grid. 2) Menu: A menu to support the following: Have …

Software Development c unix
Member Avatar for Taker
0
186
Member Avatar for Time Indicator

Hi, I need help with importing database into form. The problem that I am having is, when a user inputs their firstname into textbox1, it should search for their name in the database (MS Access) , if found, it should populate the information into each textbox such as lastname, address …

Software Development vb.net
Member Avatar for Time Indicator
0
112
Member Avatar for knewc

Hello mates! I'm having quite a bit of trouble reversing a set of integers using recursion. The user enters a positive integer. The program then takes that integer, and lists 0,1,2...Number originally entered. The function SumTo lists zero to N, however I now need to reverse that list. Like this... …

Software Development c++
Member Avatar for ivailosp
0
249
Member Avatar for debee

Hi there, I have been trying to figure out how I am getting this error: Exception in thread "main" java.lang.NumberFormatException at java.math.BigDecimal.<init>(BigDecimal.java:368) at java.math.BigDecimal.<init>(BigDecimal.java:647) at newtonsMethod1.sigmoidActivationFunction(newtonsMethod1.java:118) at newtonsMethod1.feedForward(newtonsMethod1.java:136) The following code : [code] for(int j =0; j< a; j++) { System.out.println("Enter into input neuron "+ j); String r = in.readLine(); …

Software Development java
Member Avatar for debee
0
292
Member Avatar for knewc

My Prof gave me this to work with.... the following function accepts an integer greater than 0, as an argument and it returns the sum of the squares of the numbers 1 through N. For example: squares(3) must compute the value 1^2 + 2^2 + 3^2, that is, 14. I …

Software Development c++
Member Avatar for ivailosp
0
94
Member Avatar for edek

What I would like to do is to redirect stdout of some application, let say A to another application, let say B. All this from another external application (written in C). Any ideas?

Software Development c
Member Avatar for Salem
0
86
Member Avatar for mukulbudania

I am able to make a mouse... the show function and hide functions are working.. but i am not able to implement the left_button down properly... not even the right button down function.... is it like the left button down n click r equivalent.... can neone help me out with …

Software Development c++
Member Avatar for Black Magic
0
114
Member Avatar for CE Student

This program I have to solve it before next week;so plezzzzz plezzzz help me And I will be very happy if I solve it :) :) ITCS102 Assignment #4(chapter 12) Create a class called BloodDonor that maintains information about blood donors in a blood bank having the following data members: …

Software Development c++
Member Avatar for ivailosp
0
219
Member Avatar for Elmo_loves_you

Hi, I would really appreciate some help. I have a FileUpload control on my Asp.Net web page and want to store the file to a database as a varbinary(max) BLOB with other data via an sproc. However I am getting an error at the line [code] FileStream fs = new …

Software Development asp.net file-system
Member Avatar for Ramy Mahrous
0
396
Member Avatar for it2051229

Ok I have two frames.. one frame calls the other frame so it's like a dialog box... the second frame pops out, and yeah i want to close this second frame with a button.. how do i do it?? I was also wondering let's just say that I have two …

Software Development java
Member Avatar for Ezzaral
0
302
Member Avatar for jonathan.byrne

Hey! I am trying to implement a log viewer in c#. It has to read from a static text file and make it a bit more readable. Because I am new to windows forms and c#, the listview looked like the easiest way of implementing the functionality I needed (background …

Software Development listview
Member Avatar for Ramy Mahrous
0
105
Member Avatar for sivaslieko++

Hi, I am developing web page by JSP. I have JAVA classes and I need to implement functions to connect DB2 in JAVA classes. But, I could not connect to DB2.. When I searched I could not find any specific information about "JAVA DB2 connection string". Appreciates any help...

Software Development java java-jsp
Member Avatar for jwenting
0
139
Member Avatar for El Duke

Hello Everyone, I am not that expert in coding, just coding on a level that helps me to implement some wireless modules /packets/ links/ etc.... I was wondering if we could implement AI search algorithms using C code, as an example, in this image: [IMG]http://planning.cs.uiuc.edu/img338.gif[/IMG] It is the Bidirectional search …

Software Development algorithm c
Member Avatar for El Duke
0
99
Member Avatar for Sirjames_da1st

I have to perform an insertion sort in a linked list. Having problems. any help?

Software Development java linked-list
Member Avatar for Sirjames_da1st
0
262
Member Avatar for ferrier18

Hey guys, This is what im trying to achieve: Add the code that • Calculates the total amount (Price * Qty) • Then apply the following discounts: • Total is < 20 0% discount • Total in the range 20-49.99 10% discount • Total is >50 20% discount • Subtract …

Software Development vb.net
Member Avatar for Jx_Man
0
131
Member Avatar for Swift7625

Hello All, I have been trying to convert a long long to a char buff and having problems. I have tried spintf, and some casting but still can not get the conversion right. Any help would be great! Steve

Software Development c
Member Avatar for Salem
0
429
Member Avatar for Acidburn

Hey there, I've got a script in another language and I've set a writer from the script to python. Now I'm trying to send data back the other way... ie python -> to my script. However I've got nothing to reference in python, and i'm clueless. Can anyone provide assistance? …

Software Development python
Member Avatar for woooee
0
98
Member Avatar for Gerritt

The code is working as I want it to. I am supposed to use pointer syntax, and this seems to me working. I just wanted to run it past some of the people who know what they're doing first. [code] /*===============================================================*/ void add() { int vala, valb, valc, count=0, bog …

Software Development c
Member Avatar for jephthah
0
113
Member Avatar for missileh

Hi..., I just wanted to ask what are the posible scenarios where we could use function pointers in C... If anyone out there has any example then please do tell me....

Software Development c
Member Avatar for jephthah
0
143
Member Avatar for nish88

hi everyone...... am designing an interface for security purposes where a user is allowed to enter a password to gain access... i want when password is entered its ********** that appear on the text box instead of password secret itself so that if someone is looking at the screen he …

Software Development gui python tkinter user-interface
Member Avatar for woooee
0
170
Member Avatar for johnnygaddar

Hi, I need to do this problem for an assignment. We have not focused very much on this topc and that would be great if someone could help me get started. I am not asking for a complete solution or anything, just to head me in the right direction. The …

Software Development c++
Member Avatar for johnnygaddar
0
181
Member Avatar for scru

Is there a way to detect the internet browsers "registered" on the system my script is running on, and if possible get the location of the browser's executable? I don't mind if it requires branching the code by platform. And frankly, I don't mind if you give me a response …

Software Development python
Member Avatar for woooee
0
156
Member Avatar for IU34

yeah, I'm just keeping this thread open because I have another wrinkle. In my code [code=python]def prompt_house(): global gold prompt_hou = raw_input('>') if prompt_hou == 'examine table': print '''There are a lot of car magazines here. You flip through them and find 5 gold.''' gold = gold+5 prompt_house() [/code] (or …

Software Development python
Member Avatar for IU34
0
162
Member Avatar for Fritzeh

Hey people, I'm not sure what is wrong with this code and any help would be greatly appreciated: [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer = DGVShops.CurrentRow.Index Dim c As Integer = DGVShops.Item(0, i).Value ' gets value from selected rows first …

Software Development vb.net
Member Avatar for Fritzeh
0
140
Member Avatar for renabada

1. (a) A positive whole number n > 2 is prime if no number between 2 and (inclusive) evenly divides n. Write a program that accepts a value of n as input and determines if the value is prime. If n is not prime, your program should quit as soon …

Software Development algorithm python
Member Avatar for Paul.Esson
0
371
Member Avatar for Mr Brownstone

Hey everyone, I am currently making a Media player project and so far it is going really well. It is pretty much a combination of WMP, Itunes and Winamp and everything is working so far apart from one thing I want to include in the program. I tried looking for …

Software Development vb.net
Member Avatar for Mr Brownstone
0
107
Member Avatar for Adrian99420

Hi, I am using visual C++ 2005 express edition. I created a window form application with several combobox. The combobox contain few default items (pictures for example). Now I wish to create a file browser which allow user to choose picture from others directory and added it into the combobox. …

Software Development c++
Member Avatar for mitrmkar
0
176
Member Avatar for nurulshidanoni

I have this data..but something error..my data is like this... Exam TExam 1 25 2 20 3 46 4 56 5 12 but it only appear like this 1: -853617 [code=C++] #include <iostream> // std::cout #include <fstream> #include <iomanip> #include <string> // std::string #include <vector> // std::vector<> #include <algorithm> //std::for …

Software Development algorithm c++
Member Avatar for nurulshidanoni
0
112

The End.