64,152 Solved Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 | |
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! | |
boolean removedlNodes = false; what is the point setting this type boolean = false? Nodes = Nodes | NodesWithText(text); what does this " | " means here ? thanks in advance | |
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; … | |
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 … | |
Does anyone know how to use data to call access database ?? | |
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 … | |
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 | |
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. | |
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 … | |
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? | |
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 … | |
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. | |
I am fairly new to c++. What is the diffrence between ATL, CLR, or MFC and for what are they used for. | |
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 … | |
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 … | |
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 … | |
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; … | |
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, … | |
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] | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
can anyone suggest any website that will help me a lot on creating a simple chatbox? tnx | |
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 | |
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 | |
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 … | |
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 { … | |
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 … | |
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 ĂĄ, ä … | |
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 … | |
: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 | |
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 … | |
![]() | 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( … |
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 … | |
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 … | |
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" … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.