64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for toferdagofer

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 …

Member Avatar for pseudorandom21
0
186
Member Avatar for cliffcc

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]

Member Avatar for cliffcc
0
108
Member Avatar for loopylou8

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 …

Member Avatar for Sorcher
0
114
Member Avatar for daianahoney

[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"); …

Member Avatar for daianahoney
0
292
Member Avatar for daianahoney

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 …

Member Avatar for daianahoney
0
239
Member Avatar for nodnil

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 …

Member Avatar for nodnil
-1
267
Member Avatar for liphoso

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 …

Member Avatar for jon.kiparsky
0
172
Member Avatar for ayoba01

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 …

Member Avatar for ayoba01
0
137
Member Avatar for WolfShield

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 …

Member Avatar for WolfShield
0
191
Member Avatar for Joshua Kidd

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']; …

Member Avatar for almostbob
0
83
Member Avatar for cuonic

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 …

Member Avatar for cuonic
0
143
Member Avatar for johnt68

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 …

Member Avatar for Mitja Bonca
0
116
Member Avatar for karthik_ppts

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.

Member Avatar for karthik_ppts
0
295
Member Avatar for branding4you

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 …

Member Avatar for branding4you
0
265
Member Avatar for shankarmca

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 …

Member Avatar for anuj6928
0
1K
Member Avatar for sandeepparekh9

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 …

Member Avatar for sandeepparekh9
0
118
Member Avatar for veledrom

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] …

Member Avatar for veledrom
0
199
Member Avatar for abelLazm

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 …

Member Avatar for abelLazm
0
152
Member Avatar for xanawa

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 = …

Member Avatar for xanawa
0
180
Member Avatar for Pgmer

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 …

Member Avatar for Pgmer
0
77
Member Avatar for Shantanu88d

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 ?

Member Avatar for shakeb@techwave
0
280
Member Avatar for virendra_sharma

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 + …

Member Avatar for shakeb@techwave
0
287
Member Avatar for jackmaverick1

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? …

Member Avatar for jackmaverick1
0
223
Member Avatar for Jade_me
Member Avatar for jmurph333

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) …

Member Avatar for jmurph333
0
117
Member Avatar for Jsplinter

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, …

Member Avatar for mike_2000_17
0
4K
Member Avatar for gingerfish

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 …

Member Avatar for NormR1
0
212
Member Avatar for M!ss Takishima

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 …

Member Avatar for M!ss Takishima
0
176
Member Avatar for lovell_82

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 …

Member Avatar for diafol
0
539
Member Avatar for Azurit

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 …

Member Avatar for Azurit
0
233
Member Avatar for chintan_1671

[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 …

Member Avatar for Narue
0
294
Member Avatar for lovell_82

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 …

Member Avatar for lovell_82
0
143
Member Avatar for lcfjoertoft

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 …

Member Avatar for twiss
0
94
Member Avatar for susheelsundar

[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 …

Member Avatar for yangtao
0
3K
Member Avatar for abhi10kumar

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"> …

Member Avatar for twiss
0
167
Member Avatar for something_techy

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 …

Member Avatar for Narue
0
304
Member Avatar for kesh1000

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 …

Member Avatar for mKorbel
0
208
Member Avatar for Tellalca

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 | …

Member Avatar for Tellalca
0
94
Member Avatar for munitjsr2

[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"; …

Member Avatar for munitjsr2
0
320
Member Avatar for Youg

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 …

Member Avatar for Youg
0
728
Member Avatar for rb1234567

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 …

0
90
Member Avatar for Youg

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 …

Member Avatar for Youg
0
201
Member Avatar for zebnoon

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?

Member Avatar for Jx_Man
0
95
Member Avatar for schrope

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 …

Member Avatar for Saith
0
103
Member Avatar for Billy D

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 …

Member Avatar for Billy D
0
362
Member Avatar for Skaii

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 …

Member Avatar for Skaii
0
119
Member Avatar for Mr.BunyRabit

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"); …

Member Avatar for Mr.BunyRabit
0
229
Member Avatar for andylbh

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 …

Member Avatar for hfx642
0
129
Member Avatar for Rickay

[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; …

Member Avatar for Rickay
0
6K
Member Avatar for AMADH

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, …

Member Avatar for AMADH
0
126

The End.