199,114 Archived Topics
Remove Filter ![]() | |
Please help I'm having trouble getting my program to return any answer other than "You Lose!". Where is my mistake? Thanks in advance for any help. [code] print "Let's Play Rock, Paper, Scissors!!" print "Rock beats scissors, paper beats rock, and scissors beats rock and paper! Have fun!" import random … | |
i want to use marquee control in asp.net2005 application.please tell me how to use it? | |
Hey, I cant execute application through cmd, when the application trying to read the argument which was sent to it (text file), it fails... when i'm truing to execute it through the IDE (vs2008), it works ok... that's what i did in the main method : [CODE]static void Main(string[] args) … | |
hi there I'm new to php but im trying to replace items on page with a certain id with a image or anything i want. So i have this code on the page [vimeo 123456] [vimeo 345675] my php goes off to vimeo to get the correct image based on … | |
Dear Friends, I use the following: MySQL Server 5.1 MySQL Workbench 5.2 OSS I have a strange problem. I have a backup of my MySQL database with MySQL Workbench 5.2 I use MySQL Workbench 5.2 for importing MySQL database. That's works fine, see Annex. Then i go to SQL Development, … | |
How can i add a app.config in visual studio 2008 for compact framework? | |
hello every one when I'm Updating a table in access it gives syntax error in update statement can any one help how to sole this problem[CODE] vbstr = "UPDATE EmpMaster SET Name= '" & UCase(txtname.Text) & "',Address='" & Trim(UCase(txtadd.Text)) & "',TeleNo='" & txttel.Text & "',MobileNo='" & txtmob.Text & "',E-mail='" & … | |
Which is better Double Buffering or assigning to a Static Control. I would like an example of double buffering or both. This is my bitmap code. [CODE] #include <windows.h> #include <tchar.h> #include <stdlib.h> #include <string.h> #include "Menu.h" #include "Icon.h" LPCTSTR ClsName = L"App"; // Class name LPCTSTR WndName = L"WindowsAPI"; … | |
I'm developing a doubly linked list. Now the way I'm currently navigating it is by using a current position pointer, that starts at the tail and then loops round however many times you need (you'll tell the function) and it will then get to that node. Now, I'm having to … | |
Hi, I have looked EVERYWHERE through google, and have found nothing to my avail. I am not trying to find an already existing obfuscation tool, I'm trying to find resources so that I can make my own, because I have completely no idea where to start... Any ideas? | |
Hi Good Guys, [B][I]I am learning how to use C#Net2008 to develop Window Application. I was a VB.NET2008 developer. I need your help, Please Help me. [/I][/B]I am encountering 2 problem trying to fill LISTBOX with [COLOR="Red"]DATASET[/COLOR] and [COLOR="red"]CATCH [/COLOR]to display error message. In the LISTBOX dropdown list instead of … | |
Hi, I do need help with following problem. We have a password protected excel sheet with *complicated* macros in VBA. VBA code is protected, but some of our traders can still copy whole xls file and run it on private computers (strictly prohibited, but they violate rules and do it). … | |
hello all, suppose i have an a site where i am selling a webform .how do i set it up so that when someone pays they immediately receive a downoad link either to their email box or get directed to a link thnx in advance......... | |
For example i have an array like: a[20]={1,5,7,8,4,3,12,15,15,15,11,...} lets say that the max Value of this array is 15. i want to write : "The max value of array a is 15 and it is located at 8th,9th and 10th element in array. " Is it possible to write a … | |
hello everyone i have created a text editor using java swings, my problem is that sometimes all features are working perfectly and sometimes they are not.... i wrote the entire program in one file and the no. of lines in it are 1770,is this a problem for that kind of … | |
hey guys new to all the web programming i have got a little task and have no idea where to start could someone help me please. well i have to draw a line between to different coordinates which are going on google maps so for example : [CODE] <Placemark> <name>mark … | |
Hi, coders. I have to overload operators +, *, =. Object L3(default "abc") must be smth like this "aabbcc"(operator*; double each symbol of the string). Then I must concatenate Object2 and Object3(operator+), and initialize Object1(operator = ). I have strange errors error C2296: '*' : illegal, left operand has type … | |
How to fill array with any no like using zeros and ones. i'm new to python and i can't find the answer.... | |
import java.util.*; public class KeywordSearch { Scanner input = new Scanner(new File("keyvalues.txt")); Map<String, Integer> wordCountMap = getCountMap(in); for (String word: wordCountMap.keySet()) { int count = wordCountMap.get(word); while (input.hasNextLine()) { line = input.nextLine(); numLine++; Scanner word = new Scanner(line); while (word.hasNext()){ String nextWord = word.next(); numWord++; numChar = numChar + nextWord.length(); … | |
in my program, if i press enter on the first textbox, than i set the focus to the second textbox. but the value of second textfield is for example A. so the focus go fore the A instead of after A. what can i do? | |
The program asks to input an integer larger than one. the number is then passed into a function that calculates the sum of squares from 1 to that integer the output should be the value of the integer and the sum(labeled). A negative input value signals the end of the … | |
Cant figure out whats wrong with code. This is code should "write a program to compute the interest due, total amount due, and the minimum payment for a revolving credit account. The program accepts account balance as input from a file, then adds on the interest to get the total … | |
As a part of my final year project i need to make a system to retrieve sms's on a mobile phone(lets say only symbian phones only).i created a app and the thing is it is not working.so if any one know about this plz make a ryply [CODE]using System; using … | |
hi guys, im trying to do map in cpp using STL and when i ran a simple program it was showing error that: error: nomatchfor'operator<<'in'std::cout<<(&mp0_iter)->std::_Rb_tree_iterator<_Tp>::operator* [with _Tp = std::pair<const int, int>]()'.... my program was like this: [code=c++] #include<map.h> #include<iostream.h> int main() { map<int,int>::iterator mp0_iter; map<int,int>mp0; map<int,int>mp1; mp1.insert(1,13); mp1.insert(2,16); mp1.insert(3,17); for(mp0_iter=mp1.begin();mp0_iter!=mp1.end();mp0_iter++) … | |
i know the general answer to using [ICODE]goto[/ICODE] is always "No!". I understand why, especially when teaching basics to new programmers, because it can lead to very bad practices and horrible spaghetti code. but ... when i write certain hardware drivers, i have to immediately cease executing a function if … | |
I am doing some AES encryption using C. But the errors ocurred. The code is following by the error displayed. 1 Code [CODE]#include <stdlib.h> #include <openssl/evp.h> #include <string.h> int main(){ //declaring the variables char source[6]="Shahab"; char target[6]; char mykey[EVP_MAX_KEY_LENGTH]="hardtobreak"; char iv[EVP_MAX_IV_LENGTH] = "an_iv"; int in_len, out_len=0; int check; EVP_CIPHER_CTX ctx; … | |
Thanks for any help. Most of this works, but I get a compiler error on lines 60, 84, and 105, where it says [CODE] current = currentStore->link [/CODE] The error reads "assignment from incompatible pointer type" It runs, but in the printStores function when i gets incremented on line 81 … | |
Say I have an array: array={1, 2, 3} but I want to be able to increase the size, and shift the data to the front, leaving 0's behind. So i want the array to turn into this: array={1, 2, 3, 0, 0} Where I added two to the size of … | |
This exercise had me build on an earlier program - first ask user if wants to compute, then (if yes) choose circle or rectangle, then prompt for appropriate inputs, calculate, and run again. I had a major brain freeze, such that this has taken me many hours just to get … | |
There are so many information dispersed in so many places. And most of them kind of cover the same set of topics like ps, cd, pwd, chmod, chown, etc. But there are so many things to learn. Really need some advice how to muster all the knowledge. | |
I was wondering where I can find the complete list of unix/linux utilities which can be found in all standard distributions. There is a list in wikipedia: [url]http://en.wikipedia.org/wiki/List_of_Unix_programs[/url] Is that all? | |
Can someone help me with this???? [CODE]/****************************************************/ /* File: name of your file with the source code */ /* */ /* Created by: give your name */ /* Date: give the date */ /* */ /* Program to find the maximum of three */ /* floating point numbers */ /* … | |
Hi everyone, I am doing a program here to ask question about alphabet, and i am only in the middle of it and i face some problem that i really cant solve, need some help here... ok the problem is, for(int j =0; j<20;j++), in output, the 1st jlabel.setText(j) is … | |
Why the following code has the error: 'document.mainform.unknownHw' is null or not an object? function setUnknownHw(unknownHw) { document.mainform.unknownHw.checked = unknownHw; } <div class="special"> <form name="mainform" id="mainform" action="display.htm" method="post"> <br><br><input type="checkbox" name="unknownHw" onClick="setdbUnknownHw(this)">Unknown Hw <input type="submit" value="Apply" onClick="setdbRowsPerPage()"><br> </form> </div> | |
I have a field Status in my table message Its value when any message is entered in table is 1 but I want to alter it to 0 after 1 day of message posting how can I do so Plz help me ![]() | |
hi how do I put words into a specified location of a 2d array using scanf? string movies[100][6]={}; in main i need at least 100 rows and 5 columns i want the user to enter the movie id, name year, type and availability it will be stored in a 2d … | |
Hi, I have a counter and it works fine in firefox, but when I try to bring up the page to be counted in internet explorer in does not work. The page wont even be brought up in the browser. If I disconnect the include file to the counter it … | |
Hello again, I am having some issues adding up numbers. Here is the logic: I have a long string that is in the format name|1|2|3 etc. I am trying to add the sum of all the numbers following the name. So, from the above example, I am looking for the … | |
Hello all, I recently was reading some code and i found something along the lines of this: [code="C++"]void GetText() { int* size = new int; // ....... // lots of code here // ....... size = new int; // crap here }[/code] ^^ as you can see size is 'new'ed … | |
I am trying to read and write a text file into an array and then store it back into the text file. The main problem i am having is the storing the file character by character into the 3D array. Here is my code: [code] #include <iostream> #include <fstream> using … | |
[CODE]class Array { public: Array (int newSize, int order); Array (const Array& original); ~Array (void); void write (ostream& outfile, char* sortName, char* orderName); int getSize (void); void insertionSort (void); void selectionSort (void); void bubbleSort (void); static void initShellH (void); void shellSort (void); void heapSort (void); void quickSort (void); void mergeSort … | |
Write a python function to convert a numeric input argument to a string output based on the following rules: >=10: A, 9:B, 8:C, 7:D, 6:E, <=5: F I came up with this, but it does not work at all table = {'A': 10, 'B': 9, 'C': 8, 'D': 7, 'E': … | |
I have an email form on my site which has an action to a php page. The php page detects whether the user has entered a name and email, if they haven't it directs them back, if they have it sends an email to me. I want to add a … ![]() | |
I am writing a Savings account program using a class with methods but it won't compile. I can't seem to figure out why. Hhere is my program. It contains an header file, source code file, and a program cpp file: Here is part of the error I get, C:\Users\JEFF~1.JEF\AppData\Local\Temp\ccWScaaa.o(.text+0x17a) In … | |
I developing a small program that I want working as a widget, and would like to display it only when no window has focus - or when the desktop window has focus. My best chance now is finding whether GetFocus() returns NULL but this is not working as suspected. I've … | |
Write a Python program that creates a dictionary of son-father pairs-you can make the pairs with fictional names for fun. Your program should populate this dictionary with the son-father pairs you made up. Your program should present the user a menu with two options. The following is an example: Father … | |
test = 4 #start of def def change(): test = 5 #end change() print test Why doesn't it print 5? Can anyone explain this to me? Btw, test = 5 is indented, the forum won't let me indent for some reason | |
for starters im just learning C++ so forgive my ignorance... that being said... i need to pull 3 bits of info out of a text file. - Last name (name) - stored as a string - First initial (initial) - stored as a single character - Account balance (account) - … | |
[url=http://cc.byexamples.com/2007/04/08/non-blocking-user-input-in-loop-without-ncurses/]code from this blog[/url] [code]int kbhit() { struct timeval tv; fd_set fds; tv.tv_sec = 0; tv.tv_usec = 0; FD_ZERO(&fds); FD_SET(STDIN_FILENO, &fds); //STDIN_FILENO is 0 select(STDIN_FILENO+1, &fds, NULL, NULL, &tv); return FD_ISSET(STDIN_FILENO, &fds); }[/code] [code]void nonblock(int state) { struct termios ttystate; //get the terminal state tcgetattr(STDIN_FILENO, &ttystate); if (state==NB_ENABLE) { //turn … | |
Here is my code for word count from command line. Ive got it reading what is in the command line but its not reading the file it just reading the words from the command line. [CODE]import java.io.File; import java.io.FileNotFoundException; import java.util.*; public class WordCount { public static void main(String[] args) … |
The End.