199,114 Archived Topics
Remove Filter ![]() | |
![]() | Hi During my Web browser program i have got a bookmarks bar running but when ever i add a bookmark to it the name is the URL, which is bad if you are adding a Google search page. When i try and add document title into the equation apparently i … ![]() |
![]() | Hello, During development of one of my projects i have a tool strip bar when the user clicks a button the tool strip button = a URL of a website. but if the URL is a Google search page the text would be very long and you would only be … ![]() |
Hi all I've just downloaded the Visual C++ express 2010 from the microsoft website. but when i try to compile and run the program, it says: "Unable to start program 'C:\Documents and settings\Indrajeet Roy\My documents\Visual Studio 2010\Projects\First Prog.c\First prog.c.exe'. The system cannot find the file specified." What do I do … | |
I have a new project deal in hand. The project is to make a web application interface to collect a huge information about people in a particular area. For example, In Film world,s there are director,camera-man, screen writer etc. So the project aims to build a database back end with … | |
Hello guys.. I have this makefile: [CODE=c] MyMatrix: MyMatrix.o gcc MyMatrix.o -o MyMatrix MyMatrix.o: MyMatrix.c gcc -c MyMatrix.c MyStringMain: MyString.o MyStringMain.o gcc MyString.o MyStringMain.o -o MyString -o MyStringRun MyStringMain.o: MyStringMain.c MyString.c MyString.h gcc -c MyStringMain.c MyString.o: MyString.c MyString.h gcc -c MyString.c .PHONY:clean clean: rm -f *.o test.out [/CODE] For some … | |
Hi, I have a complex C++ code with gui. Each major gui division is independent class. Now these classes must 'talk' sometimes in operations like copy from division A and paste in division B. So I need to pass some pointers from one class to another. I was thinking of … | |
Hello, Having trouble with a program for school. Prof gave a shell that has color declared as static. Here is what I have so far. [CODE]class MyRectangle { private double width = 1; //private class instance fields private double height = 1; private static String color = "white"; public MyRectangle(){ … | |
Greetings All, I've been banging my head over this problem for some time, any advice would be greatly appreciated. I have 5 strings that are pulled from the database. The strings are dynamic so their lengths will vary. I want to place those five strings in a richtextbox control, which … | |
hello everyone hope all ok i'm facing a problem in Netbeans in that when compiling no error exist but when running nothing happen or displayed, can anyone help me in it plz | |
[CODE]<cfquery name="Sort" datasource="JD8989776555"> SELECT * FROM ResMenuItems ORDER BY "ItemOrder" ASC </cfquery> <p>Output</p> <cfoutput query="Sort"> #ItemOrder# - #ItemName#<br /> </cfoutput> <p>loop</p> <cfloop query="Sort"> <cfoutput>#ItemOrder# - #ItemName#<br /></cfoutput> </cfloop>[/CODE] I am honestly not joking :S That code there, is here : [url]http://jadedragon-co-uk.securec12.ezhostingserver.com/admin/MenuManager/TEST.cfm[/url] | |
this comes when i try to open the php files. Don't know what happen here is my code: function verifyAlphaNum ($teststring) { return (eregi ("^([[:alnum:]]| - |\.| |')+$", $teststring)); } $valid = verifyAlphaNum ($username) if (!$valid){ <<<<<<<<<<<<<< here come the error $error_msg[] ="Username must be letters and number"; } thx | |
Hey all. So I'm attempting to include mouse gestures as a part of a GUI I'm designing. I'm using the following code, and it works great HOWEVER only when the gesture is draw away from widgets/controls (such as buttons, statictext's, etc). If I start a gesture and cross the path … | |
Hi all, I need to have a program to word count remove punctuation and sort it in alphabetical order. I had done the word count portion but i am lost in removing punctuation and sorting in alphabetical order portion. Hoping to get some help. [code] #include <fstream> #include <iterator> #include … | |
First I'd like to say how much I appreciate these forums. They have helped me before, but this is the first time I've posted a question myself. My problem is that I use a different IDE than my teacher does (probably not the best idea) so I want the program … | |
Hi, i've a search and when i click button to submit the page, it's not getting redirecting to search page as in code instead its loading the same page. The page in which search is present contains validation controls. I think its cos of that its happening. search is working … | |
I have this code as part of the action that sends details to admin and user who have registered... However, I would like the email to be sent also to other address based on the selection in this field..(sectorID) the form has 9 sectors, I.e. [LIST] [*]sector ID 1 [*]sector … | |
Why won't this output my string vertically? THanks in advanced, bookmark. [CODE]#include <iostream> #include <string> using namespace std; void print (const string & s); void main(){ print("blah"); system("pause"); } void print ( const string & s){ int i; int clrscr(); for(i=0;i<4;i++) { cout << "\n %c", s; } } v[/CODE] | |
I seem to be very bad with playing around with pointers. Basically the specialization template is supposed to return the address of the longest of the 5 strings provided. I keep getting an error on line 20 about char vs char *. Please some help, a good explanation on the … | |
I am having a similar issue [CODE]// Exc_3.cpp - Testing string with refernece #include <iostream> #include <cctype> #include <string> #include <cstring> using namespace std; string lowerToUpper(string & ref); int main() { string str; string constant = "q"; cout << "Enter a string (q to quit): "; //while (constant != getline(cin, … | |
ok so I have to make that toggleCircusStatus() gives me the opposite of fromCircus [QUOTE]Write a public method called toggleCircusStatus that negates the value of the circusStatus variable.[/QUOTE]] [CODE] public class Elephant extends Mammal { private boolean fromCircus; public Elephant() { super(); fromCircus = false; } public Elephant ( String … | |
How can I check if an input is a String of alphabet characters..not int double etc etc... | |
Greetings. Tell please function PHP5 which defines presence of the end of a line (like !feof - for the file end). Thanks in advance!) | |
Hi, I am trying to make a Picture viewer for my BS Computer Science 1st Year Project in [B]Turbo C Compiler[/B]. I have to stick with this compiler atm. I want to be able to display BMP,PNGs and JPEGs [TIFF and others too if it won't be very difficult]. I … | |
Hello Everybody, I am a beginner, I am got stuck with following error at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) … | |
anyone here can help me to make and sample codes for class variable and class methods using the static keyword in vb.net.. thanks | |
I keep getting these errors in the program below. Here is the assignment: http://www.people.vcu.edu/~dprimeau/cmsc255/fall10/fifthprogram.html C:\Users\FerretFool0x77>javac Person.java Person.java:43: illegal start of expression public void recordpersonsinhousehold(int x){ //created 11/16/10, modified 11/19/10 ^ Person.java:43: illegal start of expression public void recordpersonsinhousehold(int x){ //created 11/16/10, modified 11/19/10 ^ Person.java:43: ';' expected public void recordpersonsinhousehold(int … | |
i currently am throwing an exception in my constructor of my class and i read that when u do such a thing, the objects destructor is never called! meaning if i allocate any memory without using the heap, i have to MANUALLY deallocate the memory myself. An article i read … | |
Below is the program for swapping variables without any extra variable. [CODE] #include "stdio.h" #include "conio.h" void main() { int a=7;b=5; clrscr(); a=a+b; b=a-b; a=a-b; getch(); }[/CODE] | |
Hi all, I have a silly question regarding how to translate this command in CMakeLists.txt g++ x04.cc -o demo -lplplotcxxd x04.cc is c++ file , information about lplplotcxxd can be found here [url]http://ubuntuforums.org/showthread.php?p=8538977[/url] since the command " g++ x04.cc -o demo -lplplotcxxd" is working on my computer so I think … | |
I have a registration page and I want to validate the e-mail address. I'm having an issue with line 14 in particular. (I used a combination of several tutorials to make this). [CODE]<?php include("db.php"); if (isset($_POST['username']) && isset($_POST['password']) && isset($_POST['email'])) { $username = mysql_real_escape_string($_POST['username']); $email = mysql_real_escape_string($_POST['email']); $result=ereg("^[^@ ]+@[^@ ]+\.[^@ … ![]() | |
What is the proper way to use sessions? I have a forum on my site which I've coded from scratch but I've not been using sessions for the users and instead I've been using just cookies to determine if they're logged in or not. I know my current way isn't … ![]() | |
[CODE] #import <iostream> #import <string> #include <fstream> using namespace std; //The phonebook itself. class Book { public: int people; //The information for a person. class Person { public: string firstname, lastname, phonenumber; }; //Returns 1 if Person1 comes before Person2, 2 if Person2 comes before Person1, and -1 if they … | |
Hi, this is my first time posting and I would like thank everyone in advance. I'm doing a homework assignment that requires me to design a teller application which simulates a bank. I'm currently getting a segment fault, after I call one of my getBranch(). I've tried to do this … | |
I've finished a void display function for an in-game menu. I'm trying to have the menu stay at the top of the cmd for the length of the game. However, since it's a separate function, the program stays in the menu function, and never reaches the functions that follow it. … | |
![]() | I have been tearing my hair out over this, and I have written and rewritten the code over and over again. If I can get some kind of direction or where to start, it would be awesome! I put something down there that I have tried for one of the … |
Hi I have 1.database already set up with around 5000 products with all fields required. 2. create a page template with query code and code to echo out the results of the fields of a product. I now need to know how to make each product from the database produce … | |
![]() | A short semi fast flood fill. If anyone has trouble with this, please post. I'm about to run it on 10+ million shapes. There always seem to be a few unique situations where something doesn't work. Public Sub Fill(ByVal bmp As Bitmap, ByVal pos As Point, ByVal color As Color) … ![]() |
Hey Guys, I am trying to improve my PHP/MySQL skills and need to find a good dvd or cd-rom. I feel that I learn best from video tutorials, I watch the youtube videos but want to buy a couple good dvds with real world techniques. Let me know if you … | |
Can someone look at this code and tell me why I am getting errors and warnings. I have everything just like the book says but it doesn't work. Here is the code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Class-level declarations … ![]() | |
Wrote this program to find if 2 phrases are Anagrams of one another. Works except that I need to make it ignore any other character than letters(including spaces) As is now I get 4 errors, all in that last boolean 1&2: cannot find symbols for phrase1/2.length (tried anag.phrase and didnt … | |
Hi guys I'm trying to take a user input (name) and replicate the input in other methods. Can anybody help? Here is the code: [CODE]import javax.swing.JOptionPane; public class example { public static void main (String[]args) { entername(); } public static void entername() { String a=""; a = JOptionPane.showInputDialog("Welcome. Enter name … | |
[CODE]dict = {'ENSTRUT00000047813': '1680', 'ENSTRUT00000047812': '2067', 'ENSTRUT00000047811': '2067', 'ENSTRUT00000047810': '2088', 'ENSTRUT00000047814': '738', 'ENSTRUT00000047808': '2208', 'ENSTRUT00000047809': '2001'}[/CODE] I want to find out the key with max value from the dict I am using the [CODE] protein = max(dict.iteritems(),key=operator.itemgetter(1))[0][/CODE] but it will give me results as [CODE]'ENSTRUT00000047814'[/CODE] though i know that it … | |
I have a macro that uses "If Then" to choose what macro to run based on the ActiveCell. I would like to use the Select Case method instead, but need help to do it. How would I change this code? Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) … ![]() | |
Hi all. I am having trouble with my code. I have played around with it for a while, and I just can't seem to get it. The only thing I am having trouble with is it getting to output the a.m. and the p.m. correctly. [B]it always outputs p.m. no … | |
I am working on a program that reads students name and test score from a file. The program should assign the appropriate letter grade, then output the name score, and grade. It should also determine the highest test score. I do not see where my errors are. Please help! [CODE]// … | |
Can anyone please help me as i am new to python, i have a requirement for a cascaded menu(which should be dynamically built). The cascaded menu should have new at all levels and when the user clicks on new it should ask for keyword and when done it should add … | |
hi i need help to write two different functions the first one is to displaysquareroots that asks the user for a number n, and displays the square roots of the number from 1 to n and to 3dp so if the user enters 3 it displays the square root of … | |
Hey everyone, Brand new to javascript and had a, hopefully, quick question. I have pulled a date from our database in the form of mm/dd/yyyy, and would like to convert this to a Date object type. To do this, I have parsed the string to switch it to the following … | |
Hey! I've got a SELECT query which fetches rows based on a search string using LIKE command. I was wondering, how could I make it to skip "The " from the beginning of the value? For example, I have TV series listed in the database, like "Futurama", "The Office", "The … | |
I do not want to have my box this wide. I would like the text to wrap but I do not know how. Can I do this? I'd like my box to be 400,400 rather than 1250,200, but it is the only way I can get my text to fit. … |
The End.