64,152 Solved Topics
Remove Filter ![]() | |
This is a mastermind game. I was trying to make sure that my twoD array was beinga ssigned right by printing it out real quick before i use it to draw a board in the console. For some reason im gettin these errors and i dont even have a clue … | |
How to creat the button for 'Export'? Thanks! I want to combine below two sets of code [CODE] <?php echo"<a href='export.php?'>Export</a> ?> [/CODE] [CODE] <?php echo"<input type='button' value='Export'>"; ?> [/CODE] | |
Hi, I am working on a gallery feature for my website. Currently I have the images displaying using a mysql query which returns the images and a product description for each image. I would like to add to the gallery by having a clickable link under each picture which will … | |
[code=c++] int main() { Ferma *f[20]; int i=0; int e=0; do { cout<<"Alegeti optiunea:\n"; cout<<"1.rata\n" <<"2.gaina\n" <<"3.porc\n" <<"4.vaca\n" <<"0.iesire\n"; cin>>e; switch(e) { case 1: f[i]=new Pasari("rata"); //error at this kind of assignement i++; break; case 2: f[i]=new Pasari("gaina"); i++; break; case 3: f[i]=new Mamifere("porc"); i++; break; case 4: f[i]=new Mamifere("vaca"); … | |
Hello forum. I cant figure out how to overload the '+' operator or maybe theres another error? Im posting from phone so excuse the slopyness. Thanks! [CODE]#include <iostream> #include <string.h> #include <ctype.h> using namespace std; class Ferma { public: static int nr_rate; static int nr_gaini; static int nr_porci; static int … | |
Hi, Python v2.7 Tkinter Windows 7 I am having some troubles drawing a line. I have called create_line inside a for loop, in which I gave it coordinates that are returned from another function. However, instead of drawing separate lines, it joins the lines together. Here is a snippet of … | |
I expected the program to update the original array but it seems to update the array that has been sorted. i tried to copy array but it does not seem to help me. how do i make sure sure that the array that is updated is the original array. Desired … | |
hello i need some help regarding my coding. i want to change the number to be like this = 1.00 . here is my coding: [CODE] Private iTotal As Decimal Private Sub btnseringgit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnseringgit.Click displayText.Text = "RM 1.00" displayText.Text = iTotal iTotal … | |
Hey everyone, Yesterday I wrote a simple Hello World program and saved it as .py. However, when I tried to run the .py file it didn't have a default program. So, I went to 'Choose Default Program', found 'python.exe' and clicked it. 'python.exe' did not show up in the 'Choose … | |
Hello all, I am having an issue. The issue being is that i have a page connecting to a database and displaying it in tables. The problem is, is that I have one column in my page where I want to do this: [CODE]<td bgcolor="#817679"><center><? echo $rows['Airport']; ?><? echo $rows['Type']; … | |
![]() | Hi... Again :) Just after i fixed my previous problem thanks to me failing to put an echo before ".." I worked out that the incorrect image was showing. I'm making a stock trading website, and there will be an red arrow pointing downwards when it detects at - (negative … ![]() |
Helllo I'm doing a theatre booking system for an assignment. I have got to the stage where I can generate the seating plan from the database. The problem that I am having is that the seats are running in the wrong direction. I have swapped my x's and y's but … | |
Hi Frendz, I need to include speedometer application in my vehicle tracking system. Actually the current speed of the vehicle is stored in database. I need to show that speed in analog speedometer. If anyone have experienced with speedometer application in php then help me. | |
I have table in mysql, have values in row i want when page loads the highest value is alwyas the selected one. Im using two queries first one pulls the top value and adds it to box then it populates the rest, so it shows this top value twice, is … | |
i want that by using on changevent a calculation can be done in vb.net windosapplication suppose i had got some textbox like totalamount(t) , amountpaid(ap), balancerefund(bf), amount due(ad), [CODE] If t > ap Then bf textbox shows the amount Else ad textbox shows the amount End If [/CODE] how to … | |
hi. here a simple class to change the wallpaper in winxp and win7. i think it will work on every windows version. [CODE] public sealed class clsWallpaper { const int SPI_SETDESKWALLPAPER = 20; const int SPIF_UPDATEINIFILE = 0x01; const int SPIF_SENDWININICHANGE = 0x02; [DllImport("user32.dll", CharSet = CharSet.Auto)] static extern int … | |
Hi, I want to buy a Codeigniter book to learn its framework and develop PHP applications with it. I've been using PHP about 4 years but never used any kind of framework before. Which one of these books would be good for me to get staring: [URL="http://www.amazon.co.uk/CodeIgniter-Professional-Development-Adam-Griffith/dp/1849510903/ref=sr_1_1?s=books&ie=UTF8&qid=1304357639&sr=1-1"]CodeIgniter 1.7 Professional Development[/URL] … | |
Hey all... I have assigned a job to create back of the databases of our company, maintain it for 7 days and after 7 days delete the back... I have worked on this and make it up the following query but still confused on its authenticity. Please Check and tell … | |
This is my code and it is giving me an SMTP Exception. I tried to change my port to 25 but didn't work. Plus i am connected to the internet i can't figure out whats the problem [CODE]private void RecovaryEmail(string username) { ManagerUserAccount mgrUserAccount = new ManagerUserAccount(); UserAccount ua = … | |
Hi All, [CODE] SELECT 'Name A ' as Column0, Some column as Column2, FROM MyTable WHERE my condition UNION SELECT 'Name B' as Column0, Some other column as Column2, FROM MyTable WHERE my condition [/CODE] I want to concatenate the rowNumber with column0 any idea how to do that? Thanks … | |
Hi, I have rowcommand function, in which i m obtaining sr_no as datakey from a link button. now i want to know which row was that. How to get row index this way ? | |
Hi , i am getting syntax error in INSERT INTO statement. getting this error on cmdobj.ExecuteNonQuery(); [CODE]string connectionstring = @"Provider=Microsoft.ACE.OLEDB.12.0; Data Source=D:\website\AddContact.xlsx; Extended Properties=""Excel 8.0;HDR=Yes"";"; OleDbConnection conobj = new OleDbConnection(connectionstring); string Query = "INSERT INTO [Sheet1$](Fname, LName,PhoneNo,Email-ID) values (" + TextBox4.Text + ",'" + TextBox1.Text + "','" + TextBox2.Text + … | |
Hi! I need to know how to make global object from a local place like a function. And of course, they need to have unique names each time the function is run Could I somehow pass the a String parameter of the function to the name of the new object? … | |
Hi all,, How i can sum all item on listview column. Thank you in advance. | |
I am building a simple program with 3 Forms. The first Form has 2 Buttons and the other 2 are blank. I used this code: [CODE] public partial class Form1 : Form { public Form1() { InitializeComponent(); button2.Click +=new EventHandler(button2_Click); button1.Click +=new EventHandler(button1_Click); } private void button2_Click(object sender, EventArgs e) … | |
I am using a map in the standard way. It holds keys and values and sorts them by key and works wonderfully. However, after I am through adding to the map, I need to rank the keys based on their associated values. What is the best solution? A) Take map<myKey, … | |
how to find out whether certain elements in an array are equal to one another? for this array: [icode]int array[] = {0, 1, 0, 0, 2, 0, 0, 3, 0, 1};[/icode] i wanna know if elements under the indexes 0, 1, and 9 are same numbers well the easy way … | |
Hello, I make a program loop..but it doesn't work as i want ><" ! this is the OUTPUT -look careful, please- : [CODE]Welcome to our miniCalculator if you want to use add, enter add if you want to use subtraction, enter sub if you want to use division, enter div … | |
Hi there, I'm trying to setup a website with a database. I want my php code to create the database and then input the data into it, however a get the error on my register page: Warning: mysql_connect() [function.mysql-connect]: Access denied for user '*****' (using password: YES) in /fg_membersite.php on … ![]() | |
Hello, Ok. How to describe my problem :-/ I'm making a 2D drawing program. Currently working on lines. So I got a class line which holds the draw method. And I've created a list of lines + a line object. In the form I have a listbox where every line … | |
[CODE] // mainfrm.h enum { logAll = 0xff }; void Log(int nIdx, LPCTSTR lpText, int nType = logAll, LPCTSTR lpDeviceName = NULL); //SesLog.h int m_nDeviceID; CString m_strDeviceName; // SesLog.cpp #include "Mainfrm.h" #include "SesLog.h" void CSessionLog::Log(LPCSTR lpText) { if(m_pParent) m_pParent->Log(m_nDeviceID, lpText, logAll, m_strDeviceName); [/CODE] error LNK2019: unresolved external symbol "public: void … | |
I'm trying to write php code to access my sql database. pretty new at this and was wondering for my hostname and username and that, do i prefix the web address to the username and password or what is it? I geta error saying my credentials are not correct. Can … | |
I have loaded a .TXT file into an array, and want to display each of the posts in the array in a grid. Any pointers how to start attacking this beast? Have tried using Datagrid, and failed :( I have a "Learn by doing" approach to VB.NET, so I need … | |
[I]Hi, Sorry for coming back again and adv thanks for guidance My tutor gave me a assignment, couple of days before he taught me the work flow of java in eclipse, i am getting through it and i was asked to use constructors for the arithmetic operations as methods in … | |
I am printing checkbox's value on combobox value using AJAX, but showing undefined. First time it ok, but When checkbox is clicked then value is set to be off, showing undefined. Here is the code. [B]Checkbox[/B] [CODE]<input type="checkbox" name="course_inactive" value="off" id="course_inactive" onclick="check(this.value); value2(this.value)">[/CODE] [B]Combobox[/B] <div style="float:right; height: 26px; padding-top:2px;" id="div_courses"> … | |
Hello, I am trying to read exact 2 bytes from binary file, and transfer it to int, whatever is it 2 or 4 bytes. Atm on my computer is 4 bytes. So I have two bytes into four bytes scenario. I am using this code [CODE]ifstream in_stream; in_stream.open("test.dat", ios::binary); streamoff … | |
Hi All, I was wondering if any of you would know of how can i change the interface of a java program to a web based interface using html5. I know i could do this easily using jsp/java.net but my requirement states to change the java desktop program application interface … | |
Hey; I am following CoreJava and came to Event Handling chapter. I am trying to show a popup menu when the red button is clicked, but not works. Background color changes but no popup menu is shown. What is the problem? [CODE]/* * To change this template, choose Tools | … | |
[CODE] #include <iostream> #include <fstream> using namespace std; int main() { char ch; ofstream outf("ITEM.txt"); cout << "Enter item: "; char name[30]; cin >> name; outf << name << "\n"; cout << "Enter item cost: "; float cost; cin >> cost; outf << cost; cout << "written to file item.txt\n"; … | |
I'm currently generating a random number and placing it in a label, but when I press the next button I would like the program to generate a new random number. The method I'm currently using to create the generate is: [CODE]//Random number generating method public double RandomNumber() { //declares random … | |
How do you [B]click[/B] on a [B]caleneder [/B]and it takes you to another page and how can you [B]click a button [/B]to [B]link[/B] you to a [B]database[/B] on another page where you can [B]add, update [/B]and etc things like bookings. Code please would help and your source of where you … | |
Hi, I'm almost done with my coding and I'm trying to implement blocking the user from putting anything but numbers into one textbox and then autocaps'n everything put into another. I've been looking through the web and can't find anything to point me in the right direction. Also, I can't … | |
Hye all I am developing a Shop Software i want to know what kind of Grid i have to use at Sale Form which will sum up and print bill? | |
help i am a beginner and i need help with my final program. i beleive i have everything set but i am not sure how to write the function. i want the function to add up all of the rides and give a grand total but i can not get … | |
I'm not sure if this is possible. Basically, I have a function that will detect the current active user. [CODE]string currentUser() { string user; ofstream outf("CurrentUser.dat", ios::trunc); system("whoami >> CurrentUser.dat"); outf.close(); ifstream inf("CurrentUser.dat"); inf >> user; return user; }[/CODE] I have another function which will create a directory in the … | |
First let me thank you for taking the time to read this. I've been working on this code for a while and I can't seem to get it to run. Basically what I have to do is take in data from a file then output the data in a report … | |
Hey there =) Im struggling to save a file to my MySQL database. I managed to save a image to the database with this code [CODE] SqlConnection con = new SqlConnection(Properties.Settings.Default.NorthWestConnectionString); SqlDataAdapter da = new SqlDataAdapter("Select * From MyImages", con); SqlCommandBuilder MyCB = new SqlCommandBuilder(da); DataSet ds = new DataSet("MyImages"); … | |
![]() | Thanks so much guys! That solved my problem.. I have another question.. Find the names of all restaurants together with the names of diners who visit the restaurants on 24 April 2011. IF no diner visited a restaurant on the day, include a name of restaurant with no value in … ![]() |
[CODE]double speedTest() { double dInitialTime = clock(), dFinalTime = 0; double dRepititions = 99999999; double dResult; cout << "\nCalculating...\n\n"; for(int nCounter = 0; nCounter <= dRepititions; nCounter++) { pow(dRepititions, pow(dRepititions, dRepititions)); } dFinalTime = clock(); dResult = dFinalTime - dInitialTime; ofstream outf("Results.dat", ios::app); outf << dResult << endl; return dResult; … | |
Hello, I have a query, that I am trying to have a conditional statement for a variable that I will pass into the query. If I use one of the conditions it works, but if I try both I can't get it to work. I would appreciate any help. Thanks, … |
The End.