64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Khyxz

Hello, Can you please help me? Is it posible to **input data** on a "DATAGRID" **even if it is not connected to a database**? My Datasource Connection is not working because of some installation problems. I don't have the CD for installation that is why I couldn't re-install it. How …

Member Avatar for oussama_1
0
198
Member Avatar for tanatos.daniel

I'm having a ComboBox in which I added items in order provide the user autocomplete for the text he's typing. I am looking for a property of ComboBoxes that could identify if the text was an item of the ComboBox or not. (I would like not to loop each time …

Member Avatar for tanatos.daniel
0
447
Member Avatar for kazkuzzer007

I need help to solve my problem in making a login system. why always when login is rejected, the rejection order that I made: "You are not authorized to access this page", but that when admins are not logged in, even though I have entered the correct username and password …

Member Avatar for kazkuzzer007
0
141
Member Avatar for ravi_14

According to Herbert schildt C++ complete reference "A non-static member variable cannot have an initializer." however when i run following code,it runs.. class ABC { public: int a=3; ABC(); }; ABC::ABC() {cout<<a; } int main() { ABC obj; } regards,

Member Avatar for deceptikon
0
191
Member Avatar for Mohammed_9

Is this correct? #include <stdio.h> #incluede <string.h> void getname(char name[][50],int num) int main() { void getname(char name[][50]) { for(int i=0;i<numofname;++) scanf("%[^\n]",name[i]); }

Member Avatar for 2teez
0
249
Member Avatar for fobos

Hello all, im having some problem, i have a function call dbconn which i run after my session. i can successfully connect to the database and run the mysql statement outside of the function with no problems. However, when i put it in the function and return it, nothing happens. …

Member Avatar for diafol
0
190
Member Avatar for Ajay_9

I am getting the error while inserting the image from win-form.Can anyone please tell me the in the code.I am using Visual Studio 2013 and MS Sql 2008 R2. Thanks . using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using …

Member Avatar for Ajay_9
0
165
Member Avatar for liz517

I am to write a censor program for all 4 letter words from an imported file, only I'm stuck. can you help? [code = python] # wordcensor.py # Program replaces 4 letter words in a text file. import string def main(): print "This program replaces 4 lettter words in a …

Member Avatar for kcm1
0
1K
Member Avatar for ravi_14

cout is defined in std namespace and we also include iostream to use cout...i am confused ,please clarify this.where 1)cout is defined 2)where it is declared. and if we are including iostream ,then what is the need of STD::COUT regards,

Member Avatar for vmanes
0
533
Member Avatar for admiri92

Are exceptions standardized in C++? I mean if the rules of exception handling might be changed in the future. i.e: int Funct1(int) throw(); // does it throw an exception?

Member Avatar for mike_2000_17
0
291
Member Avatar for Thevenin

Hi all, I need some help with this problem. I have a function that has 2 fields, name of the folder to be created and the featured image to be put inside. This code works fine online, but when I imported it on my localhost (MAC Mavericks+XAMPP), the code creates …

Member Avatar for Thevenin
0
360
Member Avatar for alagez

Hai there, I am a robotic student and very new in python programming. Here, I have a project to classify the type of robot. For example, a customer would like to buy a robot arm for their company. So, this project will aid them to select robot of their choices. …

Member Avatar for alagez
0
290
Member Avatar for Rahul47

Hello folks, This nitty problem is haunting me today. Here is the code I have written, but am not getting the expected output. This is a program for printing matrix in spiral order. #include<stdio.h> #include<stdlib.h> int main() { int rows,cols,i,j; int tr=0,rc,br,lc=0; /* tr = top row index. rc = …

Member Avatar for Rahul47
0
302
Member Avatar for tony75
Member Avatar for ParPau

Having issues with array. Seems to pull in the enum files (month and average rainfall) and print accordingly. Also seems to read in the updated rainfall per month. However, problem is I can not make updated print with the enum. Also, last line in program has ..."actual[i]". If use a …

Member Avatar for ParPau
0
280
Member Avatar for tanatos.daniel

I would like to do something like this: comboBox6.Items.AddRange(new IEnumerable<int> { Enumerable.Range(1,8).ToArray() } ); (add numbers 1 to 8 to ComboBox Items using an IEnumerable object), but i can't figure out how. Thanks.

Member Avatar for castajiz_2
0
355
Member Avatar for Khyxz

I have a backspace key button. Then I have two text boxes. Well, it is working but when the letters in a certain text box are all cleared up then i keep on clicking the button I get this errror. This is the code: desiredTextbox.Text = desiredTextbox.Text.Substring(0, desiredTextbox.Text.Length - 1) …

Member Avatar for Khyxz
0
150
Member Avatar for Suzie999

I'm creating some automation utils. Part of it is automating mouse input. I think I have my math wrong because the X coordidnate is incorrect at certain points for example is I give it x = 114 which should translate to 114 pixels from left of screen (0) it will …

Member Avatar for Suzie999
0
764
Member Avatar for V3N0M

I just started learning Java and I have been playing around with it. I am trying to make this program return a double value like 1000/3 = 333.33333..... but it returns 333.000 what am I doing wrong in Java. It works in C though :P. Thanks in Advance! //Exercise : …

Member Avatar for JamesCherrill
0
210
Member Avatar for Alex_20

I'm getting this every time I try and write Hello, World in Python I get this. I'm using Pycharm 3 C:\Python33\python.exe C:/Users/Alex/PycharmProjects/Learning/Helloworld File "C:/Users/Alex/PycharmProjects/Learning/Helloworld", line 1 print "Hello, World" ^ SyntaxError: invalid syntax Process finished with exit code 1

Member Avatar for ishaan3731
0
277
Member Avatar for jared.geli

Hi guys can you help me in this one? I can add cell values in Datagrid using their column address or column name but I want to add the columns which contain a specific word for example I want to add all cells with a column name containing "Amount" Dim …

Member Avatar for jared.geli
0
175
Member Avatar for Zahra_1

import random while True: dice = random.randrange(1,5) dice2 = random.randrange(1,7) dice3 = random.randrange(1,13) sides = int(input)("Which sided dice would you like to roll? You can choose a 4-sided dice, a 6-sided dice or a 12-sided dice. Type 0 to exit the loop.") if sides ==0: break elif sides ==4: print …

Member Avatar for Zahra_1
0
4K
Member Avatar for Khyxz

![ff8496abfb91bf20a23a64db591fa997](/attachments/small/4/ff8496abfb91bf20a23a64db591fa997.jpg "align-left") Hello there! Newbie here! It is my first time to post something here! Can somebody help me please with my problem on my codes. I have already build/created a **Log In Form** but my problem is I created an **On-Screen Keyboard** which must be use for that **Log …

Member Avatar for Khyxz
0
1K
Member Avatar for firepower

please help me how to close the window. code: JButton quit = new JButton(); public Mainmenu() { setLayout(new FlowLayout()); Icon quitb = new ImageIcon(getClass().getResource("quit.jpg")); quit = new JButton(quitb); add(quit); quit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { } });

Member Avatar for mKorbel
0
166
Member Avatar for GagaCode

hey all once again i have a little issue ... i'am really having a hard time with this issue i have a datagridview that contain one column as a text and another column as a combobox i would like to populate the combobox from MS Access Table and as a …

Member Avatar for GagaCode
0
299
Member Avatar for mwnt2014

JavaScript for mobile browser detect img changed according to mobile browser wheather iphone or android ..different images for both....

Member Avatar for diafol
0
109
Member Avatar for davy_yg

index.php echo '<a href="'<?php echo SITEURL; ?>'IndonusaCMS/event_article.php?id='.$data['ID'].'">'.$data['title'].'</a>'; wds.php <?php define('SITEURL', 'http://www.indonusa.net.id/'); ?> When I try to run index.php this error appears: Parse error: syntax error, unexpected '?' in E:\xampp\htdocs\IndonusaCMS\index.php on line 106 How to fix it?

Member Avatar for Alberto Bucur
0
125
Member Avatar for kgizo

Good day What I would like to do is to alter a mysql table with data in it then add manipulated string data to that created column i.e I first add an extra column to my table then add a reverse string coded from data that had already been inserted. …

Member Avatar for kgizo
0
299
Member Avatar for joseph.suanino

#include <stdio.h> #include <math.h> #include <conio.h> #include <process.h> #include <string.h> void main() { int i, n, diff; int x = rand() % 100; int bMoveHigher = 0; int bGuessedCorrectly = 0; printf("Welcome to Guess a Word Program\n"); for (i = 1; i <= 5; i++) { printf("ATTEMPT %d: Enter the …

Member Avatar for Schol-R-LEA
0
225
Member Avatar for Thevenin

I am trying to order by date DESC some events read from a CSV and print out them. The CSV file has to be read until it reaches the end and then order by date DESC only the entries in the following categories: champions and euro. This is the code …

Member Avatar for Thevenin
0
2K
Member Avatar for MatthewYeend

package die.java; import java.util.Random; class DieGame2 { private final int sides; private final Random generator = new Random(); public DieGame2(int s) { sides = s; } public boolean throwDie() { int faceValue = generator.nextInt(sides) + 1; System.out.print(faceValue); return faceValue == 6; } public static void main(String[] args) { DieGame die1 …

Member Avatar for stultuske
0
346
Member Avatar for pooja_3

I need some help. I am a newbie to php .. What I am trying to do is to parse an xml file and create a drop-down for the user. I have attached how my drop down list looks currently. What I want to do is to add a sub …

Member Avatar for diafol
0
1K
Member Avatar for Niveatha

hai.... i am doing inventory project. if sell a product it should afffect the stock. so i need a coding to retrieve the stock quantity and i have to change the value according to sales then i have to update the values into the stock table and also if no …

Member Avatar for Niveatha
0
104
Member Avatar for nitish.mohiputlall

here is the original codes that has been set in the question paper: #include <stdio.h> #define numitems 10 int main(int argc, char* argv[]) { int data[numitems]; int i; int *ptr; for(ptr = data; ptr < &data[numitems]; ptr++) *ptr = 0; for (i=0;i<numitems;i++) printf("data[%d]=%d\n", i, data[i]); return 0; } HERE ARE …

Member Avatar for 2teez
0
537
Member Avatar for Siberian

Can you write within the script the new order of an array as a comment without the script actually using it ? Suppose I have an array of 10 items, then I push and unshift more items in the array, for myself or anyone else viewing the code I want …

Member Avatar for diafol
0
189
Member Avatar for nitish.mohiputlall

here is the original codes that has been set in the question paper: #include <stdio.h> #define numitems 10 int main(int argc, char* argv[]) { int data[numitems]; int i; int *ptr; for(ptr = data; ptr < &data[numitems]; ptr++) *ptr = 0; for (i=0;i<numitems;i++) printf("data[%d]=%d\n", i, data[i]); return 0; } HERE ARE …

0
93
Member Avatar for katharnakh

Hi, How do I disable Copy/Cut/Paste operations on a textbox in Tkinter. I want to implement this in simple login form, where I found I can copy or paste or cut from textbox which is meant to accept PASSWORD. Can we do that? How? Thank you, Regards, kath.

Member Avatar for Gribouillis
0
2K
Member Avatar for Stefce

Hello everybody i have a little problem with making a java command for program i have some code but i do not know how to continue i stuck in one place BTW the command i want to make is > /sendcash [username] [money] // how it looks like I have …

Member Avatar for stultuske
0
229
Member Avatar for polarpandabear

Hello Everyone! I'm a return user to this community. I just want to ask some help regarding of my problem in my site. the problem is that some of my php files can't display some of my content in our website. I'm a main programmer in our team and in …

Member Avatar for cereal
0
483
Member Avatar for CarterLangley

Can never seem to get things to work! <?php if(isset($_POST['add'])) { $person_id = $_POST['person_id']; if (isset($_POST["cv"])) { $cv=1; } else { $cv=0; } if (isset($_POST["document_id"])) { $document_id=1; } else { $document_id=0; } if (isset($_POST["application_form"])) { $application_form=1; } else { $application_form=0; } if (isset($_POST["passport"])) { $passport=1; } else { $passport=0; } …

Member Avatar for CarterLangley
0
264
Member Avatar for keyroche

Hello. I am using an iframe in my page to submit a form to so that it can upload a file - since you can't do this through the jquery ajax function. I have everything working, but I want to be able to hide the iframe and get the content …

Member Avatar for kiranmaijalem
0
2K
Member Avatar for rabadiyaronak

i have two different programs that compare float and double variales and gives output , i shown that below : 1. #include<stdio.h> main() { int r; float f=22.5; double d=22.5; r=(f==d); printf("r=%d",r); } **Output:- r=1** 2. #include<stdio.h> main() { int r; float f=22.7; double d=22.7; r=(f==d); printf("r=%d",r); } **Output:- r=0** …

Member Avatar for jwenting
0
298
Member Avatar for garwil

Hi all... Hope someone can point me in the right direction here as am stumped.. I have two domains, same name but one is .com and the other .co.za. The .com domain is 'parked' and points to the .co.za domain. In the co.za domain my landing page (index.php) has three …

Member Avatar for diafol
0
207
Member Avatar for ashley.vanhoesen.7

Write the definition of a function named copy that reads all the strings remaining to be read in standard input and displays them, one on a line with no other spacing, onto standard output . void copy() { string x; if(cin >> x) { if(cin != '\n') { copy() } …

Member Avatar for NathanOliver
0
1K
Member Avatar for Alex_20

I want to start game developing but I need help choosing what programming language to learn. I already tryed Lua,Java,C++ but not Rudy and Python... So here is my question, I need the pros and cons on Ruby and Python and your recommendation. I need something I feel comfortable with.

Member Avatar for jwenting
0
493
Member Avatar for CarterLangley

Hey guys, the code below is where I am having the problem. The error I am getting when trying to insert the record is *Could not enter data: Unknown column '3' in 'field list'* <?php session_start(); include("db_connect.php"); if(($_SESSION['user_id']) && ($_SESSION['access_level'] == 1 ) ) { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD …

Member Avatar for CarterLangley
0
197
Member Avatar for Zahra_1

![0930ac8855b75aa7c11605d2c389c3a5](/attachments/small/4/0930ac8855b75aa7c11605d2c389c3a5.PNG "align-left") here is the task, I don't want anyone to do the coding for me. I just would really love if I got a starting point on how to begin this code. thank you. oh and this is in python program.

Member Avatar for Zahra_1
0
224
Member Avatar for mavtcr

Friends please help me... I have Three text boxes 1.Bank 2.Acno 3.Name I am selecting record from database where Bank and Acno are =(txtbank.text and txtacno.text) If any record found, the focus should go to the third textbox-'Name' else message "Record not found" should be displayed.I tried the following code …

Member Avatar for mavtcr
0
461
Member Avatar for Sujan Shrestha

i used this code to insert data into database but nothing happening.. <?php session_start(); if(isset($_POST['submit'])) { $dbhost="localhost"; $dbuser="root"; $dbpass=""; $tablename="requested_quotes"; $conn=mysql_connect($dbhost, $dbuser, $dbpass)or die("cannot connect"); mysql_select_db('1')or die("cannort select DB"); $fname=$_POST['fname']; $lname=$_POST['lname']; $sex=$_POST['sex']; $email=$_POST['email']; $phone=$_POST['phone']; $address1=$_POST['address1']; $address2=$_POST['address2']; $country=$_POST['country']; $city=$_POST['city']; $state=$_POST['zip']; $date=$_POST['date']; $contactme=$_POST['contactme']; $interest=$_POST['interest']; $sql="INSERT INTO $tablename(first_name, last_name, sex, email,phone, address1, address2,country, …

Member Avatar for Sujan Shrestha
0
3K
Member Avatar for kal_crazy

Is it possible to change the value of a const variable? My aim is to change the directory of the Shell. I have set `const char* path = "C:\\"` as current directory. So if the user inputs "gd" then it will ask a directory to be set as the new …

Member Avatar for mike_2000_17
0
325

The End.