199,114 Archived Topics
Remove Filter ![]() | |
Dear All, I am currently working on an assignment. I am having one error with this php file but I cannot figure out the problem. Can you please help. Fatal error: Function name must be a string in C:\xampp\htdocs\idareyou\searchUser.php on line 2[code]<?php $fme=$_GET('search_fname'); $lme=$_GET('search_lname'); $con=mysql_connect("localhost","root",""); if(!$con){die("could not connect".mysql_error());} mysql_select_db("idareyou",$con); echo("dbconnect … | |
im trying to output my bfs in this manner, showing the connections rather than the individual nodes: input 0 1 1 0 1 0 0 0 1 0 0 1 0 0 1 0 output (0,1) (0,2) (2,3) rather than: 0 1 2 3 this is my code so far, … | |
Hello Every One. I want to read weight from an electronic weight machine which is connected with computer and save it in a database. Please if any one know the procedure, please help me. Thanks | |
Hi all, I have a double pointer in C as follows: [code] void foo(char * , char**); main( ) { char * inbuff = {0x10,0x20}; char * outbuff; foo(inbuff, (char **) &outbuff); } void foo(char *inbuff, char ** outbuff); { //code to manipulate inbuff and outbuff. *outbuff = (char *) … | |
above code not working, y is 2010 and year0 is also 2010, as per my knowledge Equal should be displayed as output, but the condition does not get equal. Pls help me for this. | |
Hi everyone, I have a little problem with the class XmlDocument in .net. I'm using framework 2.0 and I am loading an xmlDocument from a path. The xml has a node without value like this: <somexmlnode/> When I load the xml using the xmlDocument class, it seems that it is … | |
hi, i'm entry level webdesigner- following the advice of youtube tutorial "rrphillps" of serverside includes. [url]http://www.youtube.com/user/rrphillips?blend=2&ob=1#p/u/143/9TrsRxFtgSA[/url] really simple stuff; the idea is to put all your hyperlinks in an ".inc" file and link all your webpages to it. but then he explains that your server needs to know to look … | |
I am attempting to create code where the user can alter the A elements in the list continuously. If another letter in the list is replaced however, it should ask for new input from the user, and go back to the code where the user can alter A elements in … | |
I have a datagrid. Right now, the datagrid has an event which is doubleclick on a row. it doesn't matter at which column i click,it will still be read as a row. this is its code: [CODE]<my:DataGrid x:Name="ProjectDG" LoadingRow="ProjectDG_LoadingRow" IsReadOnly="True" AutoGenerateColumns="False" Cursor="Hand" CanUserReorderColumns="False" CanUserResizeRows="False" CanUserSortColumns="False" ColumnHeaderHeight="25" HorizontalGridLinesBrush="#FF3B3B3B" VerticalGridLinesBrush="#FF3B3B3B" BorderBrush="{x:Null}" Foreground="Black" … | |
I've toyed around a great deal trying to get my calculations correct in this countdown program, but I keep getting the same result. Basically, I'm creating a program that will countdown from a users inputted number. At each second it will display whatever amount of seconds remaining. My problem is … | |
were i work has an access they use to record customer details which has been running forever and just uses a access macro form to enter the data. i am wanting to try viewing and editing this using vb,net which i have a little bit of experience with. can you … | |
Is it possible to add two separate arrays into one hash set? | |
Hi, I'm writing code for a graphical map of a shopping center. Whilst writing the code I realised it would be simpler to be able to draw objects using "names" instead of values. E.g. g.drawRect(Asda); instead of g.drawRect(100,100,40,40);. Is this possible? I have tried writing various classes but I can't … | |
So basically, I have this: [CODE=C] bool getDouble ( double & value, const string & prompt); int main() { char userSelection; do { cin >> userSelection; if (userSelection == '1') { double radius; if (getDouble (radius, "Please enter a value: ")) { cout << "good"; } else { cout << … | |
How to transfer files from one server to another in php? Any ideas? | |
hi all, i had a image upload code and it is working fine but while uploading i need some progress bar. so i got some progress bars..so can any one suggest me how to integrate that progress bar in my code...Is there any examples... Thank u. | |
I have all the php coding Insert, view, delete. The problem now is user only can use once email address to register at my website. I would want them to register with same email at my website. is it possible? Thanks! | |
Hello, I am currently working on a program that is supposed to do the following: I am supposed to take a data file of 5 student names that are in the following form: lastName firstName middleName. I am supposed to convert each name to the following form: firstName middleName lastName. … | |
I have just enrolled to a computer sciencee class, and my teacher gave us an assignement about writing a pseudo code, but it's my first time being in computer science class and i don;t have any experience in computer science. Can someone help me? here is the problem: You and … | |
I need help in calculating the variance for randomly generated values (using srand(seed)). When i input 5 i should get 97359589.15265 but i am getting 1.29888e+010. I am almost positive i went wrong in the calculation of the variance but have no idea what to do in making it correct. … | |
//this code is for upload,i have successfully uploaded my file in to uploads folder please can anyone tell me how can i get the image from my folder if(isset($_REQUEST["upload"])) { $name=$_FILES['uploadedfile']['name']; $type=$_FILES['uploadedfile']['type']; $size=$_FILES['uploadedfile']['size']; $check=$_FILES['uploadedfile']['name']; $uname=str_replace(" ","_",$name); $tmp_name=$_FILES['uploadedfile']['tmp_name']; $target_path = "uploads/"; $target_path = $target_path . basename( $uname); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo … | |
Hi guys, I'm new to this site and I have a question regarding internet bots in general. What I want to do is to use C (or php) to create a bot that will scan the internet (perhaps log into sites, retrieve data, get links, play internet games?) on the … | |
Hi, I need to store data entered into my java application such as the persons name, address, ph number, date etc to be saved in an xml file. I also need to retrieve it so it can be displayed. If you can point me in the right direction that would … | |
Hey, I have tried everything that does not work to change the color of the text on a JButton I have in a JPanel. Does anyone know how to do this. I need the actual text on the button to be a different color than black..This is an application so … ![]() | |
Hello =) I have some problem to set font and color in my program.can you take a look for the moment please?Here is my simple program: [code] import java.awt.event.*; import javax.swing.*; public class showYourLove extends JFrame //inherits from JFrame class { private JPanel panel; //to references a panel private JLabel … | |
Hi, I'm working on an overloding operator homework. I'm overloading the + = += << [] && operators to work with objects that contain int arrays that can be set to have index from x to y instead of 0 to x. I'm getting the LNK2010 & LNK1120 errors on … | |
An exercise is to write a program that shows how memory is allocated to stack variables compared to heap variables. I ran the following code. [code] #include "../../std_lib_facilities.h" int main () { char c = ' '; char ch0[10]; char *ch = new char[10]; char *init_ch = ch; cout << … | |
I'm trying to encrypt a tif file using RijndaelManaged. Initially I was getting "Padding is invalid and cannot be removed" error. Got that fixed by adding FlushFinalBlock() to my Encryption method. Now, however, when I try to decrypt a file that has been encrypted in a different application (they both … | |
Hey guys I found the following code snippet below... I want to know how to compile this... I am a c++ programmer and something is wrong with my mouse/audio so I thought this may programmatically solve it but I have no clue about anything java and in c++ there is … | |
Im just trying to read a file to see if i did the code correctly but I keep getting this error. Any help is appreciated. [CODE]#include<stdio.h> #include<stdlib.h> #include<string.h> struct Node { char name[15]; char title[15]; int year; struct Node *next; struct Node *prev; }; typedef struct Node* Box; Box build_node(FILE … | |
Hi, need help as to what is the code doing, if possible each statement if anyone knows: When it is run, when dd/mm/yyyy format is enter, it will give 20 Dec 2010 is a Monday Why is the monthIndices and division done for ? [CODE] public static String dayOfWeek(int dd, … | |
[code=c++] while( getline( infile2, temp2 ) ) { size_t prev_pos = 0, pos = 0; while( (pos = temp2.find(' ', pos)) != std::string::npos ) { string wordtobold( temp2.substr(prev_pos, pos-prev_pos) ); cout << wordtobold << '\n'; prev_pos = ++pos; } string wordtobold(temp2.substr(prev_pos, pos-prev_pos) ); // Last word cout << wordtobold << … | |
[code] * Asuming the list is sorted in ascending order, inserts n in the list * at the right position to maintain the ascending and returns the resulted list. */ struct node * insert (int n, struct node * list){ struct node * newnode = (struct node *) malloc (sizeof(struct … | |
If I use a template function with T where T = itk::Image<unsigned char>::Pointer, everything is fine: [code] #include <itkImage.h> class Test { public: template <class T> void Add(T patch); }; template <class T> void Test::Add(T patch) { } int main(int, char*[]) { Test a; itk::Image<unsigned char>::Pointer image; a.Add(image); return EXIT_SUCCESS; … | |
Dear all , I have the following UML Diagram and below the associated Code. Can you please help me complete the code? Thanks in advance I have written my UML diagram as follows. -x : double -y : double +MyPoint() +MyPoint(x:double,y:double) +get X() :double +getY() : double +distance: (MyPoint1:MyPoint2):double +distance(p1:MyPoint:p2:MyPoint):double … | |
New to the forum and C. I am trying to write a function that will allow me to remove a certian string from and exisiting one. The below program I wrote by using examples in an text book and online. I understand it at a basic level, but I'm pretty … | |
Just started learning C++ today. I'm writing a program to keep up with school assignments. [CODE] #include <iostream> #include <stdlib.h> #include <fstream> #include <string> struct Assignment { string Period; string Title; string Page; string Date; string Instruct; }; void NewAssignment() { system("CLS"); Assignment Work; cout << "New Assignment Entry" << … | |
I keep on messing up the math calculations :@. [U]Error[/U] The output was shown as this" [ICODE] BMR: 40.35 pounds BMI: -83.60 inches TDEE: -114.95 years Your BMI classifies you as Obese [/ICODE] But it should be this way: [ICODE] BMR is 2308.15 BMI is 40.35 TDEE is 3173.71 Your … | |
Hello All I need to write a program in C standard to solve the produce -consumer problem but I don't want to use threads, also I don't want to use Semaphore or shared memory. The exactly I need is to write the program using (Message queue) which use functions of … | |
I'm new to Java and just need a little help....The program is supposed to have the user enter in a series of numbers then displays the largest and the smallest....they have to enter -99 to end. My problem is the smallest number is always -99. What do i have wrong? … | |
ok guys so i have problem here is the goal of this program:Write a Java program that reads in this file and produces a visual representation of the seat assignments, with a passenger's name and his/her seat assignment in each seat slot here is the data in [URL="http://www.cs.oswego.edu/~odendahl/coursework/csc212/201009/assignments/03/seats.txt"]this[/URL] text file: … | |
Hi people, i have been trying a lot of codes to change a resource of a compiled exe, finally what im using is this: [CODE]using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Windows.Forms; using Microsoft.Win32; namespace WindowsFormsApplication1 { static class Program … | |
Hello people. Im having a problem with this. I want to create an exe from my own exe. For example in my exe you can put "name: " "haircolor: ". So when yo click ok, this exe make the exe2. So when i open exe2 it shows a messagebox showing … | |
I am relatively new to delphi. what i am try to do it to open a new form from the main one as a pop-up window, let the user input certain values in there (two integers and a check box), and use these values as parameters in a procedure to … | |
hello how do i open zip and rar files with c ? which lib do u recommend ? is there any one lib that does both zip n rar ? im basically trying to open zip and rar files which contain pics and retrieve a string array of all the … | |
Hello Everyone, I have a list of digits. What is the most efficient way to count the number of tokens between two known digits? Here is what I came up with: [CODE] def dis(l, a1, a2): i1 = l.index(a1) i2 = l.index(a2) distance = i2 - i1 - 1 return … | |
I'm having so much trouble with this assignment, and I was wondering if anyone would be able to help me out. Here is the assignment: This program uses the file "cities.txt", which contains over 136,000 location names in the United States. Each line of the file contains a place name … | |
Hi all, I am a newbie in php and is developing a cms. I am verifying the email address of the new user when creating an account on a site. The email goes to the email address with activation code of the account, but this email is not having the … | |
Hi Folks, I'm a noob but I'm slowly getting addicted to python. I've been hitting a wall for about 4 hours trying various things to no avail. It looks to me like it should work and runs without error but.... I expect the blockcount counter to be high (but it's … | |
Hi! I do have this assignment I have been working on for a while. My lecturer told us that we can produce few different EER models for this assignment and I would like to share with you my point of view at this problem and get as many other ideas … |
The End.