64,152 Solved Topics
Remove Filter ![]() | |
hi In my mail attachment i am able to recieve the attachment but the file size is 0kb. it is showing the below warnings please do tell the error in my code [QUOTE] home/wesite/public_html/profiles/resumes/153/ Warning: fopen(home/website/public_html/simple.txt) [function.fopen]: failed to open stream: No such file or directory in /home/website/public_html/mail_attachment.php on line … | |
hi , my program calculate the area of rectangle , and I have some errors , and dont know how to correct them . this is the program , [CODE] #include<iostream> using namespace std; class Rectangle { private: double length ,width ; public: double getW(); double getL(); void setW(); void … | |
Hey everybody, I have multiple buttons on a form, I need to make them all have the same click event, which displays the name of the sender button. I knew that in order to make them have the same event handler, I should make there delegates refer to the same … | |
Hi Guys, I'm trying to read a while with the following formate 1999 43558047 2000 59068567 2001 67098709 ......................... ........................... I'm not sure how many records are in the file. Now I want to read this file using struct mystruct { double x; //this would be first column double y;//this … | |
In an attempt to improve my coding skills, I decided to program a very simple DOS calculator. However, when i try and compile the program, I am presented with with following: [CODE]------ Build started: Project: Basic Calculator, Configuration: Debug Win32 ------ Compiling... Basic Calculator.cpp c:\documents and settings\my documents\visual studio 2008\projects\basic … | |
Hi all The string_in function below is intended to take two string pointers as arguments and if the first is contained in the second, return the address at which the contained string begins. [CODE=C]#include <stdio.h> #include <string.h> #define TEST "This ain't a drill" char * string_in (char * str1, char … | |
I have a problem installing .net on my machine.It gives the error massage:Install security updates and I don't have facilities to download security updates.Is there a compiler for c# free of charge ,can enyone post a link. | |
I am new to C++ I recently been trying to write an Game data base in C++ but I succesed in nothing though the Code seem to be all right it always shows me error messages this is the Source Code i created for this program: [CODE] #include<iostream.h> #include<conio.h> #define … | |
This came up in another thread. I gave some advice that I'm not longer sure of. Rather than hijacking that thread, I figured I'd start my own. I advised against using the == in that thread. The context was this: [code=cplusplus] string subChoice =""; getline(cin,subChoice); if (subChoice == "100") { … | |
[QUOTE]Hi, I have an assignment where I need to take a string and display it in reverse order and then convert anything in upper case to lower case and vis versa. I have the first piece of the code, but I'm not sure where to begin with the second piece. … | |
I'm getting the following error on run Parse error: syntax error, unexpected T_VARIABLE in /www/99k.org/g/a/t/gatewayarcanum/htdocs/process.php on line 2 the code i'm using is [code=php]<? php $name = $_POST['name']; $email = $_POST['email']; $how_found = $_POST['how_found']; $comments = $_POST['comments']; mail("psidonwav@gmail.com", "Contact Form Submission", "Name: $name /n E-mail: $email /n How Found: $how_found … | |
When is it better to use random-access ? When is it not? When is it better to use sequential-access? When is it not? So far I'm only sure to use random access in a situation where I'm dealing with a fixed number of records. For example a record of rooms … | |
Hi, I'm wondering how your supposed to find out a widget's width in tkinter.. Little example code to explain (doesnt do anything at all) [code=python] class CustomWidget(Tkinter.Frame): def __init__(self, master, **kw): apply(Tkinter.Frame.__init__, (self, master), kw) self.masterWidth = # ???? Totally stuck, tried obvious things like master.width class MainWindow(Tkinter.Toplevel): def __init__(self, … | |
I have a GridViewControl on my Form in C++ .NET. I have put values to Rows and Columns like this: (3 columns and 5 rows) 1 a f 2 b g [B]3 c h[/B] 4 d i 5 e j What I wonder here is if I click with my … | |
When i compile my program i get the error "floating point exception". I do not know why this is occurring my code. I am hoping that this is the reason why nothing is being put into my outfile. if it is possible could you look at my code and give … | |
I understand how to use CreateProcess, ShellExecute(Ex), _spawn, exec methods to start a child process from a parent process. Question: Is there a way I can return values back to the parent process from the child process? For example, the child process sets an integer value and I want the … | |
this is some of code. I have a question. what is the meaning of '?' and ':1;' [just this part] [code=syntax] int t, dt, * cnt, tmax=0; cnt=(int*)calloc(M,sizeof(int)); ... /* Compute the mean-squared displacement using the straightforward algorithm */ fprintf(stderr,"# computing...\n");fflush(stderr); for (t=0;t<M;t++) { for (dt=1;(t+dt)<tmax;dt++) { cnt[dt]++; /* number … | |
I have been using VB.Net for a little while now, but I just started needing to write code to put information in a SQL Server database. I have two tables that I need to add information into. I know that I have to use an Insert statement, maybe I need … | |
can anyone tell me what makes C a universal language and ideal for a number of engineering solutions? Part of an assignment would be ace if someone could give me a few pointers | |
I need to create a program that is a table to convert between centigrade and fahrenheit temperatures. My solution must must utilize functions to perform the conversions. Requirements: 1. One of the functions must use pass-by-value, returning the converted measure 2. One of the functions must use pass-by-reference to store … | |
I was wondering if you could add new fonts to pygame and how you should do it. Does any one know how to do it? | |
please explain What are the following data types are and the storage requirements of each? -Char -Unsigned Char -Int -long -float -double Would be great if someone could help me out, thanks | |
sometime I see pepole use @ with variables ex: @$cat=$_GET['cat']; is this something like pass by reference? can you direct me to a good tutorial in this matter Thank you | |
is this possible, i had to use the mysql class to connect to the database, but i would rather use oledb. the connection string i used is "Provider=MySQLProv;Data Source=mySQLDB;User Id=myUsername;Password=myPassword" when i try to connect a popup titled "MySql Data Source Name Setup" always comes up. even if i try … | |
If i have, for example, a marquee that displays time when i push a button,like this: [code=php] if($_POST['time']) echo "<marquee direction=right behavior=alternate scrolldelay=500 scrollamount=30>".date('d-m-Y').' GMT'.date('P').' '.date('H:i:s')."</marquee>"; [/code] ,it will display the time at the moment that i pushed the button. How could i make it to display the time continously? … | |
Hi All, I am a Problem with Database. I Don't Know How Can i Import my Data in MySQL Database Using CSV Format. Can anyone Plz Help me. I am Using phpMyAdmin for Accessing my Database... Plz Help me. | |
I'm almost finished with this program but the problem I'm having is with freeing the memory I allocated. Particularly in the area where I have pointers to strings. [CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> /////////////// user defined data ///////////////////// struct State { char * name; // state name int year; … | |
Hello, I am doing a file input/output. I wrote 3 fulls names, phone number, balance. etc inside my input file. Example: John Doe 555-555-5555 5000.00 In my output file, I am trying to create this output with using setw. First Name Last Name Phone Number Balance ------------ ------------ ----------------- --------- … | |
When I have [ICODE]sizeof(utmp)[/ICODE], 384 is returned. So when I try to find out the size of the individual members, I get a different result. Using the method below, I come up with 382 bytes. Anyone know where I'm missing the other 2 bytes? [CODE=CPP] #include <iostream> using std::cout; using … | |
hi. i recently implemented S-DES algo. Here is the code for key generation. [code] import java.math.*; import java.security.*; public class keyGenerator { int bitLength=10; int certainty=20; int i=0,j=0,tempInt1,tempInt2; long l; byte[] actual10Key=new byte[10]; byte[] permuted10Key=new byte[10]; byte[] permuted10KeyCopy=new byte[10]; byte[] cls10Temp1=new byte[10]; byte[] subKey8Temp=new byte[8]; byte[] subKey1=new byte[8]; byte[] subKey2=new … | |
Before I start, I'm sure you've all seen this error, and explained how to solve it many times before, and for that I thank you for bothering to read this, and if you choose to answer, I wish to thank you in advance. So, the issue I am having is … | |
What is the way to convert this int to a std::string. I have searched MSDN and found that itoa could be used (vs atoi for string to int as I know how it is done). Though I cant find any good example that shows how itoa is used or if … | |
I am using a "GriedViewControl" with 14 columns and with this code below I can set the number "1" to the First Column and 21 Rows down. What I wonder is how I access for example [COLOR="Green"]column 3 and row 1[/COLOR] or [COLOR="green"]column 4 and row 2[/COLOR] etc... What is … | |
hello ive got a sign in page it works and sends data to database but soon as i had validation code for an email address using java, and then when i click submit it comes up with this error below for every textbox even though all the textboxes have data … | |
I need some help with <cfquery>, I want to authenticate an add form so the user doesn't enter the same value twice or more so I used recordcount like this [code=ColdFusion]<cfquery name="cool.recordcount" datasource="#Request.proto#"> <cfif cool EQ 0> INSERT INTO proton( name, moon ) VALUES( '#Trim(Form.name)#', '#Trim(Form.moon)#', ) <cfif cool EQ … | |
Hi, I am using masterPage wherein i want to blink the text . But i also want to put one logo beside that text. Here i only want to blink the text. I have combined both the logo and text using paint and given the path in masterpage. Please let … | |
This is the first time I have ever had to do a simulation type program. This is what I'm trying to do: Your application should use an array of tellers (10 tellers would be a good maximum) but on any particular run of the simulation, any number of tellers from … | |
I am confused in tellg funtion can any body tell me its syntax also for seekg();. | |
is there a way to create a function that uses values from the statement inside of brackets. ex. [CODE=php] myFunction(){ //data here } [/CODE] if not, what i am trying to do is get a html tag and check/modify without having it inside of a variable or echo tag. for … | |
I'm having a problem maintaining the data in the file. Everytime I enter a person's data the display code I have only displays the first one I entered. I'm not sure if there's somethin wrong with the creating or populating or just the display code I'm using [CODE=c]void addReserve() { … | |
error message Notice: Undefined variable: sentmail in /home/stud/1/0472547/public_html/send_password.php on line 59 The code works but when wrong email is entered and it cant find it in the database it comes up with that error its all right but for some reason its saying undefined variable // ---------------- SEND MAIL FORM … | |
Hey guys, new poster here. I'm rather desperate here, I just do not understand the concept of templates very well. I've used the search function, but I don't see the problem addressed in any other threads. Any help is much appreciated. My assignment is to create a templated vector class … | |
Hi all, I have a problem with Java GUI. How can I set a certain component to be in front of another component or behind it?! i.e. Is there a way to: SendToBack & SendToFront in java? | |
Hi, is there in PHP a way how to determine in real time geographical area from IP. I mean rough estimation e.g. Asia, USA, Russia etc.? Thanks in advance for any advice! | |
Hello, I am having a problem to call a function I am posting the code... Can anyone help how we can solve the problem... [CODE]int AES(string path1, string path2) { ifstream myfile1 (path1, ios::binary);// error ofstream myfile3 (path2, ios::binary);//error } int main() { AES( "c:/plaintext.txt" , "c:/cipheretxt.txt" ); return 0; … | |
how to use in [B]onmouseover[/B] and [B]onmouseout[/B] property for a ASP.Net2.0 control by using [B]javascript [/B]Suppose I want to show and hide an Image by taking and removing mouse over another control like Image, Label.... by using [B]JavaScript[/B] only | |
Good afternoon, Quick question, this may not make any sense but it is a thought, I was thinking, like I usually like to do, when you pass variables over a browser would it be crazy to md5 hash and salt the variables id and keep them in a db table … | |
I just need your take on which of these two scenarios will yield quicker results with optimization in mind. On the front end there are a lot of pages with counts per category of events e.g Restaurants (40) | Pubs (2) | Gallery (6) [B][U]First Scenario:[/U][/B] [ATTACH]5594[/ATTACH] Having a stored … | |
Hello the code below checks if the email is real but when a real email is entered for some reason or another it states undefined when the sumit button is clicked even though the email entered is real. if no email is entered is says enter a an email, if … | |
is it possible to alert session variable.is the syntax is correct... [CODE=php]<html> <head> <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"> <!-- function login() { alert($_SESSION["un"]); } --> </SCRIPT> </head> <body bgcolor="#f1f3f3"> <form> <?php print "<input type='submit' value='submit' onClick='javascript:login();'>"; ?> </form> </body> </html>[/CODE] |
The End.