199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mattyd

This demonstration was originally proposed to be posted as a Python tutorial but with further inspection it was deemed more of a "how-to" guide, in this case, how-to create simple animation via Tkinter (Tool Kit Interface) All the necessary elements are included in the attched zip file. This includes: [LIST] …

Member Avatar for vegaseat
1
244
Member Avatar for msgjunkie

I have followed the instructions on MSDN to "Display Related Data in a Windows Application" ( [url]http://msdn.microsoft.com/en-us/library/57tx3hhe(VS.80).aspx[/url] ). I have a data source that has a Customers table and a related Orders table. I can easily create a form which allows the user to select a Customer and display the …

Member Avatar for msgjunkie
1
105
Member Avatar for bjanbkboi

I'm trying to read a file into a vector using structure...[CODE]#include <fstream> #include <iostream> #include <vector> #include <cstdlib> using namespace std; struct StudentRecord { int ID; char FirstName[30]; char LastName[30]; char Grade[1]; }; void read_file(char FileName[20],vector<StudentRecord> &students) { ifstream Students(FileName, ios::in); char S_ID[10]; /* char FName[30]; char LName[30]; char S_Grade[1];*/ …

Member Avatar for ArkM
1
108
Member Avatar for gagan22

Hi all, Yesterday i was working in which i need some application in which we can upload image file in our system. That is working very well. But now i want to upload a notepad text file or ms-word file from system to server. Means I want to upload a …

Member Avatar for msnmnk
1
875
Member Avatar for bananas

im using the book java in 24 hours. i still need to learn about input but disregard that i only wanna know you opinians about my code thanks for your support [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. …

Member Avatar for bananas
1
84
Member Avatar for JohnPhilipps

Good morning, I am quite new at java and in the learning process. I have a log file with the following data contained in it: mai 4 03:26:53 pcjournal Dock[345]: Corrupt JPEG data: premature end of data segment mai 4 03:26:53 pcbookscuba [0x1-0xa01a].com.apple.dock[345]: Tue Jun 2 03:26:53 macbookscuba.local Dock[215] <Error>: …

Member Avatar for JohnPhilipps
1
255
Member Avatar for kasumi01

im working on a program who the user enters data of a Movie: name, Director, and playtime im on my last error but i cant see the where the problem is ore what to do i trayed to change some parts in the code to see the problem with no …

Member Avatar for kasumi01
1
227
Member Avatar for Xephys

Hi there, This is my first post and I am quite new to developing games. I have only made tic tac toe and currently making a pong clone, using c++ and SDL. I seem to be having a problem with the animation of my ball (or puk as I call …

Member Avatar for Xephys
1
229
Member Avatar for meb111

Okay i am apparently having problems on understanding exactly how string works. The problem im having is I get an error at the part where it assigns the cards. Please help me! Much appreciated! [code] #include "stdafx.h" #include <string> #include <time.h> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { …

Member Avatar for ArkM
1
101
Member Avatar for Ray Gray

We came across a very strange behavior with a code like this (this is a simplified version; it took quite a time before we were able to identify a similar problem in our code): [code] unsigned int x = 10; int a = ((int-1) * x; int b = ((int)-1) …

Member Avatar for ArkM
1
104
Member Avatar for yakovm

[CODE=c++]typedef vector<string> pipeline; typedef vector<pipeline> subPipelineStrings; subPipelineStrings* m_subPipelineStrings m_subPipelineStrings = new subPipelineStrings(3); string *s1 = new string("s1"); string *s2 = new string("s2"); string *s3 = new string("s3"); for (int i = 0; i < m_subPipelineStrings ->size();++i) { pipeline &p = m_subPipelineStrings->at(i); p.push_back(*s1) ; p.push_back(*s2) ; p.push_back(*s3) ; }[/CODE] The question …

Member Avatar for yakovm
1
108
Member Avatar for yashyash

Dear experts I have a large file with this format: [CODE] 1 7252 0.1613 1 7253 0.1613 1 7254 0.0645 1 7255 0.0409 1 7256 0.0394 1 7257 0.1872 1 7258 0.1872 1 7259 0.0986 ...... [/CODE] and I want to change this file to the binary format but it …

Member Avatar for Ancient Dragon
1
182
Member Avatar for vlakarados

Searched your forums a lot, found a solution to my task, but still I do not understand why do I get the wrong answer everytime. It's always a 'correct-1' result. It doesn't depend on what the number in the string is. [CODE=C++]#include <cstdlib> #include <iostream> #include <string.h> using namespace std; …

Member Avatar for vlakarados
1
1K
Member Avatar for bharanidharanit

Hello, I am using Visual Web Developer 2008. I added CreateUserWizard on the form. In the CreateUserWizard Control, I want to add Captcha Control. And how can i do this? Thankyou

Member Avatar for znetweb
1
166
Member Avatar for phoenix911

[B]THE QUESTION[/B] with a positive integer s read from the keyboard, find all sequences of two or more consecutive integers whose sum is = to s.... for example.... if user enters 15 result should show 1 2 3 4 5.... 4 5 6... 7 8.... [B]MY TRY[/B] [ICODE]#include <iostream> #include …

Member Avatar for siddhant3s
1
202
Member Avatar for vasek

Hello, I am happy to find this forum. I was trying to read a file to matrix matice. The input file looks like this: 7 1 4 5 6 9 3 2 2 0 7 6 8 6 1 2 4 2 9 1 7 2 3 8 [code=c++] #include …

Member Avatar for homeryansta
1
132
Member Avatar for utkarsh sharma

using tc4.5 on windows xp...for many programs compiled,it shows error: BGI graphics not supported under windows... plz help me run these programs..

Member Avatar for WaltP
1
172
Member Avatar for DimaYasny

Hi all, I was searching for an IDE that is capable of Python GUI drawing, much like MSVS can draw GUI windows without actually having to code them manually. Atm I use NetBeans 6.5 for Python, but I can switch. Yeah, I'd prefer a Linux based IDE of course :) …

Member Avatar for DimaYasny
1
1K
Member Avatar for dazzclub

Hi guys/gals, ive been reading alot about bots and i kinda like the idea of creating one. can these bots be created in any programming language or does it depend on what i want the bot to do? ive probably posted in the wrong forum, sorry cheers Darren

Member Avatar for siddhant3s
1
123
Member Avatar for JustmeVSI

I'm having a project form school for a inventory management system and I want to do something extra. The inventory management system is for spare parts for machines and I want to be able to see the the manuals(PDF files) for thous machines in the GUI but I have no …

Member Avatar for hardik.rajani
1
249
Member Avatar for Kusno

Dear all, I use asp:button field in my gridview [CODE] <asp:GridView ID="GV" runat="server" DataSourceID="SDSInHouseRate" Width="100%" AutoGenerateColumns="False" OnRowCommand="GV_RowCommand" OnRowCreated="GV_RowCreated"> <Columns> <asp:buttonfield buttontype="Button" commandname="edit" text="Edit"/> <asp:buttonfield buttontype="Button" commandname="approve" text="Approve"/> <asp:BoundField DataField="Seq" HeaderText="Seq" SortExpression="Seq" /> <asp:BoundField DataField="CurrencyID" HeaderText="CurrencyID" SortExpression="CurrencyID" /> <asp:BoundField DataField="EffectiveDate" HeaderText="Effective Date" SortExpression="EffectiveDate" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" /> <asp:BoundField DataField="Remark" HeaderText="Remark" SortExpression="Remark" /> …

Member Avatar for shefeekj
1
174
Member Avatar for mingke

I have four arrays as input, then used it in a function that result an output. Then I sorted the output array. Next step, I want to find the index and the value of the input array that resulted the sorted array. I keep getting the wrong result. Here my …

Member Avatar for Salem
1
153
Member Avatar for l3vi

Been developing for years under web based services like PHP and SQL, and I thought it would be a good idea that I come back and learn C++. Been enjoying it, but I got this one thing that is just driving me nuts. In the do while loop after the …

Member Avatar for l3vi
1
1K
Member Avatar for agrothe

Some strange errors occurring in my asp.net website. I was using the MS ApplicationBlocks.data.dll to connect o my SQL database. Once I started testing my website on IIS as opposed to the ASP.NET development server, I started getting connection pool errors. So, like anyone would, I searched for every instance …

Member Avatar for agrothe
1
545
Member Avatar for waldchr

After much frustration of trying to figure it out on my own, I am finally ready to admit that I need help. Does anyone know how to compile allegro 5? (or better yet have a precompiled version I could get my hands on) I have tried many tutorials and none …

Member Avatar for tux4life
1
641
Member Avatar for karthik.c

hi guys im trying to code patricia trie in c using gcc and when i debuged the program im gettin segmentation stack problem in search function of it.im not sure why it is showing and i've included pat.c,pat.h and ncspatricia.h files. i also want to know what is the difference …

Member Avatar for karthik.c
1
151
Member Avatar for glen dc1
Member Avatar for Kecy

I'm about to embark on a biometrics project specifically a fingerprint project. If someone could help me with source codes or web sources to get helpful stuff, I would greatly appreciate it.

Member Avatar for Teme64
1
104
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) …

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 …

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 …

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 …

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 …

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 …

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 …

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 …

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, …

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 …

Member Avatar for VernonDozier
1
94
Member Avatar for divyasrinivasan

hi i want to have the code for editing,updating n deleting data in gridvoiew i tried a lot searching in google..i trid also but could not get the output....i want how to insert textboxes using the edit colums ....i want in detail pls help... 2.next is how to add rows …

Member Avatar for mail2saion
1
194
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) …

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; …

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 …

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 …

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 …

Member Avatar for vegaseat
1
146
Member Avatar for RizzLinux1388

I would love to work on a fun baseball game, something like MLB Power Pros or something like it and I would like to find a Linux baseball game, not the stats manager or text based ones. I'm just wondering why do you think there is no baseball game for …

Member Avatar for jbennet
1
521
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 …

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? …

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 …

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 …

Member Avatar for Aia
1
2K
Member Avatar for silh

Hi guy I've been having a weird situation for a couple of day... I have this button that is suppose to pass parameter in the $_GET array but it doesn't. Here is the code: [code] <html> <body> <form action="test.php?action=test" method="get"> <input type="submit" value="Test"/> </form> </body> </html> [/code] what happens when …

Member Avatar for silh
1
276

The End.