199,114 Archived Topics
Remove Filter ![]() | |
Hi People. Got a small issue, although its big for me........ I'm using phpmyadmin.... I have 2 tables.... My First table is 'user' which has 4 columns ( eventid, Name, Email, Address ) ( eventid is the primary key) My Second table is 'trips' and it has 6 colums ( … | |
#include <iostream> #include <iomanip> #include <fstream> const int NUM_SURVEY=3; using namespace std; struct Survey { int IdentificationNumber; double annualIncome; int numberOfHouseMember; }; void getData(); void calculateAverage(); void findPoverty(); void printReport(); int main() { getData(); calculateAverage(); findPoverty(); printReport(); system("pause"); return 0; } void getData() { Survey Households[NUM_SURVEY]; int i; cout<<"------------Enter " … | |
I am currently using code::blocks but i am experinsing trouble trying to link the ws2_32.lib and other libraries. I tried visual studio express but it doesnt work with me. What are some good FREE c++ compilers that have very easy library linking and are rather user-friendly and that i can … | |
Hi, I really do not know how to read line by line csv file and store it in the database. I want to check datatypes, and the mandatory fields. Please somebody help me in this ![]() | |
Hello, I am new in all this and i was hoping you could help me with a little thing so here it is ive got 2 files one is for showing movies from database and there is "delete" button that is taking an a id and deleteing the raw display.php … | |
In my project (Borland C++ Builder, Windows Xp ) am using following code for opening the file TOpenDialog *OpenDialog; OpenDialog->Filter = "all files (*.*)"; OpenDialog->InitialDir="::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"; OpenDialog->Execute(); But the "My computer" tab is empty its not showing the drives. Rest "My Rescent Documnets" , "Desktop", "My Documents", "My network drives" all … | |
Hi! Only two windows-dialogs in my programm. On button click I do this->EndDialog(0); MyWiew mw; mw.DoModal(); ShellExecute(0, NULL, fdlg.m_ofn.lpstrFile, NULL, NULL, SW_MINIMIZE); But MS WORD opens file and starts only when mw is closed. How to start it with the mw together? Thanks in advance. | |
I have a form in php that allows users to edit their user profile after the user logs in. It is prefilled with the users current info and when it is submitted, it updates the database. However, when it returns to the edit user profile page, the prefilled text is … ![]() | |
Guys, I having problem converting the sql server function to mysql function. It work perfect at sql server now it now working at mysql. Please help.Thanks DELIMITER $$ CREATE Function `pearldb`.`SortingAlphanumeric` ( ColValue NVARCHAR(255) ) RETURNS NVARCHAR(1000) BEGIN DECLARE p1 NVARCHAR(255); DECLARE p2 NVARCHAR(255); DECLARE p3 NVARCHAR(255); DECLARE p4 NVARCHAR(255); … | |
Hello everyone; I've been struggling with trying to figure out how to get this struct program to work and I'm at a total loss on this. Basically I need to create two structs POINT which will have an X and Y values, and a LINE struct which will include 2 … | |
Dear all, I am new to mvc architecture Programming concepts.I have doubt that why peoples are using MVC Architecture?.What are the core benefits of using this architecture. Thank you, Regards, prem2 | |
I have a file, 'date-list.txt' which has date in it. For example , 20 May 2012 . Now I want to compare this date with current system date and show the difference in days . How can i compare dates and shows difference in days in C++.? Im really a … | |
OK so what would I need to change to the following code so it would produce the following: xxx xoo xoo As at the moment it is producing: xxxooo xxxooo xxxooo My code that I have used can be seen below: import javax.swing.*; public class test { public static void … | |
Hello all, I have been long using Tango Icons and are good, but some stuffs are lacking. Is there good freeware Icon designer or free Icon package? Thanks alot | |
OK, let me preface this by stating that this is for an internal application only, so security is not a major concern and we can/do have a fair amount of control over the users browser, operating environment and configuration. I am currently generating some hyperlinks, like this: <a title="L7489" id="MainContent_GridView1_lnkFolderR_1" … | |
this part of code send a email to user if they forgot there password. first question i have is how can i add string and variables. this give me error Parse error: syntax error, unexpected ':' in C:\xampp\htdocs\login_test\forgotpassword.php on line 46 $body = "Hi " . $firtname_db . ",\n Your … | |
Being a vb.noob as basically most of the vb.net world, I use the `Try/Catch` statement quite a bit for when it comes to errors, as the following. With Me .Text = "a" Try .Text += 1 Catch ex As Exception MsgBox("error: " & ex.Message, MsgBoxStyle.Critical) End Try MsgBox("a") .Text = … | |
Hi there, i would like to know how to get the first letter of all the word in a string. If i have a string mystring="Name Surname" i would like to get only the fist letter of each words and the results will be N S Anybody could help with … | |
I have a Drupal site which is quite big and practically unreadable on most mobile devices, by using this [scipt](http://detectmobilebrowsers.mobi), I have managed to get the site to redirect to a sub-domain for each mobile browser. As the pages on the sub-domains are very minimal with little information, I also … | |
Hi can any1 explain this code to me? i dont qute understand. strIPaddress is a ip address and strPort is the port number. _objExtAccess=(IExtranetAccess)Activator.GetObject( typeof(IExtranetAccess), "tcp://"+strIPAddress+":"+strPort+"/ExtranetAccessService"); Thanks. | |
![]() | I would like to write a page which accepts Value of textbox / input-field using javascript. As you get values from this: <script type="text/javascript"> var cheese=1 document.write(cheese) </script> Maybe the value `cheese` could be taken from text which the user has to enter....how? |
I have a datasource on my page, the select query of which creates a pivot table. The complexity is that the columns in the pivot are determined by records in another table (the users table). So I have to use a prepared statement to build and execute the pivot query, … | |
Does anyone know a good way to force javascript to evaluate all operands in a boolean expression? In particular, what I am tring to do is essentially this: return isValid(a) && isValid(b) && isValid(c); while this technically does work, the function is responsible for highlighting invalid areas on the form … | |
i have this form. when user hit sumbit button i want to run changepassword.php <form action = 'changepassword.php' method = 'POST'> Old password: <input type='password' name='old_password'><br/> New password: <input type='password' name = 'new_password'><br/> Confirm password: <input type='password' name = 'confirm_new_password'><br/> <input type='submit' value='Change password'> </form> so when user hit submit … | |
yow! I have a question. the case is have and email notifacation in my php code in the database(MSSQL) i put an email add these are the two email address Rex.Cam@email.com and rex.cam@email.com the email notication is intended for the email who has a capital letter on the start the … | |
![]() | I stuck against the wall again in implementing list of classes. In the nutshell: The idea is to put a LIST containing several CLASS, the Class content can only be manipulated and accessed with get and set method (which is already established). To add a value inside Job, Paycheck, and … |
I am trying to write out some areas of an existing guestbook program, and keep hitting brick walls. It consists of a controller, view, and a tweaking of the results display. Anyone here interested in taking a look ? | |
Hi all, I am using DataReader for the first time and i faced more than one error and this is the last one ((Index was outside the bounds of the array.)) and it's point to this line Dim result As Data.SqlClient.SqlDataReader = dr(Data.CommandBehavior.CloseConnection) I think I have problem with closing … | |
The file contains the instructions. I need help by tonight. Please Help!!!! main.cpp: #include <iostream> #include <fstream> #include "addressbook.h" #include "addressbook.cpp" int main(){ ifstream inStream("input.txt"); string line, header, token; vector <string> tokens; getline (inStream, header); AddressBook myAddressBook; while(!inStream.eof()) { getline (inStream, line); cout << line << endl; int x=0, y=-1; … | |
That is my query. I am trying to select the item details for the items the user has in their inventory, but I DO NOT want to select the ones that are in their collection. So I'm trying to say where item_id IS NOT in the user_collection with their user … ![]() | |
Hi, I'm a junior computer science student and I'm currently new to this forum. Im having some problems understanding the code excerpt from a book (see code excerpt below). The code is suppose to delete characters from a string, based on the given prototype: void RemoveChars(char str[], char remove[]); str[] … | |
Im creating a Chess game. Im stuck at getting the pieces to move within the rules Aka bishop can only move diagonally. I Create Panels - 64 of them within a lager panel then add JLabels - The pieces - into those panels ` JLabel bb = new JLabel(new ImageIcon("bb.gif")); … | |
I am newbie in java. I am facing problem now. My purpose is to put the time in textfield. I need press "Start" button and then the time will start go. But after i compile this code. It got error. I have no idea to do it. Can anybody help … | |
I have this succes message that the visitor sees after submitting the contact form via ajax using jquery: My question is: How can I first fadeIn the image, and then "500 later" fadeIn the rest of the text that is appended after the image? -Now it fades in all at … | |
Hi, I'm new to this site, and I thought this place might help me with some of the problems I am hitting. I am currently in grade 12 Computer Science, and I am coding a third-dimensional snake game (isometric view, so can all be drawn in 2D) I have taken … | |
i have a array 10X13. where it say 1 i want to print image called wall. ok so the array part is easy. iam pretty sure its fine. less continue. const int ROWS = 10; const int COLS = 13; int level[ROWS][COLS] = { {1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, … | |
Hello everyone, I want to start learning C++, because that's what we do at school and I really need to know it. But there's a problem, I don't know where to start from, what to do and such. At school I can't understand anything from the teacher, so that won't … | |
Greetings The quicksort i am building works for only aprox 50000 element in a list. If i go above that i will run out of memory and the program will crash. This is only when i use the median of three or left as my pivot element. When i use … | |
Hi guys, I have some problems regarding textbox and radiobutton. My GUI design is like this: I have a textbox, 3 radiobuttons and an enter button. My first question: how can I make the enter button only visible if the textbox is filled and the radiobutton is clicked? If not … | |
Hello, I try to call a header A if a user is logged in, and a header B if a user is not logged in on some pages I haven't managed to do so, I've tried to create a php function, but didn't manage to make it work. Then, I … | |
![]() | Hi all and thanks in advance for your help ! I have a very simple class called circle and i wanna add the ostream << so i can have the ability in main to write cout<<a<<b<<c; the theme is i'm getting many compile errors in the same row eg iso … |
Hello guys, There's some issue with my UIPickerView controller. The data won't pop up in it. The 'Drum' by itself is visible but empty. My code is: - (void)viewDidLoad { [[self navigationController]setToolbarHidden:YES animated:YES]; [self setItemShow:theItem]; self.uiPickerViewData=[[[NSMutableArray alloc]initWithObjects:@"One",@"Two", nil]autorelease]; [super viewDidLoad]; } And method which will work when button is getting … | |
Hi, i want to create cookies in my shopping cart site. I want when i click on add to cart button of this product. the information of the product save in cookies and destroy when user close his browser. I want a script. When i create cookies it's work only … | |
I have a SQL Server table that has no rows. Programmatically in WinForms C#, I have created a DataTable with the same schema and populated it with data. I would then like to write the contents of this DataTable to the SQL Sever table using a SQLDataAdapter. Since the data … | |
Ok so when I run the following code nothing occurs so could someone look at the code and tell me where I have gone wrong? public class somee { public static void main(String[] args) { somee f = new somee(); } public void f() { int anInt = g(7); System.out.println("ffff"+anInt); … | |
Hello people. Ive got a problem with a listbox of mine. I have three lisboxes, one listbox1 is for product category, another lisbox2 is for the product itself in which it will appear after the user has chosen a product category AND another listbox3 which acts like a shopping cart … | |
Hi, The code shown below sucessfully saves text onto a line in a txt document, but using the array, I want to be able to save each piece of text on a separate line. How would I do this? Thanks in advance :) Dim filePath As String Dim objectWriter As … | |
![]() | Hello all, I am trying to think of ideas for programming projects, Python is the language I know most about so I decided to post it here. I have made some random stuff, like a Python program which generates a specified amount of asterisks I have made a text based … ![]() |
The End.