64,152 Solved Topics
Remove Filter ![]() | |
hi! can u help me with my popup window? my goal is to display the window then inventories are in critical level. i made the form but im having a hard time showing it when in critical level. thanks!! | |
Hi, I would like to put 'user name' and 'password' before executing my project, but I really don't know how to do it. Could anyone give me a guide line to do this? Best Regards, zawpai | |
hello I've this python code: [CODE=python]import wx class MyFrame(wx.Frame): def __init__(self, parent=None, id=-1, title=None): wx.Frame.__init__(self, parent, id, title) self.panel_1 = wx.Panel(self, -1) self.panel_1.Bind(wx.EVT_PAINT, self.on_paint) self.image = wx.Image('foto.jpg') # Menu Bar self.frame_1_menubar = wx.MenuBar() self.File = wx.Menu() self.Test = wx.MenuItem(self.File, wx.NewId(), "Test", "", wx.ITEM_NORMAL) self.File.AppendItem(self.Test) self.frame_1_menubar.Append(self.File, "File") self.SetMenuBar(self.frame_1_menubar) # Menu Bar … | |
I feel really stupid by asking such question I have the following code [code] char choice; while( ( choice = MenuChoice() ) != 'QUIT' ) { PrintMenu(); { switch (choice) { case STRING: case 's': checkInput(strings); break; case QUIT: break: default: break: } } } char MenuChoice(void) { char menuchoice; … | |
I'm trying to implement a menu choice, so the user can define what kind of triangle they have, with the focus on class implementation. I'm trying to define a class attribute that offers the choices, but then depending on the choice, sends the compiler to the appropriate attribute. Example: [CODE]int … | |
I have a listview which is populated with values from a data base. What i am trying to do is select an item from the listview via a checkbox and then have that value displayed in a listbox. But everytime all that is displayed in the list box is: (Collection) … | |
Hi, I read in data from a file something like this in my main function text text texttext texxttet texet [code] char **array; ifp = fopen (filename.txt , "r");[/code] then I allocated some memory using malloc [code]for(i = 0; i < 3; i++) { array[i] = malloc(50 * sizeof(char)); } … | |
Hi all, I have problem with Counting running sum. intDiff = days different between two dayTimePickers If I click btnOne this will change my dateTimePickerToday to next day and increase intDiff to 1 I want to use intDiff as counter when ever i check some checkboxes to count total of … | |
Hello, why wont this code give my "Rubrik" a link with its ID? I only get "www.yada.com/open.php?id=" [code=sql]<a href="skapaannons.php">Lägg till annons! </a> <?php $con = mysql_connect(" "," "," "); if (!$con) { die('Could not connect: ' . mysql_error()); } $db_selected = mysql_select_db("annons", $con); $result = mysql_query("SELECT annons.id, annons.datum, annons.rubrik, annons.pris, … | |
hi I am a beginner python user studying python is fun and i have learned many thing now a days I am working on a program to find prime numbers and non prime number in a list generated by range function. i am done with my work the problem is … | |
I want to create a method in Python that will read all of the text on a webpage and put it into a text file. Eventually I will have it distinguish between hyperlinks by having it exclude lines in the text containing href="....." Any help would be greatly appreciated. | |
Can anyone send me a simple, understandable javascript code for form validation, including e-mail validation,name validation , password validation etc. pls! send me in hurry!!!:'( | |
Hi I try to copy a list to another list but it dosent work[code] def kopi(x,y): i=0 for i in range (1,len(x)-1): x[i]= y[i-1] i+=1 print y [/code] I dont know what is the problem with my code. thanks alot for your help. | |
Hey. I'm working on a simple project that requires a way to find all the empty grid cells accessible along a path that's <= n cells long (an analogy would be TBS movement), and I've got an [i]almost[/i]-working piece of code for it. Here's the function I wrote: [code=Python]def findArea(distance,origin,gridUsed,emptyChar): … | |
Hi to all, after two months I decided to give Python one more chance. Here is a little code snippet about counting number of words in text file. (Under word I assume any combination of letters and numbers delimited by standard separators " .,\n\t" [code] file = open ( "Test.txt", … | |
Hi guys, I have a simple question. I'm trying to import my modules from a different folder (the different folder is in the same place as the the program I'm importing from), but I don't know how. I've looked on Google, but I've had no luck so far. My question … | |
How do I read a file thats in a folder, but is in the same folder as the exe.? And how do I do this no matter what folder the root folder is placed in? | |
Running 64-bit Fedora 8 on HP laptop with AMD Turion 64bit/dual core, developing in Eclipse, compiling with g++. The [icode]clock();[/icode] function always returns 0. Any ideas why this is so? I have had no problems using the rest of the [icode]ctime[/icode] library. [code=cpp] #include <ctime> using std::clock; #include <iostream> using … | |
Hi, I have a problem creating one part of the program, Lets say we have a line (from data file): 333 hou 23se 444 bi 4g and the program should change to : house big deleting first number if there is one ,and changing word parts to numbers, and deleting … | |
I have a problem geeks!!! In following program..... [code=c] #include<stdio.h> #include<conio.h> void main() { float f=0.7; clrscr(); if(f<0.7) printf("C+"); else printf("C++"); getch(); } [/code] in the above program when I give the value of f=0.7 and in if statement also I put the same value 0.7 then the output of … | |
Hi, I was wondering how to make a program listen on a port... lests say port 54321. All I want for it to do is listen for any message sent on that port, and then output "54321"... Is this as simple as I think, or is it something that is … | |
I was wondering how i could set up a random number loop, but have it stop looping when it hits 1 or any other number i assign. i use dev C++ compiler [code] //Damage Roller #include <iostream> #include <cstdlib> #include <ctime> #include <conio.h> using namespace std; int main() { srand(time(0)); … | |
I use an image resizer/veiwer script That works Great in IE, but I've discovered that the custom page I use for Showing the Images, appears as text in Firefox. How can I make it show as text/html ? It's a simple enough page. page code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML … | |
[code] <body onload=function(){document.getElementById("place_holder").src =document.getElementById("imgurl").value;} > <script> function ResizeThem() { maxheight=250; maxwidth= 250; imgs=document.getElementsByTagName("img"); for (p=0; p<imgs.length; p++) { if (imgs[p].getAttribute("alt")=="user posted image") { w=parseInt(imgs[p].width); h=parseInt(imgs[p].height); if (parseInt(imgs[p].width)>maxwidth) { imgs[p].style.cursor="pointer"; imgs[p].setAttribute('alt','Reduced Image - Click to see full size'); imgs[p].onclick=new Function("document.getElementById('imgurl').value = this.src; iw=document.getElementById('this.src','viewer')open();iw.focus()"); imgs[p].height=(maxwidth/imgs[p].width)*imgs[p].height; imgs[p].width=maxwidth; } if (parseInt(imgs[p].height)>maxheight) { imgs[p].style.cursor="pointer"; imgs[p].onclick=new … | |
![]() | Hi. So, my assignment is to convert an infix expression into a postfix one, and then evaluate it. I already completed the infix to postfix part. I have a small problem evaluating the postfix expression though. The expression deals with booleans, and allows the ! operator. I'm not sure how … |
Im using the following script to resize and Automate thumbnails of user posted images on my forum. However I dont like the white background of the new window. Im wondering if its possible to launch the full size image in a customized window with a background image, such as http://h1.ripway.com/Inny/ImageViewer.html … | |
Basicaly I'm trying to do this [code=C] int create_student(student_data *student){ printf("Nome do aluno:\n"); fgets(student->name,name_limit,stdin); //wtf? printf("Número do aluno\n"); fgets(student->number,name_limit,stdin); printf("Aqui devia estar um nome %s",student->name); return 1; } [/code] Where student is a custom struct, student->name is char array. For some reason it seems to skip the fgets. Replacing with … | |
Hey, I'm trying to get my program to run correctly. I can get the black screen to come up after compiling, but it does not say "Press any key to continue...". I'm reading from input file and want to see results in an output file. My ultimate goal is to … | |
I've tried searching the web and cant find anything to help me. I'm trying to create a 2D java maze application and have come up with the code below. It generates the maze and GUI no problem, and I've worked the code out to create a xPosition and a yPosition … | |
hello, i'm a newbie programmer (and to python, double trouble :) and running into issues reading and writing files. i'm successfully running the code below to manipulate and remove the first few lines of a text file. The text file (file1.txt) is approx. 329kb but when i run the code … | |
Hi, I wrote a program to input an INFIX convert it to POSTFIX and then evaluate it. But the function 'evaluarRPN' used for evaluate POSTFIX some time work and some time not, depend of the input. For example: (8*9-8/5+6)*(5-9) = -305, but the program display -308 (8+9) = 17, display … | |
i am new to this database. can i know where can i type the command?:'( | |
I need help with manipulating my computers clock through a c++ program and i have no idea on how to make the program. Does anyone have any idea on how to do this? | |
I'm a Comp Sci I student in college, and I have an assignment to make a quick sort that can sort vectors up to size 32000 with no problem. So, my program has been having a lot of trouble with big numbers, and every once in a while, I get … | |
Hey, Yet again i was just mucking around on DEV-C++ and made this code.. [code=c++]#include <conio.h> #include <iostream> using namespace std; unsigned long Double(unsigned long doubleMe) { return (2 * doubleMe); } int main() { unsigned long numberToDouble; unsigned long doubledNumber; cout << "Enter a number you would like to … | |
How does one declare a string as a data member in a class? I tried it this way, but my compiler says that's not it [code] class cdrom { public: cdrom(); void loadinfo(); float returncost(); void displayinfo(); void changedata (); private: float cost; string name; string cdtype; }; [/code] | |
can we go for ms excel for creating charts in php(with mysql) instead of using jpgraph? please tell me which is the easiest one to use 9between ms excel and jpgraph)? | |
I am writing a doubly linked list, but i am having problems inserting. Here is my code for the node, and main. The issue is in the main when i call insert, it gives me null. How can i get the node to point to head, and tail(insert it). Help … | |
Hello all, I have an assignment to create a base class for a vector. Now after reading through the instructions I am still unclear the instructions. I am NOT asking for you to do my homework! I just need some clarification. PLEASE DO NOT POST ANY CODE! Here is a … | |
I have written the following code that I will post below. Each time I try to compile it I receive the following error. [CODE]1>main.obj : error LNK2001: unresolved external symbol "public: __thiscall OrderSet::OrderSet(void)" (??0OrderSet@@QAE@XZ) 1>C:\Users\Bill\Desktop\School1\c++\c++ spring cs2\program2\Debug\program2.exe : fatal error LNK1120: 1 unresolved externals[/CODE] Note I am using Visual Studios … | |
I am working on my senior project and I am using C#.net and Microsoft Access to create a program that lets the user store information into a database. I have many tables but the primary table that mostly everything connects to is the customers table. Well I know how to … | |
I need to know how to create a triangle, and how to fill it with color. I am new to programming and would appreciate the help. I am not running the applet in a web browser, just executing it. Thanks. | |
Hey, Was bored so *TRIED* to make this simple countdown program but i'm just not sure what to put in the for loop? [CODE=C++]#include <iostream> #include <windows.h> using namespace std; int main() { int countDown; cout << "Enter a number to count down from : "; cin >> countDown; for(int … | |
I am currently attempting to program my first game in C++ using Microsoft Visual Studios Express 2005. After doing some research, I found that it is missing several packages including the one that I need (windows.h). That's free software for ya. Anyways, I was having trouble finding a way to … | |
Hi, I have just downloaded 10g express edition but there is no user interface like SQL Server has. Does anyone prefer any program because i am new for Oracle and have never used before. Thanks | |
Hey, I was using some code to write int's defined by user to a file but found when you use [CODE=C++]myfile.open ("lover_names.txt"); myfile << firstLover << " " << secondLover << " " << lovePercent << "%\n\n"; myfile.close();[/CODE] It replaces the other text in the text file, the answer will … | |
Hi all, I think I might try my hand at creating a text based adventure game in java. No I don't need cutting edge graphics, or state of the art fatalities etc what I am looking for is a solid, story driven adventure/RPG game. I would appreciate some advice on … | |
Its an assignment I have to submit, we have to make a maze using stack and input text file but I admit that i'm tottaly lost in this, something wrong with my code (or really alot of mistakes) please help! #include <iostream> #include <fstream> using namespace std; struct node { … | |
Does anyone know if rs-232 c++ code written with the windows.h library is easily changed to support rs-485 and rs-422 or if its not similar at all? Thanks. | |
I can't figure out why this won't exit when quit is entered. [ICODE] import java.io.*; import java.util.*; public class Trial { static final String ADD_COMMAND = "add"; static final String REMOVE_COMMAND = "remove"; static final String QUIT_COMMAND = "quit"; static final String PRINT_COMMAND = "print"; // Create a single shared … |
The End.