199,114 Archived Topics
Remove Filter ![]() | |
**my code should check if the Entered string is a palindrome or not** // stack.h typedef char comp; struct nodetype; typedef nodetype* nodeptr; class stack{ public: stack(); bool isfull()const; bool isempty()const; void push(comp elm); void pop(comp& elm); ~stack(); private: nodeptr top; }; /******************************************** stack.cpp */ #include<iostream> #include"stack.h" #include<cstddef> #include<cstdlib> #include<cstring> … | |
Ive uploaded a site to my server. I have a very simple login form for the owner to lofg in and update content. But I am getting this error. 'Warning: Cannot modify header information - headers already sent by (output started at /websites/123reg/LinuxPackage22/re/pt/il/reptile-ni.co.uk/public_html/php/login.php:3) in /websites/123reg/LinuxPackage22/re/pt/il/reptile-ni.co.uk/public_html/php/login.php on line 28' Here the … ![]() | |
Being somewhat new to VB.NET, I built a data solution by using wizards and drag-and-drop on forms. My data is in an Access DB and I opened up those tables with Server Explorer and dragged them into my dataset. I connected the tables to datagridviews. Worked like a charm. Then … | |
Hello everyone, I am working on a program that is sending some input to a thesaurus API, but not after stripping any non-alphanumeric characters. This would be easy, except I want to also preserve the original non-alphanumeric characters for output; for instance, if the user sends "hello;", the request to … | |
Hi everybody. Sorry for the newbie post. I have an assignment I was just looking for some help with. I need to create a dice game that generates a random two dice throw and then gives you three tries to guess the number. I seem to be a bit stuck. … | |
So Im creating Simple Binary Tree, not BST. Im having problem in deletewith 2 child. Method for deletion is DELETE WITH COPYING. After deleteing, when I traverse the tree, it shows run time error, **Unhandled exception at 0x008B5853 in binarytree.exe: 0xC0000005: Access violation reading location 0xFEEEFEEE.** Here is the function: … | |
here's my code class Program { static void Main(string[] args) { int num1, num2, num3, num4, num5 = 0; int categoryA =20000; int categoryB = 75000; int categoryC = 5000; int categoryB1 = 60000; Console.WriteLine("Please enter 5 numbers: "); num1 = Int32.Parse(Console.ReadLine()); num2 = Int32.Parse(Console.ReadLine()); num3 = Int32.Parse(Console.ReadLine()); num4 = … | |
whenever i'm entering 1, 2 or 3 digit numbers it just give me one output, i don't know what's wrong.. here's is my code. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Balance { class Program { static void Main(string[] args) { int num1, num2, num3, num4, num5 = … | |
Trying to go thru the contents of a table with the following layout indexfield1,art1,art2,art3,art4 In this table indexfield and art1 are always filled art2, art3, and art4 can be empty. In pseudo-code this is what I want to do: for each art of table where indexfield = x: do bladibla … | |
hi i am working in php. and my assigned task is to upload a file and save it into the directory. i have install wamp into D-drive but it not working and dont get the path. i was trying the following: <?php echo "Upload: " . $_FILES["file"]["name"] . "<br>"; echo … | |
Hi, I am new to windows forms. I used the 2 lines of code below to launch a c++ code from a windows forms GUI and it worked: Dim lngReturn As Long lngReturn = Shell("c:\MyProgams\cfile.exe", vbNormalFocus) I hope someone can help with the issue below: My interface includes some text … | |
public int getRandomID () { Random r = new Random(); return r.Next(10000,99999); string value = ddlCType.SelectedItem.Value; switch (value) { case "Men Formal": return "KML"+r; } } i get an error Cannot implicitly convert type string to int in return "KML"+r; how to solve it? | |
Hello :) I'm working with a database of postcodes. I have an existsing query that returns the postcodes within a certain radius: `select *, acos(cos(51.496502411798 * (PI()/180)) *cos(-0.13982862499836 * (PI()/180)) *cos(lat * (PI()/180)) *cos(lng * (PI()/180))+cos(51.496502411798 * (PI()/180)) *sin(-0.13982862499836 * (PI()/180)) *cos(lat * (PI()/180)) *sin(lng * (PI()/180))+sin(51.496502411798 * (PI()/180)) *sin(lat … | |
Hi All Experts, I am a newbie to C#, my development environment is: Visual Studio 2010 Ultimate Edition Sql Server 2005 Programming Language C# I've a form with Unbound Datagridview, from which data is save to Sql Server 2005 by looping through For..Each and pass SQL INSERT Statement when user … | |
how to get null field value from access in vb6 in my 2 record field the value is empty but i'm not able to get that empty field in vb6 ... .... set rs = new adodb.recordset rs.open ("select * from table1 where id = '2'") text1.text = rs!name please … | |
Hello everybody you will excuse my poor englsih I am french, since two month I began to develop an application using Vb.Net . This application must use a database . I chose MS SQL Server for the database, but I dont know how to connect my application to MS SQLSERVER. … | |
Could someone help java code to read number of lines, words and characrters in paragragh . | |
Hi, I'am creating a single JFrame UI, that uses multiple JPanels (implemented through JTabbedPane). The problem I'am having is aligning the objects within each JPanel. In the first JPanel all of the objects are centrally aligned. I'am unsure of what to do to solve the problem. I have read the … | |
Ok, so currently I've been trying to recreate missile command, an old atari game. While I've had help from a group in creating the graphics for the game i.e menu, plotter class, etc. I've basically been flying solo as of the game's logic i.e missile detection, health, missiles spawning and … | |
I have a working mailer script which has already started sending out mails. We need to send an email message to approximately 5,000 email addresses. I have a few problems though. 1.) It's sending out really slow. I'm guessing it's the embedding? The image is 300+kb big, is it supposed … | |
Hey forum, I've recently started doing research on this topic but to no avail as i'm not getting the answers I wanted so I'm here once again: My question: I need to develop an application to run on a normal desktop, but as an extension we would like to run … | |
Hello guys, i've being searching for how is it possible to get value of a form element i.e selection tag that was injected by jquery be access on submitting the form. All the form element value where posted except for the selection element that was injected with jquery. how can … | |
I have an increment and decrement button to all users to record against 4 different options (how many times this option has been done) So they choose the options from a drop down menu and then the panel appears that the two buttons are sitting within. It starts with the … | |
A web server is used to process http request and send a response back to the client browser. I was wondering how does a client browser send a http request to the web server? Is it done via socket connection? Which socket connection is used to establish a connection with … | |
Hi again everyone. This is going to sound really dumb but I have to ask it because I'm not very advanced at C++. If I have a function such as **Funct(int *arg1, int *arg2)** , how do I use this function in a program. Can I just enter the values … | |
hi.... can you tell me how can i make the antivirus in visual basic 6? if you have somw source code it will be more benificial for me. thnaks in advance.... | |
-->>Hi,I am getting tired of recreating the menus in every form I design my be due to lack of information... -->>Thus I was wondering if there is a way that I write codes in may be a module so that I may be using it... -->>by just calling it in … | |
| |
Hey guys, first post. I am at the end of the semester and running ito some trouble. I know this question has been askd a few months ago but I looked at the code that was supplied and it didnt work. I cant get it started, I think i can … | |
Hello, In my program, I have added a SplitContainer with Fill on Form. Where Panel1 keeps all Button and Panel2 keeps other objects, I'm trying to code on SplitContainer_MouseMove event. But it does not work when i'm Panel1, If i move mouse pointer to panel2 and go again in panel1 … | |
Hello Friends, I want to write plug in in c++. I am using windows 2008 in which i choose project of Extensibility type and use C++ Atl language.I didnt find any link in the net regarding this.only theoretical help is given there. Please help me with some example so that … | |
Hello i want to encrypt or hash some data and put them on the database. Which is more secure encryption or hash and how i can do this? thank you very much for your help | |
How to upgrade PHP 5.2.10 version to PHP 5.2.13? I have already had PHP 5.3.19 and downgrade the version to PHP5.2.10 and I need of PHP 5.2.13. I have downgraded version using the script file. Thanks in advance. ![]() | |
Hai everybody, I need help in making chat room similar to facebook chat. store in database userid based. anybody plz help me. | |
Hi, It is possible to make a software with a database such as MS access and make it available for everyone without need of a server or without a need to install the database software and/or make the database from scratch? Thanks Mario | |
<?php include 'include/AnonymousHeader.php'; $CON = @mysqli_connect('localhost', 'root', '', 'allyouneed') OR die('Could not connect to MySQL: ' . mysqli_connect_error()); ?> <table width="700"> <tr> <td> <h1>Sales Registration</h1> </td> </tr> <?php if (!(empty($_SESSION['LoginStatus']))) { $SQL1 = "SELECT * FROM sales"; $STM1 = @mysqli_query($CON, $SQL1); $ROW = 0; $SalesID = ""; if ($STM1) { … ![]() | |
Dear Programmers, I want to change accent characters in my smart URL to non-accent characters... For example : www.mysite.com/123/békÃtÅ‘ to www.mysite.com/123/bekito. Is it possible through .htaccess? Here is my current .htaccess DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase / RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond … ![]() | |
How to reproduce this error? Create a new winform Select a backgound image for the form Add a new panel Set color transparent for the panel, set autoscroll = true, and add some controls inside the panel Example: http://i.stack.imgur.com/YxRhx.jpg Now scroll down or up and see the what I say... … | |
Wondering if anyone has used SQLite. I'm having trouble with the basics. sqlite3_get_table function. The Apress book 'The Definitive Guide to SQLite' provides the following example. The first problem is that when declaring char *result[]; Things start to go wrong. I get an error message saying that *'the size of … | |
in my application i have a tabcontrol with two tabs. when i run the program the focus is on the first tab. how can i change the focus to the second tab, so the second tab is shown on certain event ? | |
trying to create table in Access2007. CREATE TABLE user (id Text(8), last Text(25), first Text(20), class Text(10), dob DateTime); but table is not being created. ERROR: query must have at least one destination field. | |
[B]Hello programming experts,[/B] I have a problem. Is it possible to make an OS with VB.Net with C, C++, Objective C, Assembly language, FreeBASIC, C#, BASIC, Java, Object Pascal and with a bit of machine language? And if possible how to mix the languages? And could you give me a … | |
Hi, I'm learning python and I just started to learn about classes. To get a handle on this, I decided to make a black jack game and create 3 classes: deck, hand, and card. I created a card class, but I am not sure how I would implement it in … | |
My name is Leonard E. Norwood Jr. I'm just practicing a simple bubblesort program but this time using classes and pointers with operators >> and << and also an overloaded operator =. I'm merely trying to sort a list of numbers from lowest to highest. And the purpose of the … | |
Hello, I am a mysql table called: adsmgt which consists of: idads and time I would like to count the number of row in adsmgt how to do so? I try this: mysql_select("select TABLE admgt count(idads)"); This error appears: (it doesn't matter if the idads are twins they still have … ![]() | |
Hi guys I got a question about how to reversethe little endian. My questions is how do I do it. Say the user inputs hex 4423, how do I get it to reverse in the program to read as 2344? and help would be greatly appreciated. I need this because … | |
not sure how to write the code for this. i have two forms, one is the main form which has a listbox containing data which is loaded in from a text file. the other is a delivery form. when the user select an item in the list box and click … | |
HI I was wondering if you can help me with this random number program. import static java.lang.System.out; import java.util.Scanner; import java.util.Random; class GuessAgain { public static void main(String args[]) { Scanner myScanner = new Scanner(System.in); int numGuesses = 0; int randomNumber = new Random().nextInt(10) + 1; out.println(" ************ "); out.println("Welcome … | |
i a student doing a degree in computing and information technology in zimbabwean am supporsed to create a project but i need help im what project to create. | |
I have read several replies here and I am in the process of testing them now but since this is a problem I need an urgent fix for, I thought it would not hurt to ask again. We have an Apache website that is extremely simple in design. It's main … |
The End.