199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tori10

the program that im having problems reads in a txt file sums both arrays of data, puts the sums into some equations and out puts the results in a txt file. [CODE]#include <iostream> // include all headers needed here #include <cmath> #include <cstring> #include <cctype> #include <fstream> #include <cstdlib> using …

Member Avatar for tori10
0
164
Member Avatar for dseto200

How do I get python to pick a random word? Do I have to link it with a dictionary? If so how do you do that. Exercise from Python Programming for the absolute beginner Create a game where computer picks a random word and player has to guess the word. …

Member Avatar for woooee
0
2K
Member Avatar for serkan sendur
Member Avatar for Fractilion

There's two different things I'm trying to figure out how to do with Python. First, when I want my program to go through a function, which then moves on to another function..... so say I start with main(). I have variables A and B. I go on to function Do_This(), …

Member Avatar for bvdet
0
111
Member Avatar for nouryn
Member Avatar for Ezzaral
0
165
Member Avatar for ebiz

I currently have an Oracle database, a Java Program, and a text file. Text files are being read by the system, which automatically updates the database. How would I make a JTable to make the database be displayed nicely in a JFrame?

Member Avatar for peter_budo
0
153
Member Avatar for jackieblock

I am working on a program to calculate mileage, fuel cost, and travel time when the user selects a vehicle from a combo box. It works well when reading from an array that I put in the program. But now I have to have it read the starting figures from …

Member Avatar for ~s.o.s~
0
153
Member Avatar for macokovac

hello guys i need put banner on 'my account table'. banner should included reflink of member or user who's accessing this page. here is banner picture: <img src="http://i35.tinypic.com/349ciza.jpg" border="0"> and here is all php code of my account table: [ICODE]<?php include_once('header.php'); if(isset($_COOKIE["usNick"]) && isset($_COOKIE["usPass"])){ $user = $_COOKIE["usNick"]; $myDb->connect(); $sql = …

Member Avatar for macokovac
0
176
Member Avatar for bogdanAR

Can someone help me. I need to solve these problems with c#. Verry fast!! 1. Display the first Prime "n" numbers (n=given from the keyboard) Ex: n= 6 -> 2, 3,5,7,11,13 2. Enter a string of numbers on the keyboard until we enter "0". After that we need to print …

Member Avatar for ddanbe
0
126
Member Avatar for Typhoon

Hello, We just bought a CRM software and until today, each salesman had his own contact list in Outlook. I retrieved, for each of them, XLS files from Outlook and I copy-pasted it in one file. Thing is, now I have hundreds and hundreds of duplicate records :( . I …

Member Avatar for gtd
0
141
Member Avatar for krany18

hai friends, i am developing a application like a job portal. but in that i am getting a error whilw i am writng the program.. please clarify my doubt.. the error is: please tell me the how to delete a record from database using asp .net and C#. please send …

Member Avatar for dickersonka
0
118
Member Avatar for karthi_selva

hi, i am created the view at run time using the following code TreeView myTreeView = new TreeView(); myTreeView.Location = new Point(0,0); myTreeView.Size = new Size(100,200); this.Controls.Add(myTreeView); //now that it's on the form, you can add nodes to it myTreeView.Nodes.Add(new TreeNode("something"); but runtime the tree view not displayed in the …

Member Avatar for LizR
0
73
Member Avatar for denniskhor

Hi, anyone can help me convert or set my .mdb with form in ms access file to an application? i mean an application open the interface(form) without open microsoft access.

Member Avatar for ac001
0
2K
Member Avatar for mybluehair

I have a program in were you enter numbers. each different # set you enter goes into an array ( section[] ) but now what I'm trying to do is add 2 different sections together. [code]for(int x = 0; x < stoppoint; ++x) { track = track + 1; if(section[x] …

Member Avatar for Freaky_Chris
0
110
Member Avatar for sm3128
Member Avatar for Arald

Hi, I have a trouble: I want to send text from my laptop to Nokia N95 using bluetooth tecnology. This is my source: [code=java] ClientSession clientSession = (ClientSession) Connector.open(serverURL); [b]HeaderSet hsConnectReply = clientSession.connect(null);[/b] if (hsConnectReply.getResponseCode() != ResponseCodes.OBEX_HTTP_OK) { System.out.println("Failed to connect"); return; } HeaderSet hsOperation = clientSession.createHeaderSet(); hsOperation.setHeader(HeaderSet.NAME, "Hello.txt"); hsOperation.setHeader(HeaderSet.TYPE, …

Member Avatar for wad
0
160
Member Avatar for Shuco

I am writing my first database app (windows form in c#) and I am using an access database. I have 2 tables with the following fields: payroll --Store --lastName --PayFreq --SSN (PK) --HireDate --EffectiveDate --TermDate --DeductionCode --Deduction --NAD CHAR hrconnection --Store --lastName --CoTime --Plan --Dependants --HireDate --EffectiveDate --TermDate --SSN (PK) …

Member Avatar for Shuco
0
112
Member Avatar for babusek

Hi Frnds, Sorry For The Spam . i have a class name"Super" program:[code] package turn; public class Super { public static String platformFlag=null; public void parse() { platformFlag="Sekhar"; } public static void main(String args[]) { Super ob=new Super(); ob.parse(); } } ------------------------------------------------------------------------------- Now i have another class in the same …

Member Avatar for stephen84s
0
148
Member Avatar for bufo

Hi, I am developing a Java application that uses a serial port to communicate. The communication part is working fine but if I close the serialport using the close method on the SerialPort object and then try to open it again using the open method on a CommPortIdentifier object I …

Member Avatar for ~s.o.s~
0
879
Member Avatar for nefashu2

I need to write a code that takes 5 students and takes a grade for each of them, using two quizzes (10 points each), one midterm (50 points) and one final (100 points), and then gives final grade. It has to use an array. I tried to do this code …

Member Avatar for verruckt24
0
80
Member Avatar for LightSystem

Hello, I need some urgent help, I have a program that communicates with another program. Its basically a Q&A, where one side introduces a question and the other answers it. And yes this is a school work, and it needs to be delivered soon. Im posting here because Im quite …

Member Avatar for dreaddoC
0
91
Member Avatar for singoi

Hi Friends, how can i change the columns width in MSflexgrid by code from 1.jpg to 2.Jpg I have copied this code in my Module: [I][CODE]Public Function Grid_AutoSize(oGrid As MSFlexGrid, oLabel As Label) Dim nRow As Long Dim nCol As Long Dim nWidth As Long Dim nMaxWidth As Long ' …

Member Avatar for QVeen72
0
1K
Member Avatar for nice_true

Hello! I have a small problem in asp.net ... I wish to create a pdf file and write text entered into a textbox into it using asp.net. The following lines of code work properly for creating and opening pdf files [code=asp.net] Dim fs As FileStream = File.Create(Server.MapPath("files/newfile.doc")) Dim sw As …

Member Avatar for peter_budo
0
127
Member Avatar for kamrag

I am having a problem when reading xls file. I dont want to upload the file on the server. I just want to read the file which the user is going to post. Note: This file in not on the server and i want the file format as .xls (not …

Member Avatar for arunguptadch
0
291
Member Avatar for karthi_selva

hi, i am doing a project using C#, i don't know how to creat the table at run time using C#. if u know please send ur information or codes or notes. Regards, Karthikeyan S

Member Avatar for LizR
0
98
Member Avatar for Vandithar

Hi, I have 3 arrays. [code] @arr=("TDP-43 is a highly conserved, 43-kDa RNA-binding protein implicated to play a role in transcription repression, nuclear organization, and alternative splicing","the major disease protein of several neurodegenerative diseases, including frontotemporal lobar degeneration with ubiquitin-positive inclusions","For the splicing activity, the factor has been shown to …

Member Avatar for Vandithar
0
146
Member Avatar for leki

I try using this code: [code]File wd = new File("/sx04a1/jakarta-tomcat-5/webapps/maltixa"); String sscp = "scp /sx04a1/jakarta-tomcat-5/webapps/maltixa/index.jsp [email]jipbekok@fff04.ff.ff.es:/sx04a1/jakarta-tomcat-5/webapps/maltixa/index5.jsp[/email]"; p = Runtime.getRuntime().exec(sscp,null,wd); try { p.waitFor(); } catch (InterruptedException e) { e.printStackTrace(); } out.println("Exit value: " + p.exitValue()); BufferedReader reader =new BufferedReader(new InputStreamReader(p.getInputStream())); String s = reader.readLine(); out.println("scp said [ " + s + …

Member Avatar for leki
0
161
Member Avatar for robgeek

Hi everyone, I have worked some more on my code and this time I am getting some error that I am not able to resolve. Please help me. The error says: "initialization skipped by case label." Please show me how to resolve this. Here is the code. The error has …

Member Avatar for robgeek
0
4K
Member Avatar for krany18

hai friends i am writing the code for search button; while i am wrote and complied that it gives the following error. so many times i checked and posting into the forum now please clarify this problem.. code is: [code=asp.net]using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using …

Member Avatar for Murtan
0
100
Member Avatar for aamresh1

We tried compiling a code - multiply1.c in the Linux environment by giving the command gcc multiply1.c (we have renamed it) but its throwing errors like :- In function "main": undefined reference to '_gmpz_init_set_str' We are getting 6 to 7 this type of errors. Can you please let us know …

Member Avatar for aamresh1
0
167
Member Avatar for omgdork

Hi. I need help in vb.net. We have a page that opens a pop-up modal dialog with a form via JavaScript. The pop-up opens when a button from the parent window is clicked. The pop-up contains a textarea that has a required field validator. Once the user clicks the OK …

Member Avatar for omgdork
0
287
Member Avatar for n8thatsme

Ok, I never really understood vectors and I have write a program that uses a vector of Employee references to store the company’s payroll. My program will load the payroll by reading a file (employee.dat) that contains one employee’s information per line. Each line of the file will begin with …

Member Avatar for ArkM
0
373
Member Avatar for aneeshkurup

Hai all, <span >Test_Ajax</span> On mouse over of Test_Ajax I want display a tooltip which display the value of a variable (which is declered in php file). For doing this task how should I co-ordinate ajax, js, php and html files

Member Avatar for ~s.o.s~
0
238
Member Avatar for Taker

I hsve developed this code I am having trouble with the Account manager to perform the task it meant to do when i put N for New customer it exits the program and i shouldnt can anyone hepl me with this problem [code] #include <iostream> #include <string> #include <cmath> #include …

Member Avatar for WaltP
0
208
Member Avatar for avpy

hi people, i am able to make the following code work if i don't use a destructor: #include<iostream> using namespace std; class CVector{ public: int *x, *y; CVector(); CVector operator+ (CVector); CVector(int,int); // ~CVector(); private: }; CVector::CVector(){ x = new int; y = new int; *x=0; *y=0; } CVector::CVector(int a, …

Member Avatar for vmanes
0
122
Member Avatar for ais94

hey i'm ais94 i am currently a student with dubai in school we take computer science and we were handed a project to do that's how i got introduced to visual basic 6. you could do it whatever programming language you wanted to do it in anyway enough about that …

Member Avatar for ais94
0
83
Member Avatar for chunalt787

Some of the code has been omitted. I am trying to write a DFS function to traverse a maze. It will eventualy add the nodes to a tree that I will traverse once I get the DFS working. Currently it goes into an infinite loop and I cannot figure out …

Member Avatar for chunalt787
0
608
Member Avatar for midimatt

Hey again guys and gals, getting a really weird error when i attempt to print out doubles in my program i have to store several double values, but when ever i print then out all i get is -9.25596e+061 instead of what should be printed out. [code=C++] string line; stringstream …

Member Avatar for midimatt
0
105
Member Avatar for vssp

Hi I am trying to open the explorer window using php code .But i got the security issue .Please help me how to solve the issue. [code]<a href="file:///opt" target="_blank">adas</a>[/code] I got this error message Please help me how to fix the issue Security Error: Content at [url]http://localhost/test.php[/url] may not load …

Member Avatar for vssp
0
149
Member Avatar for slimjimmer

Hi I'm trying to implement malloc into the following file but I am having some difficulty grasping the concept. My code: [code=c] #include <stdio.h> #include <stdlib.h> #include <string.h> #define HALF_PI 1.570639 #define EXPECTED_ARGS 2 #define LOWER_LIMIT 0 float Integrate (float upper_limit, float x[2][10000], float fx[2][10000]); int main (int argc, char* …

Member Avatar for slimjimmer
0
154
Member Avatar for raul15791

Hi, I need to reset all the values of elements in my form to empty string. But the problem is that the form can be reset but the variable still holding the value of y previous input. For exp, Input 5 value at first time. Input 2 value at second …

Member Avatar for raul15791
0
121
Member Avatar for sayaan

Hi, I have a problem in sending mail in HTML format using PHP mail() function. The problem is that the HTML is not rendered in microsoft outlook (showing raw data) but in yahoo it is good and the HTML is rendered and shown correctly. These are the mail agent I …

Member Avatar for peter_budo
0
95
Member Avatar for squidthekiller

i have problem with my syntax.. please help me.. [code=php]<?php require_once('../Connections/epurse.php'); ?> <?php function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue; switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case …

Member Avatar for peter_budo
0
57
Member Avatar for sandawg

When I printout the array contents, it prints null rather than the expected entered data. Will someone please tell me what I am doing wrong? Thanks. My code follows; [code=java] import java.util.Scanner; public class Inventory { public static void main(String[] args) { Scanner input = new Scanner( System.in ); boolean …

Member Avatar for Antenka
0
122
Member Avatar for aparnesh

I have a database of book titles where string values are stored. A php script reads the data and displays them. The problem is happening when a Book title contains the ' character - as apostrophy let's say. One example is the title "The Devil's Alternative". So when I write …

Member Avatar for aparnesh
0
144
Member Avatar for papuccino1
Member Avatar for LightSystem

Im trying to understand why a simple function I wrote doesnt work as it should, its probably some simple noob mistake, but its really making no sense. Here it is: [CODE=C] void justapoe(char seq[], int pos){ char c; int i; printf("Insert: "); scanf("%c", &c); seq[pos]=c; printf("Seq: "); for(i=10;i<50;i++){ printf("%c", seq[i]); …

Member Avatar for jephthah
0
92
Member Avatar for rmlopes

Hello, I implemented the follolwing function: [code] template< int n > struct GetNRands{ static void fillVector( set<int>& v, int max ){ if( n > 0 ){ int f; int pos; do{ f = rand(); pos = f * max / RAND_MAX; } while( v.find( f ) != v.end()); v.insert( pos …

Member Avatar for ArkM
0
138
Member Avatar for papuccino1

Hello, me and my programming group were given the task to build a program to save peoples information, for instance, Name, Last Name, Age, I.D., etc. Is there a guide, A VERY BASIC GUIDE, to pass the values of, say, a text box to an SQL Database? Or to make …

Member Avatar for Shuco
0
136
Member Avatar for Icebone1000

win2000 , visual studio 2005, console application (sorry my poor english) I dont know very well how start explain whats my problem.. Im making a sudoku game (not unic solution, just random =P) the problem is the loop where it suppose to verify the sudoku rules and make the corrections …

Member Avatar for Murtan
0
242

The End.