199,114 Archived Topics
Remove Filter ![]() | |
I am having a hard time grasping ADT using linked list. I have a struct node in a class where i have a node constructor. I cant create a link list without using the constructor. But thats where i am lost. This is what i have [CODE] #include <ostream> #include … | |
Okay, I was thinking about making an encryption algorithm, now the thing with most algorithms is that they follow specific steps. Well, I was thinking, what if you made an algorithm that generated random characters (the kind you see on your keyboard, excluding characters that could crash the program), and … | |
Hi All, I want to show user registration information which he fill up in registration form & he can edit it. So I use details view. but I want to hide some fields like user_id(Primary key) etc. & some fields that he can't edit. How can I manage it..? | |
Design a drawing application (have a look at Microsoft Paint application on your Windows system). The application must have menus, and must be able to draw one or more sharps (e. g. point, line, rectangle, oval, etc). The application should use GUI components. | |
I can't figure out why this won't put buttons 1, 2, and 3, on the top of the frame, with buttons 4, 5 and 6 on the bottom? I realize there should be space between the top row and the bottom row. import java.awt.BorderLayout; import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; … | |
Hi all, I have the following code written for work. The point of the program is to take input from the user as to which customer id (phone number) is required. Once the program has this data, it will open a specified folder to search through each line of code … | |
Here is the code I have so far: [code]import re from urllib.request import urlopen pg = urlopen('http://www.url.com') pg_r = pg.read() pg.close() print(pg_r) print(re.search('(?<=http://user.url.com/)\w+', pg_r))[/code] What I *want* to do with re.search is find the word between the strings '[color=#0080FF]http://user.url.com/[/color]' and '[color=#0080FF]"[/color]' but I'm not sure how to do that.. Can … | |
Im tryin to use the visual studio 2008 "login" tools (that allow you to create user wizard, login view, password recover and so on), everything work fine (even on the internet server). my question: is there a way with that tools, beside the recognize of the user (after his login) … | |
I have a windows service (Serv.exe) running as LocalSystem, at a certain point it wants to show the logged-on user that it is processing data, therefore I CreateProcessAsUser(Display.exe) which is a C# Windows Form that display information (this all works perfectly fine). Now, when the Service is finished I want … | |
I am having a problem in displaying image to the web browser using html. I can only make it when the image and the html file is in the same folder. Is there a way to display an image getting it from the different folder of my hard drive? | |
I want to know what is the difference between joomla based website and php... I noticed joomla sometimes used .html at its url for seo. I have made this joomla website [URL="http://linuxrise.com"]http://linuxrise.com[/URL] and want to know your opinion about this... thank you... ![]() | |
so im creating a program on hours and minutes. and well my program basically works just that the output is a bit off. [code] #include <iostream> #include <string> #include <iomanip> using namespace std; void getHours(int& input1, string& s); void getMinutes(int& input2, string& s); void calcTotalTime(int& input1, int& input2, int& input3, … | |
This is not a homework problem & my first post in 2+ years. I just got asked to do this in C# based on my asp & DB experience & I am tearing my hair out as they want in done in one day & 2 MS videos say to … | |
hi guys, I'm writting a simple text editor using visual studio 2008. When I'm trying to make a new instance of the application using the following code which is existed in Main() method [CODE][STAThread] private static void newInstance() { //the following code also exists in Main() method Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new … | |
I'm attempting to construct an array of user defined information. For the life of me, I cannot figure out how to place the user's input into the array or how to disallow more than 5 values to be placed into the array? | |
i need to a Scroll bar or JScrollPane to My Jtree... I have googled and gone through several examples, but non seemed to have worked... Please can some one help me to solve this problem .. I simply need to have scrollers when the content of the JTree increases .. … | |
Hi, I am having a problem with my PHP mail function. I am trying to send an email from [email]user@site.com[/email]. This code is fine: [code=php] mail($to, $subject, $body, "From: user@site.com\n" . "MIME-Version: 1.0\n" . "Content-Type: multipart/alternative;\n" . " boundary=" . $mime_boundary_header) or die('Mail Error'); [/code] however this does not [code=php] … | |
Okay, this is probably a lame question. I have a search page which which needs to be sorted by distance when the results come back from mysql. What's the easiest way to do this since mysql orders the results? heres the code i wanna try to use: [code] function CalculateDistance($lat1, … | |
Hi everyone, hope someone can help me or guide me since python really something new for me. I use argv to read some input from user. My problem is i don't know how to read the input as a list. Assume that user should give --n and --file as input … | |
i have a problem here with my code, it happens that if i save an ordinary text or number, it is working, but when i try to save time and dates, an error will occur and saying My Error Syntax error in INSERT INTO statement. here is my code. //DECLARATIONS3 … | |
1.write a program that asks the user to type 10 integers and writes the sum of these integers.Using [B]for[/B] loop.Can anybody help me with this question?? | |
Here is my whole problem can someone please please HELP Please 1. SPLIT THE PROGRAM IN 3 FILE NETWORK. H, NETWORK.CPP. CLIENTNET.CPP AS IN ADT. DONE 2. DEFINE A CLASS CALLED ADDRESS_T (done) with member for the four integers of an internet address and a fifth member in which to … | |
Could you check this C language Code... The Output is not complete... it doesnt print the firstclas name n id? my assignment is Write a complete C program that will meet the following requirement: • Create student detail must contain each student’s name (as a string), id (as integer) and … | |
Hello, I'm not a programmer just a user of an application that won't work and gives a pythonw.exe error whenever it's run. I've tried asking for help on [URL="http://www.techsupportforum.com/microsoft-support/windows-vista-windows-7-support/415953-pythonw-exe-not-responding.html#post2357086"]windows tech forums[/URL] but they don't have any answers so I thought I would try here. Forgive me if this is not … | |
i created a dropdown list containing university names e.g. 'oxford' 'cambridge' and so on. I would like the uni selected from the dropdown list to be sent to another page as the heading. I am having trouble doing this myself and I dont want to create a page for every … | |
alright, i have been working on this code for two days. it is an assignment for my ap comp science class. i have tried several experiments that have all not worked. im supposed to make a proram that simulates an 11 sided dice being rolled, and it has to use … | |
Hey everyone, I know there are literally thousands of questions and answers on the internet for getting the SCOPE_IDENTITY(), but I haven't found a single one that relates to my particular situation... So here we go... I've decided to use VS .NET's built in Data Components, which in my case … | |
Hi everyone, I'm pretty new here, though I've read many posts here:) I got into a question and thought someone might be able to help me with it. I need to read human language date input and extract the date from an input. Let me explain: Lets say we have … | |
I have seen in many applications where user is restricted to choose particular option only when user is trying to upload something..!! For example if user is uploading image..he only see 2 options JPG and GIF format in file type option of Browser Window..!! How can i do the same … | |
Hi I want to prompt the user to enter the date dd/mm/year and use this later as part of filename and later as object in file(if this helps searching). Does using datetime ensure that user input will be a valid input? I would like the output to be year-mm-dd My … | |
got a api from an sms provider that looks like this CODE [url]http://www.frihost.com/api/send_sms.php?user=xxxxpassword=xxxx&to=1234&from=xxxx&content=hello&content_type=text[/url] am writing a php file for my sms site to send message so that the output would give something like the one above. Here is a look at my code: [CODE]<?php session_start(); include($HTTP_SERVER_VARS["DOCUMENT_ROOT"] ."/includes/config.inc.php"); if(isset($_SESSION['user_id'])){ $user_id = … | |
Hi, I'm having a slight problem on my home page. Depending on if the user is logged in or not depends on what navbar they see. However, even if the user is logged in - it will sometimes tell the user he is logged out. If you refresh the page … | |
my code is: [CODE] import urllib import urllib2 import re #get URL urla='http://www.sc.iitb.ac.in/~bijnan/personal-details.htm' #connect to this website request=urllib.urlopen(urla) #get html file from this website html=request.read() #get the address from above html file print html [/CODE] How can i find all his addresses in this html,can use the re.complie() method to … | |
Hi I am trying to find out a way to swap two nodes in an unordered linked list. I want to find out a way where i can change the links of the two nodes so they are swapped. I know I am supposed to use the previous and next … | |
[CODE]#include <iostream> #include <cmath> using namespace std; int n; void main(){ cout<<"input the number of students: "; cin>>n; double *scores= new double[n]; cout<<"enter the scores of the students: "; for( int i=0; i<n; i++){ cin>>scores[i]; } double sigma,sigma2, mean, strDev; int ii; for (sigma=ii=0;ii<n;ii++){ sigma+=*scores; *scores++; mean= sigma / n; … | |
For weeks I've been using the same code without any problems. I call SIGNAL within a thread and it's working like a charm. Then I bring the same module home to the same environment (Ubuntu Jaunty, Python 2.6) and now I'm getting this error: ValueError: signal only works in main … | |
I am writing an interface program for a remotely controlled vehicle. I need help in getting a code to access the parallel port from the program. i.e generate some outputs at the parallel port for a particular keypress. | |
I'm trying to INSERT a zip file into an MSSQL table. The table structure is such: [CODE]CREATE TABLE [dbo].[zips]( [id] [int] IDENTITY(1,1) NOT NULL, [timestamp] [varchar](50) NULL, [inserted] [varchar](50) NULL, [filename] [varchar](50) NULL, [raw_file] [varbinary](max) NULL ) ON [PRIMARY][/CODE]...nothing too fancy. When I insert a text file, everything is well … | |
In VB.net (2008 or 2005), how can I ping a website (like for example [url]www.bigtreeworld.com[/url]) and store the website's IP address to a string? | |
I play this game called GunBound, and have a nice C++ script for it. But I need a function that can help me do the following: [CODE]int x=390; int y=450; for(int i = 0; i == 0; x++) { if(scanpixel(x, y) == YellowColor) i++; }[/CODE] I need to get the … | |
Okay, I'm a little confused - this code works perfectly fine in mysql; however, in php it keeps repeating the first person for about 15 rows. Can someone point me to what I'm missing here. [code] $queryUsers = "SELECT user_id, zipcode, gender, housing_status, active, username FROM users WHERE user_id != … | |
This is the error I have been receiving when trying to compile my code: [QUOTE]blade71(45)% gcc -o trim trim.c Undefined first referenced symbol in file getline /var/tmp//ccYdyoM3.o ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status [/QUOTE] My source is only a rough … | |
Hi All, Been looking for a way to programatically mount ISO files in C#. Im aware I can use daemon tools etc. to do this by starting it with command line switches. Id like to be able to allow the users to mount without installing extra software. MS has provided … | |
The file "airports.csv" contains [U]12 pieces [/U]of info per line - separated by commas: [B]BIN,"Bamiyan","Bamiyan","Afghanistan","AF",34.800000,67.816667,701,"Afghanistan",\N,\N,1149361[/B] (there are 3 such lines for now) How do I modify my program to take the 1st, 3rd, 5th,6th,7th pieces of info per line and store them in an array- ill later use that array … | |
Hi: I never set up a 2D array in the past and I am trying to do it now. I have a program that reads a 1 line text file and after reading it makes some calculations. After this I made some changes to my code trying to make a … | |
hi every1 i am doing my final year project next year and i have decided to do something in java but cant think of it. does any1 have an idea of what to do thanx :) :o :surprised :confused: | |
If possible could you please take a look at this image/tileset and see if its possible to draw a 2x2 tile map with each of the frames in that image correctly mapped onto the quads in the tile map. The idea is to go on and use this as a … | |
in want to edit the code in such a way tht the user can enter upto 10 values maximum..need help pls ... [CODE] #include <iostream> #include <iomanip> using namespace std; struct node { int info; struct node* next; }*front,*rear; void enqueue(int elt); int dequeue(); void display(); void main() { int … | |
This is content of in.header.php [code] if(!isset($session_id) || empty($session_id)) { session_start(); $_SESSION["Inputs"]=array(); } [/code] This is index.php which also has form objects that POSTs other values to step1.php [code] require_once 'inc.header.php' $_SESSION["Inputs"]["name"]="MyName"; $_SESSION["Inputs"]["surname"]="MySurname"; [/code] This is step1.php [code] require_once 'inc.header.php' $_SESSION["Inputs"]["age"]=$_POST["textboxAge"]; print_r($_SESSION["Inputs"]); [/code] Problem is print_r prints only [inlinecode]Array ()[/inlinecode]. … | |
I am new to c++ and I'm kinda struggling. I'm trying to write a program to guess a number that the user inputs. The program should guess a number then the user should be prompted if it is too high or too low. then the program should guess again, intill … |
The End.