199,114 Archived Topics
Remove Filter ![]() | |
`Inline Code Example Here`hello everyone, i am working on a project , in this as all other project we have a login required so i designed a login panel but when i run the project the textboxes of username and password are having its value as "admin",i tried a lot … | |
Someone a few months ago told me that I had to change a bunch of code from stuff like this... // config_options.h // define _FOO if and only if you want option foo to be available #ifndef _FOO #define _FOO #endif // main.cpp #include "config_options.h" #ifdef _FOO void foo() { … | |
What am I doing wrong? In the following templated functions, I'm trying to convert all my CopyMemory functions to std::copy functions. I'm not sure what I'm doing wrong as they don't work as they should with the std::copy but instead, they work with memcpy and CopyMemory. I'm only doing it … | |
I'm having problems with the code below. I figured since Monster1=new Orc 's attack function can't know whether it's attacking a Troll or Goblin since it accepts an Entity pointer as an argument. But having the be_attacked functions doesn't help either #include<iostream> using namespace std; class Entity { public: virtual … | |
Hello all. public class LoginFragmentActivity extends SherlockFragment { EditText e1 = null; EditText e2 = null; Button b; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInatanceState) { View view = inflater.inflate(R.layout.login_layout, container, false); e1 = (EditText) view.findViewById(R.id.reg_email); e2 = (EditText) view.findViewById(R.id.reg_password); b = (Button) view.findViewById(R.id.btnLogin); b.setOnClickListener(new View.OnClickListener() { @Override … | |
hello! I'd like to rank a numpy array without getting the number positions changed. I was able to do it using the numpy function below but it keeps ranking the 'NaN' values as well, how can I get it to ignore them and just rank the real number values instead. … | |
I'm trying to do something simple like get calc.exe to start minimized, but it's not happening. import subprocess import win32gui import win32con info = subprocess.STARTUPINFO() info.dwFlags |= subprocess.STARTF_USESHOWWINDOW info.wShowWindow = win32con.SW_SHOWMINIMIZED x = subprocess.Popen("calc.exe", startupinfo = info) It pops up the same as always, no matter what I provide for … | |
Hi, I've posted m code below and cant get it to work because of *fatal error c1004 unexpected end-of-file found*. Appreciate any help. #include <iostream> using namespace std; /* //what i addedint q[8][8]; void printSolution();//int q[]); void hereQueen(int q[], int n1, int n2); */ class Queens { bool canGo; int … | |
How am I supposed to take input/catch CTRL+C or CTRL+V commands ? | |
i have a table in Mysql's database, tblStudents, which has 1,000 stdents, from different departments, e.g 500 from IIT, 300 from IMS, 100 from Medical, 100 from Engineering. and on fornt end in, i have 2 dropdown boxes, one drpdwnDown box is filled with values, IMS, IIT, MEDICAL, ENGINEERING. now … | |
Someone told me that even the basic Oracle SQL commands are useful to learn and I can find jobs with it. I will not just learn the basic commands of course, I will do my best to learn it completely but first i need to know if its still commonly … | |
Why is C++ on linux basically C? I've tried everything to avoid C on linux but it's simply near impossible. I've tried to stick directly to the standard library but I somehow find myself using dirent.h, types.h, etc.. Is there any other ways to do these other than using C … | |
Hello, I'm very new to C#. Basically, this is an existing windows form application, I'm supposed to add a checkbox in two existing forms. The forms have other comboxes and and textboxes. There's a restricted folder for many departments.So, when i fill up the other fields and check this check … | |
I have just started getting into SFML and Visual studio as well . I have always worked on turbo c++ . I am not sure I understand the very first code that I have come across while getting into SFML . Here is the program.. #include<iostream> #include<SFML\System.hpp> int main() { … | |
What should be the output to the following code ? I am confused because I am getting a slightly different output everytime . Any other advise would also be appreciated . #include<iostream> #include<SFML\System.hpp> void apple_thread(void *data) { using namespace std; for(int i = 5 ; i<11 ; i++) { cout<<"I … | |
Ok Guys, got a question on a nested list and how to return the values from it. Writing a scout script for a game I play. The return is this: [[278,278,-1,[25076,u'name',3,6,u'',0,0,1,[0,0,None,5]]]] [[278,279,-1,[25076,u'name',3,6,u'',0,0,1,[0,0,None,5]]]] I'm wanting to place the coordinates i.e. 278 and 279 along with the 3rd value in this case … | |
I am working in php along with Mysql in backend, why this query is giving error : You have some problem in mysql syntax, check manual, this is that query: $Userid= $_SESSION['userid']; echo $Userid; $Dep = "select departmentName from department where userid='$Userid' "; $qry ="select registrationNo,name,fatherName,cnic,gender,discipline,department,admissionSession,email,password,address,domicile,contactNo,status,currentEmployer,designation,salaryInfo,totalExperience,lastOrganizationname,organizationAdd,organizationPhno,organizationEmail,Remarks from students where registrationNo='$RegNo' … | |
I know little bit of php-mysql and web programming. For my project work, i made one login module, it contains two pages but it has some errors. I use WAMP for project, whenever i feed data and press login it does not go to profile.php page and session does not … | |
Okay this is strange. I'm new to AJAX and I'm trying to use it with php to check a variable from my database before a form is submitted. It works almost fine. The strange part is that it seems to be saving anything I enter into the text field. var … | |
> Quoted Text Here Hello Guys ... HOw's are you .. kindly guide mein about format of DateTimePicker where user can select date from calnender as wel as time also .. Thanks in advacne waiting for your reply ... TC | |
i have 2 tables as follow sales (table1) sales_id, userid(buyerid), product id, productname, orderid, status users (table2) userid, username, pass Now, I need to display the top customer who makes regular purchase on my shopping site. How can I achieve this? I tried as SELECT A.(*), B.username FROM sales A, … | |
I'm having a problem with the code below. Can anyone help me? #include <iostream> #include <string> using namespace std; class Aircraft { public: Aircraft() : MPrice(0), LPrice(0), BPrice(0), PPrice(0), TotalPrice(0) , Stars(0) {cout<<"aircraft constructor"<<endl;} virtual ~Aircraft(){cout<<"aircraft destructor"<<endl;} protected: string Missile; string Laser; string Bomb; string Propulsion; int MPrice, LPrice, BPrice, … | |
Good day, I've created a webpage on localhost using php. I have a local network with 3 computers at home. I can access the webpage only from one computer (http://localhost/mywebpage/). What changes should I make in phpmyadmin to be able to access the webpage from all computers? Is it possible? … | |
data = open('sketch.txt') for each_line in data: try: (role, line_spoken) = each_line.split(':', 1) print(role, end='') print(' said: ', end='') print(line_spoken, end='') except: pass data.close() I'M gettin the following error when I run this code but it looks exactly like what I'M seeing in my Head First book. File "sketch.py", line … | |
Hi I have a log in script that if successful starts a session. When you enter the correct info it days that you are logged in, but when you try to acces a restricted file it says that you are not logged in. If you then log in again it … | |
What is the difference between Class and structure | |
my text is to show on webpage is- Comment ça marche Tu es bloquĂ© par une question, ou par un exercice de mathĂ©matique, ou par un chapitre de chimie que tu n’arrives pas Ă comprendre ? But my website is not showing some french charachter of this type of text … | |
hi everyone. I have just started to program in php. I tried to develop a php code to retrieve data from a form and insert into a table created in Mysql. Here is my php code. This code gets executed when the user submits the form. <html> <body> <?php $con … | |
I have a small Python program that should react to pushing the up button by running an appropriate method. But instead of doing this, it gives me a confusing error... from tkinter import * class App: def __init__(self, master): self.left = 0 self.right = 0 widget = Label(master, text='Hello bind … | |
Hi Everyone! My question is on Pagination (as it is called). I have a php program that accesses a database and shows the result list with HTML. Well, if my result list is quite long how do i code so that only say 10 rows show per page. I know … | |
hey guys reading deitel book and have a little problem with the code that I cant understand #include <iostream> using std::cout; using std::endl; #include <iomanip> using std::setw; int main() { // define array sizes const int responseSize = 40; // size of array responses const int frequencySize = 11; // … | |
i am making a booking system and i am thinking how am i suppose to know if there is a conflicting time.. i want to add an Error message if the time is conflicting in other event help me please Example: Date Time Start Time End DEBUT September 18 5:00 … | |
I have Table of Contents working fine. I can't get a Table Of Figures to work, however. I have tried setting the Caption property, but I still get "No Tables of Figures Entries Found". Anybody, HELP! Thanks. | |
I have problem with external links, where users add additional characters to the end of a variable. The links should be something like "page.asp?ID=261", however I see many external links to the page with malformed additional characters, like "page.asp?ID=261FTR223". These are mostly from social networking sites. I need to clean … | |
Does anyone know tutorials for link list to be able insert,delete,cout list,give id and time void list_insert( UINT time, UINT id, UINT event) { } void list_head_delete() { } UINT list_head_event() { work_ptr = list_head; if(work_ptr == NULL) { return 0; } else{ printf("Should print the list head \n"); return … | |
I have a domain registered. I've uploaded my pages in httpdocs of my webspace. Other html pages are working fine, but my asp.net pages are not working properly. when i try to load those pages i am getting error as below : Server Error in '/' Application. -------------------------------------------------------------------------------- Runtime Error … | |
How can i specifically setfocus a textbox column in datagridview? | |
can someone help me solve this problem...i can't solve it..this is for my final project report & i really need help from the expert one.... | |
Hi, I have the below code to block the view source but its not working for me. Someone pls take a look and let me know. Thanks. [CODE]<html> <head> <script language="javascript"> function onKeyDown() { // current pressed key var pressedKey = String.fromCharCode(event.keyCode).toLowerCase(); if (event.ctrlKey && (pressedKey == "c" || pressedKey … | |
import java.util.Scanner; // Needed for the scanner class /** Chapter 2 Programming Challenge */ public class Wordgame { public static void main(String[] args) { String name; //The user's name String age; //The user's age String city; //The name of a city String College; //The name of a college String Profession; … | |
Basically I am attempting a HW assignment for questions that a frequently asked in interviews. I am not sure if I am having problems with the coding or actually understanding what they question is asking for. Basically I am asked to find an element in a sorted array and that … | |
I have a project in vb.net which i would like to create a program that a textbox will only allow alphabet,space and dots and it is in uppercase only.. no special character and numbers allowed. Thank you and God bless.. Hope to help me.. | |
How to detect end of video and redirect to another page using php for dynamic url? I have, <video autoplay> <source src=videos/poke.avi type='video/mp4; codecs="theora, vorbis, avc1.42E01E, mp4a.40"' > <p>Your browser doesn’t support video.</p> </video> I want to do this, video.onended = { // do stuff (redirect to show content) } | |
Hey folks, I am working on a project (its a continuation of my previous project)... but with a few additions. First off, i have to use class templates... I have used them before, but not when working with multiple class definitions and multiple files. Below i will post sections of … | |
HI All, I'm writing an application in Visual Basic .NET but the application will use a SQL backend. If the user runs the application and the backend database is not set up, I want the user to select a SQL Database Instance, supply an administrator user ID (sa) and Password … | |
I have a textbox has a maxlength of 18, e.g Textbox=ABC123456789012345 i want that the first 3 input must be letters only. | |
i have made a database in sql+. it has a database. there is a table project. its columns are p_id,p_name,p_manager. i have inserted 5 rows in above table. in d front end in vb6 i have a form . please help me with the code such that my p_id is … | |
i am trying to make a program where i have a server with multiple clients, where a client sends a message to the server and when the server replies to it, the server broadcasts the reply to all the clients. the code has some error and is not working. i … | |
Hey guys! I'm having a problem and I hope you guys can help me figure it out. I have to create a program that prints all the armstrong numbers from a user given lower and upper bound. I have a lot of the code but I can't seem to get … |
The End.