64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for piers

I have to do a really strange thing. I have to take a string of 2 words and then separate it and put it into two other strings eg String name = "fred blogs"; move the part of the string name which says fred to the String firstname so it …

Member Avatar for Parsu7
0
156
Member Avatar for Carlo Gambino

I am working to increment lists in such a way that each item in the list is incremented incrementally, it sounds confusing but its not: If the user inputs: [CODE]list = [1, 2, 3, 4] [/CODE] I want the output to be: [CODE]2, 4, 6, 8[/CODE] in essence, the first …

Member Avatar for jrcagle
0
143
Member Avatar for Danii

while (firstNodeNeedsToGo(text)) { removeFirstNode(); nodeRemoved = true; } can someone rewrite this while loop into an if - then loop or any other code you have , this will help greatly toward my upcoming test

Member Avatar for VernonDozier
0
102
Member Avatar for RMartins

does anybody knows why this function doesn´t work very well: f=lambda n: reduce(lambda x,y:x**2+y**2, map(int,str(n))) I want that this function add the square of the digits of a number an example of what i want: f(442)=4**2+4**2+2**2=36 and it's giving me f(442)=1028!!!:S However fou numbers with 2 digits the function works!

Member Avatar for Ene Uran
0
169
Member Avatar for Danii

boolean removedlNodes = false; what is the point setting this type boolean = false? Nodes = Nodes | NodesWithText(text); what does this " | " means here ? thanks in advance

Member Avatar for Parsu7
0
83
Member Avatar for whoisit

I am building on a previous thread which got the user name by now asking for password as well. But for some reason it doesn't work, it jumps right to the default. Thanks for looking Here is the code [code] <?php $usern1 = Joe; $pass1 = abc; $usern2 = Jim; …

Member Avatar for richie513
0
141
Member Avatar for Spartan552

Hi ! [QUOTE] (A & 0xFF)[/QUOTE]. What does this mean? I have to optimize a program, here is the code : [QUOTE]ret += ((long) data[index + i] & 0xFF) << ((nb - 1 - i) * 8);[/QUOTE] An image is stored in the array data... whenI remove & 0xFF, It …

Member Avatar for bugmenot
0
225
Member Avatar for dnk
Member Avatar for dnk
0
116
Member Avatar for Jennifer84

I am trying to use a radiobutton that I have attached to a from in VC++ .NET 2008 I have Named the RadioButton "BuyRadio". From what I know a radiobutton can have to stated, either true or false, wich meen pressed or not pressed. What I am trying to do …

Member Avatar for Jennifer84
0
163
Member Avatar for Squeeker

Are call by reference functions of type int or double legal when using an ifstream or ostream argument? Example: [code]int afunction(ifstream& in, int anumber) { /* Function Body */ } [/code] If this is/isn't legal please explain. Thank you for your help. -Arielle

Member Avatar for vmanes
0
141
Member Avatar for arun.gerrard

can someone teach me k-maps and boolean algebra.... also give me the links to some ebooks which explain the basics of k-maps if u find any.

Member Avatar for arun.gerrard
0
561
Member Avatar for fgn89

How do I make it show text? I'm completely new to this, my dad's wanting me to make this customer display screen show text, which on paper should be easy.. It's a WD-202 model, pretty common customer display pole, I've called a friend for help and he told me to …

Member Avatar for Ancient Dragon
0
154
Member Avatar for implor

I have a string that loks like "u'mystring'". i'm wondering if ther is a easy way to remove the u'' part of the string?

Member Avatar for jrcagle
0
17K
Member Avatar for jeffige

First let me say sorry to all the experts out there. I just don't know where else to turn. A friend of mine who was teaching me c, even set up borlands compiler for me on my laptop, quit the tour that I am on. My old laptop crashed I …

Member Avatar for Ancient Dragon
0
114
Member Avatar for Jennifer84

Is it possible to have a comboBox set to "Readonly" as you can have for a TextBox in VC++ 2008 .NET. I have looked at every properties for the comboBox and I cant find anything like this.

Member Avatar for Jennifer84
0
132
Member Avatar for mrjoli021

I am fairly new to c++. What is the diffrence between ATL, CLR, or MFC and for what are they used for.

Member Avatar for Ancient Dragon
0
205
Member Avatar for flower88

Hello I need help in microsoft access. I am creating an electronic database so i need 2 events, 2 resources and 2 agents for example event (order) resources (product). and i also want to know how do we link the table with each other i am talking about relationship Thankyou …

Member Avatar for Sulley's Boo
0
98
Member Avatar for smiles

I am programming for a microcontroller using CCS compiler (which based on C language) My code is pressing button to select a specified time then using that time to switch on and off a lamp, for e.g The value I got when press button is an int, with 0x31 stand …

Member Avatar for smiles
1
151
Member Avatar for mrjoli021

I wrote a class and I want to give it to someone to use, but I dont want them to have access to the source code. My class is split into 2 files a .h and a .cpp how can I block them from seeing the cpp file only the …

Member Avatar for mitrmkar
0
114
Member Avatar for Orbit2007

Okay, here goes. Learning PHP and am having trouble building a program that would let a client insert inventory in the database without having any knowledge of MySQL or PHP. Here is what I have so far: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; …

Member Avatar for Sulley's Boo
0
128
Member Avatar for whoisit

First of all, I've just joined, so Hi to everybody. I'm also just starting to learn php, I have what I thought would be something simple but I keep getting this error Parse error: syntax error, unexpected T_STRING in /home/sites/poem-n-verse.co.uk/public_html/votes/process.php on line 8 Here is the code that I'm trying, …

Member Avatar for nav33n
0
139
Member Avatar for werks

The picture does not display, is my code wrong? please help [CODE=asp]<tr> <% Response.Write("<td><img src=Books/" & varAccession & ".jpg class=picA width=200 height=150 /></td>") %> </tr>[/CODE]

Member Avatar for werks
0
93
Member Avatar for Moporho

Hello, I am trying to create a program that asks a user to input a integer. That integer will dispaly "*" (i.e. enter 4 diplay - ****) This is what I came up with so far to no luck! [code]#include "stdafx.h" #include <iostream> using std::cout; using std::cin; using std::endl; int …

Member Avatar for Moporho
0
101
Member Avatar for StepIre

Hi Guys, I have a nested dictionary that i would like to be populated from a file at the start of my prog and put back into the file at the end of the prog. Could anyone direct me to somewhere where i could get info on how to do …

Member Avatar for StepIre
0
130
Member Avatar for Jboy05

How do I go about writing a user-defined function named Get_Inputs that when called, the function will prompt for three integers and send these numbers to its calling environment.

Member Avatar for Jboy05
0
105
Member Avatar for jino

Dear Friends, I am happy to join in this team. I need a help in deciding the best open source PHP editor which supports Linux and windows. The features I am looking for are : User friendly, Syntax helping, display the list of procedures/functions just by typing first letter, auto …

Member Avatar for Dsiembab
0
74
Member Avatar for TobbeK

I thought this was a simple task to do, but not. I just want the option stay selected when a value from the session variable exists, AND it does after the form has been submitted. So why can't the option value stay selected as long as session is populated. If …

Member Avatar for TobbeK
0
366
Member Avatar for c++ prog

can anyone suggest any website that will help me a lot on creating a simple chatbox? tnx

Member Avatar for Jx_Man
0
306
Member Avatar for Monk_knoM

Hi, I have created a module to calculate a level when given a score. How do I send the calculated level back into my main form? Thanks in advance

Member Avatar for Jx_Man
0
93
Member Avatar for bhuvanee

Please help me.. I ve a problem in integrating Nokia Emulator to Netbeans.. I ve installed s60_3rdEdition_MIDP_SDK..BUT I am unable to add this emulator to Netbeans..can anybody help me.. Regards, Bhuvana

Member Avatar for rick222
0
298
Member Avatar for kv79

Hi all, I am learning VB 6 and i a just a beginner and i need to know some programs who is made it i VB 6 so that i can have a reason why i am learning. If you can send me some pictures or some kind of program …

Member Avatar for choudhuryshouvi
0
195
Member Avatar for emilio

hello i would like to perform a method overloading with inheritance my code is : [CODE]public abstract class Shape { protected Point position ; public Shape(int x, int y) { position = new Point(x , y); } public void show() { position.show(); } } public class Rectangle : Shape { …

Member Avatar for Ramy Mahrous
0
122
Member Avatar for cosmos22

Hello, I would like to pose a very simple question, does anyone know how to clear the command window of text, and give it a name(Eg. Cosmos's Program) I would like to make room for different lines of text in my program, and also give it a name, for obvious …

Member Avatar for cosmos22
0
149
Member Avatar for Oxiegen

Hi, all! I'm trying to send a HttpWebRequest to an url that, other than %20, does not take escaped characters. But for some reason, when I do: [ICODE]_HttpWebRequest = DirectCast(System.Net.HttpWebRequest.Create(New Uri("http://web_address")), System.Net.HttpWebRequest)[/ICODE] I end up with an escaped uri string. For example, a string containing the swedish letters ĂĄ, ä …

0
301
Member Avatar for kings

hi i have a dynamic table.i want to rows in alternative colours $nr0 displays the no of rows fetched [ICODE]while ($row=mysql_fetch_array($rs)) { ///////////////////////////////////////////////////////////////////////////////// //This is used to show the serial number on the page as well as to count it up //so that we can get the next page's starting …

Member Avatar for nav33n
0
84
Member Avatar for s1986

:icon_question: i have a button in my web page and want it to print sumthing when clicked hw do i do it? i tried using window.print() but it doesnt work

Member Avatar for s1986
0
68
Member Avatar for leokuz

Hello! I m struggling with this button and/or code to work. The button with Process.Start opens any folder I want if I do not use Ifs and Elses, but I do need to open folder based on user selection of name in the combobox and one choice from two radio …

Member Avatar for cometburn
-1
775
Member Avatar for vs49688

Hi. I am trying to make a program that will launch restricted user-specified programs at my school. How would I make the system() function below make use of the two variables in it. I've tried && and ||, but the bugger wont work. [code] #define runasc "runas /profile /user:tsc\\staffuser" system( …

Member Avatar for Nick Evan
0
106
Member Avatar for scorpionz

Hi this is Scorpion I have create 5 pages on PHP and 1 login Page. Now the issue is that if user didnt login to the Website, then he cannot view those pages and simply he/she must direct to login page if click to other categories of Page. I have …

Member Avatar for nav33n
0
183
Member Avatar for cnoob3610

Hello all. Sorry to be a bother but I cannot figure out what is wrong with my homework program that's due before midnight. The assignment is to create a program with a two-dimensional array that generates a random walking path. I'll list the assignment as it is probably clearer. [I]Write …

Member Avatar for cnoob3610
0
114
Member Avatar for Jennifer84

I am trying to use ifstream to read from a file. When you use ifstream you have to specify the path like this. [code] ifstream Symb("Folder1\\Folder2\\File1.txt"); [/code] Instead of specifying like that, I will find a variable Text from a comboBox like the code below. Path has the string: "Folder1\\Folder2\\File1.txt" …

Member Avatar for codeaa
0
839
Member Avatar for Jboy05

I need help fixing this I help getting errors #include <cstdlib> using namespace std; void show_word (string); int main () { show_word ("hello"); system ("PAUSE"); return 0; } void show_word (char); { char InName; cout << "Enter your name " << endl; cin >> InName >> endl; show_word ("hello"); show_word …

Member Avatar for Jboy05
0
111
Member Avatar for Jennifer84

I am trying to get the text that is choosen in a comboBox. I have tried these codes but no of them are working. What am I doing wrong here ? [code] std::string Text; // I have tested all 4 of these and this will not compile. //I belevie it …

Member Avatar for Jennifer84
0
193
Member Avatar for Jboy05

Consider the following user-defined function: [code]void Quick_Change (int x, int & y) { if (x == 0) y = 10; else if (y == 0) x = 10; } [/code] Assume the values in variable A and B are both of int type. How do I find what the values …

Member Avatar for Jboy05
0
97
Member Avatar for hallinan

Need help I wont to get a system date as integers such as(22/02/2008) rather than string cause I need this to compare two dates any ideas?

Member Avatar for Dave Sinkula
0
86
Member Avatar for vesper967

no idea what to do about this error =/ [code]#include <stack> #include <string> #include <iostream> #include <fstream> using namespace std; int main () { stack<string> stack; ifstream inFile; string consoleStr = "Enter Filename>> "; string fileName; string word = ""; char c; cout << "Welcome! Enter filename or quit to …

Member Avatar for prushik
0
1K
Member Avatar for mrjoli021

I wrote a class in vs2008. I am creating a new project and I need to incoporate that class into it. How do I do that. I added the .h to the header section and the .cpp to the source file. In the new program i did #include "firstclass" but …

Member Avatar for Nemoticchigga
0
125
Member Avatar for cbattagler

At this point I am trying to get data from a std::list or std::vector. I push_back the object from a pointer into the list and go on my merry way, I do this until I get to the point I want (which is working at the moment) but then when …

Member Avatar for cbattagler
0
106
Member Avatar for plgriffith

Ok, I know C/C++ really well, but just started Java today and am having an issue. I have an assignment where I have to ask the user how many names he wants to enter, and then have him enter all of the names. After all of the names have been …

Member Avatar for Ezzaral
0
110
Member Avatar for dwlamb_001

I'm a newbie to PHP and arrays are giving me a problem. I'm converting BLOBs of data from a MySQL database. Each of these BLOBs is the body portion of HTML files I'm converting to XHTML. Mainly, I'm checking <p> tags for case and closing tag. There are over 500 …

Member Avatar for nav33n
0
150

The End.