199,124 Archived Topics
Remove Filter ![]() | |
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 … | |
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. … | |
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(), … | |
Hi,I need to edit in a file without deleting all the data. Thanks | |
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? | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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] … | |
How can i Import contact using javascript in jsp. Regards, sm3128 | |
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, … | |
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) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 ' … | |
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 … | |
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 … | |
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 | |
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 … | |
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 + … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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* … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
What wrong? What settings have to be set so the image shows and not only the BackColor? | |
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]); … | |
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 … | |
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 … | |
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 … |
The End.