199,114 Archived Topics
Remove Filter ![]() | |
[CODE] #include <iostream> #include <sstream> using namespace std; int main() { int a, b; string s = "34:22"; istringstream ins; ins.str(s); ins >> a >> b; cout <<a <<b; } [/CODE] This is my code and I want to ignore the ":" in string s. The outpout should be 3422. … | |
We all know that the sum() function in python only takes two arguements, so i created a function in python that will take any number of arguements and add them together, just like the sigma letter in greek. Awaiting your replies on this one. | |
Hi all, I wrote a program that has many functionalities but I can not swap 2 elements of 2 nodes in the linked list.Actually I can swap 2 nodes by changing their links but I can not swap 2 elements when the user requested 2 elements swapping.Here is my code … | |
I am currently nearing the end of the final unit in my A - Level computing course in which we are developing a system for a company. My choice of system is a KML generator which creates placemarks with details on rescues. I have developed a working KML and GUI … | |
Hi How to increase the object life time in c#.net? Cheers, Ramesh.KR | |
AStar code: [code] path.Clear( ); // Rensa listan, när GeneratePath-metoden kallas så betyder det att vi letar efter en ny väg pathNode = -1; while ( true ) { // // Console.SetCursorPosition( 0, 0 ); // Console.Write( new string( ' ', 50 ) ); // Console.SetCursorPosition( 0, 0 ); // … | |
hi, i have 2 different user ~which are admin and instructor ,the admin successfully log in to admin.page and it will showing their name ,the instructor login in to instructor.page will showing their namr also.hope can help thx!! [CODE]<form id="form1" name="form1" method="post" action=""> <table width="280" height="66" border="2" cellpadding="2" cellspacing="2"> <tr> … | |
Alright - this is my conundrum. As a noob to C++ I am only in chapter 9 of my book, having just covered object oriented programs and the exciting world of vectors and arrays. I have an assignment that asks me to run a loop to get and calculate a … | |
iam facing a problem ,i want to add a form to my project from another project,when i add the form and try to run it give me error,i dont know what is the problem i have added its module and database also but still giving me [COLOR="Red"](ERROR:Run time error 3709 … | |
Hi, i need to find the max value of ArrayList<ArrayList>. I don't know whether it is possible or not? Can anyone please give me some suggestion. Any help from you will highly be appreciated.... Thanks. | |
what is the role of session and why do we need session in asp.net please ellaborate | |
[B]i have developed a c# project now i have to make it an Exe so that i can install it on any system and run it... the bin which contains the exe only runs in the system which has .net installed and does not executes where there is no .net.... … | |
![]() | [CODE]$data = "email@yahoo.com,go@gmail.com,example@example.com"; list($email1, $email2, $email3) = explode(",", $data); echo $email1; // email@yahoo.com echo $email2; // go@gmail.com [/CODE] Pretty perfect but my problem is I don't know how many email addresses will be inserted by a user. He can input just 1/2 or even 30/40. So the style of below … ![]() |
Hi there basically i am working on my year 12 project. my client is a company who takes orders from its customers, on a amstrad emailer phone. i need to develop a python program that automatically copies and paste's the caller number from the amstrad emailer to my main program … | |
Hello! I'm fairly new to HTML and CSS, but I have the concepts down and I can do many things. I also know some very basic XHTML. I am looking to learn Javascript, mainly so I can do an effect like the advertisement that drops down on [URL="http://www.knabstruppers4usa.com/index.php"]this[/URL] website. I … | |
Using borlandc [CODE]#include <stdio.h> #include <conio.h> #include <dos.h> #include <stdlib.h> #include <iostream.h> void main() { clrscr(); char x1,x2,name,add,email,occupation; int age,cellno; printf("\tWelcome"); printf("\n\tto"); printf("\n\tVideo City"); printf("\nMembership Registration"); printf("\n\t\tA.New"); printf("\n\t\tB.Old"); printf("\nChoose:"); cin>>x1; clrscr(); { if((x1=='a')||(x1=='A')) { printf("\nRegistration Form"); printf("\nName:"); scanf("%s",&name); printf("\nAdd:"); scanf("%s",&add); printf("\nemail:"); scanf("%s",&email); printf("\nAge:"); scanf("%d",&age); printf("\nOccupation:"); scanf("%s",&occupation); printf("\nCell No:"); scanf("%d",&cellno); clrscr(); … | |
I am designing a lot of TCheckBox at runtime, and uses mathematical formulas for placing these in columns and rows afterwards on a form. I assign an on click event that is exactly the same on all of them, and everything work, except... Color. My OnClick event is made like … | |
Hello, i have to write a piece of code that allows me to open a txt file which then tells me the amount of each letter there is in the document. However i have this code which opens the document but instead of telling me how manu letters it lists … | |
when i click on my jar folder,nothing happens, i also tried opening by using command prompt .no use plsss help me | |
I need help. I have a project that I have to hand in within 3 days. My mind goes blank everytime I read the requirements, This is the question: You are required to create 15 random strings. The user should then be asked whether he wants these strings sorted in … | |
Hello, I am trying to make a constant iterator data structure, I have a normal Iterator data structure done, but I'm a little stumped with the const iterators.. can you please point me in the right direction? This is my data structure for the iterators: [CODE] template <typename T> class … | |
I am having records in a field (field_id) of a table (in mysql database), which is having ID stored per line, for example [B] 1 2 3 10 11 13[/B] above is one record, and I have many records similar to that. and, when I am writing the query [B]SELECT … | |
Hello! I want to know exactly What Is [COLOR="Green"]Difference[/COLOR] Between The [COLOR="Red"]FileFilter[/COLOR] and [COLOR="Red"]FileNameFilter[/COLOR] in java.io.*; Do they both work the same ? Please answer ....... [B]-> {Pratik Bhatt}[/B]:) | |
Hello to all, I got problem in my vb.net program in publishing it. I am using Microsoft Visual Studio 2008, when I publish my program and I got the setup file and when i tried to run into another computer I got some error saying that it cant connect into … | |
Hello Everyone, Specifications:- Yahoo Small Business Domain. MySQL Version:- 4.1.14 phpMyAdmin Version:- 2.11.9.6 The problem I'm facing is that I've a created a database in phpmyadmin and there are two users:- one is the username I created for myself and the other is yroot. I can't grant the username I … | |
Write a program in c++ that read two files A.txt and B.txt, and find all words which are in file A.txt but not in file B.txt. Input: A file containing large text. The file may contain any number of words. | |
I am having records in a field (field_id) of a table (in mysql database), which is having ID stored per line, for example [B] 1 2 3 10 11 13[/B] above is one record, and I have many records similar to that. and, when I am writing the query [B]SELECT … | |
Hi, I'm currently trying to store all the text in text area into a txt file in directories using java. I know how 2 use mkdirs() to create directories, for example C:/d1/d2, but if i type [CODE](new File(C:/d1/d2/sample.txt)).mkdirs()[/CODE] it makes the txt file into a folder too. I tried with … | |
hello to all, i got some problem in vb 6 in reports. actually i tried to create a simple ordering system, and i used ms acces for my database, now the problem is that when i generate a report it will show the first data of the row of the … | |
I have 2 projects. I'm using VC++ 2010 express. The first is a static library which generates a lib file called stdlib.lib. The second is a dll project which links to stdlib.lib. When I try to compile, I get linker errors that say unresolved reference and they refer to functions … | |
OK I'll try to explain what I'm trying to do... I've got 16 numbers in an array and I want to find out the best way of adding any combination of these (it can be 2 of them, 5 of them or all of them) to get as close to … | |
I have an xml output file that I want to check that a directory exists: [CODE] <row_element column="6" property_name="TEST">file_name = sample.txt ~ parent_file = main.txt ~ root_directory = c:\main\sample</row_element> <row_element column="6" property_name="TEST">file_name = sample2.txt ~ parent_file = main.txt ~ root_directory = c:\main\sample2</row_element> [/CODE] I tried the code below, but noticed … | |
I recently had a PC crash and had to do a fresh install of Win XP. Luckily I had backups of a vast majority of my data including my VS projects. I have just reinstalled VS2010 Ultimate and then decided to open my latest project only to be told that … | |
first time using libcurl I'm trying to use it for a function that downloads a page's source code like this getHTML(string URL); but I do not understand the set up [URL="http://curl.haxx.se/libcurl/c/libcurl-tutorial.html"]libcurl[/URL] [QUOTE]There are many different ways to build C programs. This chapter will assume a UNIX-style build process. If you … | |
Hi all, basically, what I am having trouble with is this: I have a value stored in a table for each member, let's call it $my_value. Each member has a $my_value, which is an integer. What I want to do is as follows... Lets assume I log in as user … | |
Hello freinds, Recently i was interviewes in accenture and i was asked what the difference between tostring and convertostring. I think tostring checks for spaces and convertostring does not | |
Hello, I have a website which sells like 5 digital products,and the transactions are made only via PayPal.After the user purchases a product he can login to download. Also affiliates can be created.That's all that it does. I was wondering if a SSL/TSL certificate would be usefull and which type … | |
Hi, I need help on the complete coding of Java mug. This is an given to me by the university, I have just started my course on java. So, could please someone help me & provide me the complete coding on java mug. This would help me to score good … | |
i have to show data in datagrid using store procedure...but remember...i m using store procure in seprate class so i m facing difficulties.. how to do it.. thats my class coding... but how to pass it in main form? public Searching() { Myconnection = new SqlConnection("Data Source=.;Initial Catalog=Bahria_Managment;Integrated Security=True"); } … | |
Hi all, im trying to make a new webpage open if a persons password is equall to COOP, i have used the code [CODE]header('Location: loginfull.php')[/CODE] to do this but i need to call through the EmployeeID and Password when this link is opened, any one have any idea how ? … | |
In a certain sports league, a group of teams plays through a Schedule of Game. At the end of this Schedule, they want to determine the winner. To determine the winner, you will have to determine for each team how many Games they won, lost, and tied. Assuming 2 points … ![]() | |
I am trying to make a form and send all the entered fields directly into an email to a specific email account. if any one knows how to do this or can point me to a site that can help me i would be extreamly grateful thanks!! | |
what is the difference in the 2? [CODE]class Log { private: // no members attributes public: void createLog( ); }; int main() { Log log1; log1.createLog(); }[/CODE] [CODE]class Log { private: // no members public: static void createLog( ); }; int main() { Log::createLog(); }[/CODE] | |
Hi could someone please helping in starting this program? I am not asking anyone to do my work for me i just want to know how i can start the program and steps to follow please( i am new to c++) thanks write a program that reads an n*n matrix … | |
Hi, im trying to make my .dll program written in VC++ search for an aob(array of bytes) in its own process. It's supposed to retrieve the aob from a textbox, search for it and return an address. For example i type the following aob in the textbox = B8 ?? … | |
I am having a little bit of trouble with loops. [CODE] mainTest = "Menu:\n(R)enter Numbers\n(O)dd or Even\n(S)um and Average\n(Q)uit\nWhat would you like to do?: " getInteger1 = input("Your first number?: ") getInteger2 = input("Your second number?: ") print mainTest while userInput != '': if userInput == 'r' or 'R': #This … | |
Hi. My problem is, the data that I pull from the database, when try to multiply it, it didn't multiply. The database has Fruit and FruitPrice column. When select fruit form the combo box, it will search the price. But I can't seem to multiply it. The price is display … | |
OK I'm pretty sure this is an easy one. I've successfully made my list and checkbox fields sticky using selected=selected and checkbox=checkbox etc etc. I now have a very simple text field. What is going wrong is that the entire string within the value="" shows up as the initial value … | |
Hi, In my python application I am importing my module from a xyz[B].[/B]dll. When I try to import my module from the xyz[B].[/B]dll the python shows error no xyz module found. But after [B]renaming the xyz.dll to xyz.pyd[/B] the same python code ([COLOR="Red"]without any change[/COLOR]) imports my module easily. The … | |
can someone send the code for connecting with MySql in asp.net. and code for inserting some entry to a table. I have no idea about MySql. Am having an interview on 16th March.They asked me to do with MySql. Please someone help me.. |
The End.