43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for lfmconsummates

Can I use the html <a href></a> tag as a python form submit input type?

Software Development html-css python
Member Avatar for LaxLoafer
0
273
Member Avatar for James19142

i'm making this function that replaces single slashes in a path with doubles slashes. It works for everything but slashes because I gotta use doubleslashes to specify a single slash so how do I refer to double slashes. QString AddDoubleSlashtoPath(QString Path){ QStringList splitup=Path.split("//") ;/*supposed to be a single slash*/ QString …

Software Development c++ qt
Member Avatar for triumphost
0
1K
Member Avatar for Wolxhound90

Hey guys, I'm just wondering if it's possibe to get the results from a query and then assign the results to a variable. So I will run a query which will return the names of the tables stored in the database, then I want them to be stored in a …

Software Development mysql vb.net
Member Avatar for Wolxhound90
0
2K
Member Avatar for Ankit_Parmar

#include <stdio.h> int main() { int a[0]; int b=2; printf("%X",a); return 0; } Where ever can we use 'a[0]' means array with index zero..

Software Development c
Member Avatar for rubberman
0
311
Member Avatar for samiam5976

Hello, *'m trying to complete a homework assignment using a bool type array to find the prime numbers from 2 to 1000 based on the sieve of Eratosthenes. The code I've included below will find the prime numbers, but skips the first 11 primes (2, 3, 5, 7, 11, 13, …

Software Development c++
Member Avatar for samiam5976
0
113
Member Avatar for jaymayne

**The program below wont run due to the following errors :** *MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup fatal error LNK1120: 1 unresolved externals* **Please help me to solve these errors.** #include<stdio.h> #include<conio.h> #include<Windows.h> int Choice=1; char opt; int ch=0; void Main() { while (ch!=4) …

Software Development c
Member Avatar for jaymayne
0
120
Member Avatar for joankim

First I would like to state that I am almost positive that this is a bug in Java, not a coding mistake by me. This program is designed to print the first n (inputted) square triangular numbers (STN's). A STN is a number that is both a perfect square and …

Software Development java
Member Avatar for joankim
0
248
Member Avatar for Gé48

I have a listbox that contains numbers that vary from 0 to 99. My problem is when the number in the listbox is 0, listbox1.selectedindex will not return a value. So I cannot use removeat(x) which works for all other numbers. Can anyone give me an idea on how to …

Software Development vb.net
Member Avatar for Reverend Jim
0
219
Member Avatar for dwlamb

I'm baffled by something in a small script I wrote. The purpose of the script is to compare 2 files on a system. Somehow a tree structure was copied and am fairly certain that the files are identical The command line is as follows: /filecomp.sh /home/daniel/Documents/workspace/www/ This is the script: …

Software Development shell-scripting
Member Avatar for dwlamb
0
124
Member Avatar for Pamilerin

can any body help me by giving me a guideline on how to insert data from a populated datagrid into sql server table and how to make the values conform to the specified datatypes constructe in the sql server side...assuming the datagrid headings have already been created in the sql …

Software Development pascal sql vb.net
Member Avatar for Begginnerdev
0
850
Member Avatar for GTTravis

In my spare time i give myself programming stuff to do. Today i want to write a function that goes through a string, if the string contains any numeric value the function must return false, if the string has any special characters it must also return false else return true. …

Software Development vb.net
Member Avatar for GTTravis
0
163
Member Avatar for benclifford

I have done this code 5 times in my program for different classes and variables and it has worked fine for 4 of them but the 5th is giving a segmentation fault. The error occurs just after the cout saying 'here' in the main.cpp code below I have run valgrind …

Software Development c c# c++
Member Avatar for benclifford
0
388
Member Avatar for SillyNoob

**IDE: **MS Visual Studio 2008 Professional **Compiler:** Unknown First off let me thank any of you who take the time to read this and reply back. I'm having a ridiculous amount of trouble returning a pointer from a function and then using that returned pointer to change the pointer-pointer in …

Member Avatar for SillyNoob
0
234
Member Avatar for Labdabeta

I need to calculate chi squared cdf from x->infinity with n=255 degrees of freedom. I cannot seem to get it to work. You can find formulae for chi squared distributions using google. Here is my non-functional approximation code: double riemannsum(double(*fnc)(double),double dx, double xmin, double xmax) { double ret=0; double x=xmin; …

Software Development c++ mathematics
Member Avatar for Labdabeta
0
618
Member Avatar for shean1488

Hi everybody, I'm trying to figure out how much memory was used for merge sort algorithm. I believe it is just one or two expressions, but can't come up with them by my own. public void mergeSort (T[] data, int min, int max) { T[] temp; int index1, left, right; …

Software Development algorithm java
Member Avatar for shean1488
0
334
Member Avatar for cisumma

Hello. I am using a Swing worker to scan various tables during a can of a DB. While it is working the progress bar encompasses a busy icon. My question is how can I make the pointer take on that icon while a system scan is in progress? While the …

Software Development java-swing
Member Avatar for Begginnerdev
0
289
Member Avatar for Erwin_Rosyid

First, I apologize for posting a question as my first post but I'm in need of help since I couldn't solve this assignment. I wrote this simple code for an assignment last week. Today, the professor got to leave early so he left us an assignment which is related to …

Software Development
Member Avatar for Erwin_Rosyid
0
146
Member Avatar for jarograv

I have an assignment that I have been working on that is to modify an existing rock paper scissors program so that I ahve a method that sets the player name and a method that gets the player's name. I have created the methods however it does not allow me …

Software Development java
Member Avatar for jarograv
0
885
Member Avatar for NoUserNameHere

Why doesn't it display the output for mouseReleased and mouseClicked in console? Is there something that I am missing? import java.applet.*; import java.awt.*; import java.awt.event.*; public class MouseMotion extends Applet implements MouseMotionListener{ public void init() { addMouseMotionListener(this); } public void mouseDragged(MouseEvent e) { System.out.println("mouse is being dragged at location (" …

Software Development java
Member Avatar for NormR1
0
309
Member Avatar for nicprog

can you explain how to chack all the char inside the array without check only the first and it says equal for(j=0;j<len;j++) { if (letter==copywords[j]) { //words[j]=copywords[j]; words[j]=letter; cout << "good guess: " << words[j] << endl; //correct } else if(words[j]==copywords[j])) /problem { cout << "done!!!" << endl; system ("pause"); …

Software Development c++
Member Avatar for zeroliken
0
124
Member Avatar for Hazuan Nazri

This is my search button and textbox code, but i will got error on pelanggandatagridview and searchdatas, i need to search data on SQL DB like google! just type any word with almost same with the data and it will show on pelanggandatagridview, please help me... Private Sub Button5_Click(ByVal searchword …

Software Development gui seo vb.net
Member Avatar for poojavb
0
143
Member Avatar for shah1509

I got an application where by it will monitor all the files in multiple directories. Whenever there is files that exceeds a certain size limit, it will send warning email notification. Currently, my program will send an email for each oversize file. Meaning if there is 20 files that is …

Software Development file-system
Member Avatar for shah1509
0
201
Member Avatar for anuj6928

currently i m workin on Ms CHarts wid VB.NET nd create a chart sucessfully bt nw i wnt to click on that particular bar of that chart nd want to get that particular axis label of that bar ..

Software Development vb.net
Member Avatar for anuj6928
0
80
Member Avatar for Kert

Hey, I have a problem that I've been messing with for several hours, but with no result. I have a basic textfield where I can enter some info and I have to be able to read it and save it to a static variable by both pressing "Enter" and clicking …

Software Development java
Member Avatar for Kert
0
158
Member Avatar for renzlo

Hi All, I have a access database with these columns. USER_ID,COUNT,TIMES Let say the current record is this: USER_ID,COUNT,TIMES STEVE20,24,1.5 Now I want to updated the current count record and times, but before updating I want the old record to be added to the new record. What should be my …

Software Development microsoft-access vb.net
Member Avatar for renzlo
0
180
Member Avatar for joankim

Hey there. I'm trying to raise a longs to the second power, but as you might know, Math.pow takes two doubles, and also returns a double. Efficiency is kind of important, but it is more important to have this working. Do you know how I might go about solving this? …

Software Development java
Member Avatar for NormR1
0
2K
Member Avatar for MasterHacker110

I need help with a program i am writing. It takes in a line from the user and then decides wat to do. there are to many options to spesify. some of the options are: set TARGET 453.212.556.22 This command will differ becuase the host will never be the same. …

Software Development c++ session webcam
Member Avatar for MasterHacker110
0
274
Member Avatar for vmars

I'll try to start over again: Windows7, Python3.2.. When I click on a *.py file it starts up the python.exe interpreter in interactive mode. What I want it to do, is to RUN the *.py file. Please, how can I accomplish this. A *.py file is associated with python.exe . …

Software Development python windows-vista-7-8
Member Avatar for vmars
0
2K
Member Avatar for vmars

Greetings, I installed python3 on win7, and I would like to run the turtleDemo.py . But can't seem to get it going. Can anyone help? Thanks...vm

Software Development python
Member Avatar for vmars
0
2K
Member Avatar for visitor11

why is it "ur project is out of date" when i try to run cpp file opencv on vbs 2008

Software Development c++
Member Avatar for Ancient Dragon
0
171
Member Avatar for v3ga

I have a JLabel and a JPanel which both implements MouseClicked methods and I have added the JLabel to the JPanel but when the JLabel is clicked, the MouseClicked method of JPanel is invoked. How to fix this>??

Software Development java
Member Avatar for v3ga
0
159
Member Avatar for kalookakoo

[CODE]def scoreScreen(): #Keeps Calling score = 999999/canvas.data.timer canvas.create_rectangle(0,0,1000,460, fill = "black") canvas.create_text(500,200, text = "Your Score was", font = ("Comic Sans MS Bold", 20, "bold"), fill = "Red") canvas.create_text(670,200, text = str(score), font = ("Comic Sans MS Bold", 20, "bold"), fill = "Red") canvas.create_text(500,400, text = "You have beat the …

Software Development python tkinter
Member Avatar for jemnbuckeye
0
4K
Member Avatar for prajot_03

hi... I am having a problem in vb.net I have a data gride view ,in which 2 drop down list (coloumn) are there 1. select category 2. select item name there are 2 category brandy and whisky if i select brandy from drop down list from datagrideview it should populate …

Software Development vb.net
Member Avatar for artemix22
0
191
Member Avatar for Daigan

#include <stdio.h> int main() { char opt; do { printf ("Enter y or n: "); opt = getchar(); } while (opt != 'y' || opt != 'n'); } okay so my code does not stop when I enter y or n, which I think it should.

Software Development c
Member Avatar for Nimrod7676
0
108
Member Avatar for James19142

This app I finally got the splashscreen to the way i want it, but when I run the .exe from the explorer the splashscreen loses its transparency and has a white background replacing the glow; In when the compiler runs it directly after it builds it look exactly how it …

Software Development c++ display image qt
0
116
Member Avatar for Gobble45

Hello all, Ive done some googling around, and cant find anything that explains why my date isnt being formatted to what i tell it. my code: dim date_now as date date_now = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") So for example if the date/time is February 11 2015, 4:44:23pm it would be formatted as: …

Software Development vb.net
Member Avatar for Gobble45
0
218
Member Avatar for tleverington1

Hello all, I am having problems setting up a connection with a mysql database that i'm going to need to use for one of my projects. My code to establish the connection is as follows: import java.sql.*; import java.sql.Connection; import java.sql.SQLException; import java.sql.ResultSet; import javax.sql.ConnectionEvent; import java.sql.DriverManager; public class SQL …

Software Development java mysql
Member Avatar for tleverington1
0
161
Member Avatar for Nawaf15

Hi everyone, I'm just trying to get this address book to sort the names alphabetic lly but I could not figure it out. I know I will add an extra case with a unique letter but where do I define the function? One more thing, my code is having some …

Software Development c++ file-stream
Member Avatar for Nawaf15
-1
181
Member Avatar for fishsticks1907

def bubble_sort(a): for i in range(0, len(a)): for j in range(0, len(a) - 1): if(a[i] < a[j]): a[i], a[j] = a[j], a[i] #can someone explain this part of the code for me #i tried doing (im more of a c++ programmer): temp = 0 temp = a[i] a[i] = a[j] …

Software Development python
Member Avatar for TrustyTony
0
250
Member Avatar for SpiritualMadMan

The documentation for the textEdited signal shows the use of a required parameter const QString& void textEdited (const QString&) I am unable to get the Signal to work. Perhaps because I do not understand how to use the "const QString&" Is this a literal copy into the parameter or is …

Software Development python
Member Avatar for Lardmeister
0
413
Member Avatar for ChaseRLewis

So am doing a run down of different 3DMath Libraries. I am noticing functions with return types are HORRIBLY inefficient compared to void returns. I decided to do a rundown of how move constructor/assignment effects this. Well having a move constructor is seeing an average of 3.5-4x improvement, but doing …

Software Development c++ matrix-multiplication
0
62
Member Avatar for nuclear

I had this talk with a friend a while back and now i remmember that he said that C# is like a newer version of C++, but i think thats not correct, since C, C++, C# is kinda all oriented in this or that, what do you guys think of …

Software Development c++
Member Avatar for mike_2000_17
0
162
Member Avatar for kindofsudden

I have a bound datagridview and a dataset with tables. I have two sets of comboboxes bound to the same field "Restaurant" in the tables (mirroring each other). In the "NewEmployeeRestaurant" combobox I change the value and it reflects in the datagridview. I can shoot around clicking all over the …

Software Development dataset vb.net
Member Avatar for kindofsudden
0
288
Member Avatar for MasterHacker110

I am writing a game. The game will be controlled by the cmd, it is like a hacking game. You type: run exploit545.exploit www.tktktk.switchnet and it will exploit that exploit at the targeted computer (url). My problem is i cant seem to find a way to make the program read …

Software Development c++
Member Avatar for MasterHacker110
0
152
Member Avatar for memz

help me in this code .. it is not work .. public static void CreateFile() throws IOException { File f; f = new File("myfile.bat"); if (!f.exists()) { f.createNewFile(); System.out.println("New file \"myfile.bat\"has been created"); } } public static void getFiles(String path) { File dir = new File(path); String[] children = dir.list(); …

Software Development file-system java
Member Avatar for memz
-1
308
Member Avatar for Arjun_Sarankulu

I am developing Window Application in C#. In which i need to Send email using Outlook And to read the unread mails from Outlook and to get the undelivered mails from Outlook. I am able to send and read the unread mails from Outlook. But not able to read the …

Software Development
Member Avatar for jijo cleetus
0
250
Member Avatar for Kamina00

Hello I am learning templates and at the moment I have created a templated QuickSort function. It's rather short and self explanatory. However during the call to the QuickSort Driver function I get a No matching call error. I have detailed the error message in full at the bottom of …

Software Development c++ ide
Member Avatar for Kamina00
0
262
Member Avatar for shandoosheri

Hi I have a folder containing about 60 files and I need to copy each 3 files to a separate folder Thank you

Software Development
Member Avatar for shandoosheri
0
210
Member Avatar for justindill

package now; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; public class Now extends JFrame { JLabel FirstName; JTextField jtfFirstName; JLabel LastName; JTextField jtfLastName; JLabel Age; JTextField jtfAge; public Now(){ //Set FlowLayout setLayout(new FlowLayout(FlowLayout.LEFT, 10, 20)); //Add labels and text fields to the frame add (new JLabel("First Name")); add (new …

Software Development java java-swing
Member Avatar for justindill
0
3K
Member Avatar for xEffrego

I get a compile error on the line while (iteration < MAX_ITERATION && sqXY <=4) { The error is: expected ')' before ';' token I am pretty sure it used to work before, this problem just popped up randomly just then. Can't the while thing take 2 expressions or can't …

Software Development c
Member Avatar for xEffrego
0
2K

The End.