199,114 Archived Topics
Remove Filter ![]() | |
i have been having trouble searching string for a specified char. I have been using the string.indexOf(char) but that only gives me the index of the first instance of the char not all the index values of the char. for example.. [code] string wordToSearch = "adadda"; if(wordToSearch.indexOf("a")) != -1) messagebox.show("letter … | |
I have wrrtten code for my mobile application, but while running it in java wireless toolkit, i get a screen that displays the following: " EnvGameMidlet.EnvGame.EnvGameMidletException.java.lang Class Not Found Exception: EnvGame/EnvGameMidlet." What could be the problem. it compiles well but displays that message when run. I am developing it using … | |
hi guys... i am working on image processing using MATLAB. I have to devise the code so as to detect any tampering in a given image, The tampering may be of any form. In case any of you has any links related to image tampering, or if you have worked … | |
hi i am trying to count the occurrences of different words in a string array. while(end of array) { while(end of array) { compare ith element with all other elements inc counter } increment the element number } but i guess something is terribly wrong here as i am not … | |
im brushing over some of my notes for a midterm tommorow. questions i have when i was reading: what exactly does a parameter do? i know it passes a value to a function-but how is it always like that? or is it more complicated than that? is it kind of … | |
Hello everybody, I'm trying to write a php script to read rss feeds. Since I began, I found it is much harder than I expected, because the xml structures are very different, and they need to be interpreted differently everytime. I'm using [CODE]simplexml_load_file()[/CODE] to read the xml code easily and … | |
Hello Friends, i want the value of 17732 shr 8 Thanks, | |
What are the benefits of using the Conditional operator (?) over a traditional if/else statement or similar? Using ? seems to lower readability in some cases but anything else? | |
How can I use the Exceptions I have created below in the Cinema class? [B]//IllegalAgeException class[/B] [CODE] public class IllegalAgeException extends Exception { /** * Creates a new instance of <code>IllegalAgeException</code> without detail message. */ String exception; public IllegalAgeException() { exception="Unknown"; } /** * Constructs an instance of <code>IllegalAgeException</code> with … | |
Hello, have anyone tried copying files from a remote server via FTP using VB Given: FTP Site FTP Password >>> the task is to copy files from the remote server to another machine thanks | |
Hi Everyone, I am looking for Secure Ftp ActiveX component in Vb6 to use it in a command line program. Please , if anybody have an idea how to get it free or how to create it. Thanks, Bryan. | |
I would like to create an application that would, after manipulating a text file, log on to a private FTP site and PUT that text file onto the server, and then logout. I have the code to manipulate my text file and make it ready for sending and I have … | |
ok, i have to get two mysql tables to work as one. one is called sale_mast_data and the other is called sale_mast_data_h. they both have the same columns. the only difference is that the one with the "_h" has the history of previous shift sales. the two tables both contain … | |
I have loaded a map in picture box, but I can't move around it (to see the whole area of the map) Can someone help me... | |
Hello, I'm pretty new to C++ and I've been trying to this program to open a file and check if it exists for the last two hours. It seems like it should be so simple but it keeps eluding me. Here is the code in main that starts to run. … | |
I would like to be able to find out the pitch of some audio recorded in a wav file and want to know the best way to go about doing this. I am using VC++ 2008 | |
Hey there, everyone. Here is the question I had to write code for: Include the following code: char test[15] = {‘T’, ‘h’, ‘i’,’s’, ‘_’, ’i’, ’s’, ‘_’, ’a’, ‘_’, ’t’, ’e’, ’s’, ’t’}; for (int row = 0; row < 15; row++) { cout << test[row]; } Add the code … | |
int numberArray [9][11]; write a statement that assigns 145 to the first colum of the first row of this array. write a statement that assigns 18 to the last col of the last row of this array this is what i have [code] numberArrray [1][1] = 148; numberArray [9][11] = … | |
If I have these function variables: int (*f)(int); int (*g)(int); int (*h)(char); why can I do the assingment f=g but if I do h=g the C compiler gives me warning while the C++ compiler gives me an error. Can any one please explain this to me. | |
Hi all, I'm required to implement a method for a "[B]TernarySearchTree[/B]" object/class. Basically, a Ternary search tree is just like a binary tree except it has three children instead of two. Ternary Search Tree could only manipulate it's root. Now the method should create and return an alphabetically sorted list … | |
i wanna put all my variable initialization at a header file.. but after i put in a header file name, "variable.h" i #include "variable.h" in main. but it still cant reconize the variable. what can i do? + extern infront all the variable in header file? | |
I am a beginner I spent many hours studying c++ books and online tutorials, I am sure I am competent enough to become a good programmer but I cant wrap my mind around how c++ (or any programming language for that matter) works. My question is, How do I understand … | |
I pretty much got my assignment working except for one part, I need to reverse the output if the user enters "-r" in the command line. Can anyone help me with this? EDIT: By reverse I mean list the last child first down to the original process. [code] int j … | |
Okay heres my code... [ICODE] for swipeload in range (0, 15, 1): "E"+str(swipeload)+"_Path" = os.path.join("data","E"+str(swipeload)+".gif") "E"+str(swipeload) = pygame.image.load("E"+str(swipeload)+"_Path") [/ICODE] So basically I have a bunch of images called "E1, E2, E3, E4, etc..." and I want to load them all into the cache without having to type the code for … | |
The following code, excerpted from a much larger program, triggers a C++ compile time error as shown in the leading comments. [Re-]declaring variable 'w' to be a 'const char *' will fix the problem, but I don't know exactly why. I would greatly appreciate it if somebody could elucidate the … | |
Is there any one who can propose some links for C# freelance jobs. Thank you | |
Hi I'm working on the following code which is to be used on the M16C/62 microcontroller. Basically the microcontroller is to [B] "scan the keypad and display any key that is depressed" [/B](which i have done im pretty sure), on the LCD. However I know I have to Sound the … | |
hi, everyone, i am working on writing a program that can calculate the extrema of a polynomial function. i've got everything i need except the last step of the process. i need to be able to solve a polynomial equation for f(x)=0. please help. | |
I seem to be able to load the files in my program. Then I can loop through the lines one time, but if I try a second loop to load the strings into an array that one won't work. Here's my code. I thank you for any help in advance. … | |
I'm building a new database program using VB, I want to use the datetimepicker to do this: Show today's date on the datetimepicker, Show today's "to do" in a Text box (it would know it was today because it would be linked to the datetimepicker Then If I change the … | |
[CODE] // filename = isbn.cpp // Kyle Burmark // Prof. Gelotte // 02/12/02 // Program 4 - Validate ISBN numbers program // Description: This program asks the user whether he wants to validate // ISBN numbers from his own input or from a file of isbn numbers // Start program … | |
This is my relatively simple code. Its just part of a memory matching game. I've looked but I cannot figure out why it won't switch the values in each of the array indexes. I would appreciate anyone helping me out here with this. ** Turns out the problem is that … | |
Hi all im making a text game but first im making a test one and i was writing it and i came across this error: Traceback (most recent call last): File "/home/tom/Desktop/Python/Text game/main.py", line 98, in <module> main() File "/home/tom/Desktop/Python/Text game/main.py", line 93, in main print 'his attributes are:' + … | |
is it possible to make the user choose his favourite color from a Box like the Paint Program which contains all the colors | |
hey all, i keep having a problem using vb with an access database. anything i try to do with access brings up the same error message saying database format not recognised. any ideas what i need to do. thanks | |
[code] #include <iostream> #include <iomanip> using namespace std; void celsius(int); int main() { cout << setprecision(2) << fixed << showpoint; cout << "This program displays a table of the Fahrenheit temperatures" << "\n0 thorugh 20 and their celsius equivalents.\n"; celsius(0); return 0; } void celsius(int fahr) { double cels; cout … | |
Hello everyone, I am a Mathematics major and my mentor asked me to put together a program that evaluates explicit stencil methods along the difference mesh. Basically I need to use a recursive method to get my value, as I know base values and boundaries, but the C++ experience I … | |
Im trying to make an annogram. first you input a word, and then it mixes it up and then couts the scrambled version of the word. My problem right now is that when you input a word like "Cat", it will mix up and look like "aCt" or something with … | |
I'm doing a project for a class and it says to write a program that translates code from one programming language to another. It says that my class containing my static main method should be named "Translate". It should take as input source code of a programming language as a … | |
[code] #include<stdio.h> #include<conio.h> struct link { int data; struct link*ptr; }; typedef struct link node; struct link1 { int info; struct link1*next; }; typedef struct link1 node1; int main() { int i,size; node*start,*temp,*p; int j,listsize; node1*start1,*temp1,*k; clrscr(); { printf("enter the size of first list:\n"); /*creating first list*/ scanf("%d",&size); printf("enter list:\n"); … | |
Okay, I've been noticing this for a while now and decided I might as well ask. When I'm working on my programs at school, if I try to read from a text file, it can't seem to find the text file. However, if I run the exact same thing on … | |
Hello all, I have problem with wx.richtext I cannot make it start new line at hitting return key! How can I do it so that I can use Align left and right Here is a code [CODE=python] # Text area self.textarea = rt.RichTextCtrl(epanel, style=wx.VSCROLL|wx.HSCROLL|wx.NO_BORDER )[/CODE] | |
I am building an xml parser in java which will handle a catalog with some books (that have price and usefulness) and I want to implement an [B]optimum[/B] algorithm that selects the books from the catalog which have the maximum usefulness while staying within the budget. Example: [code] <catalog cash=”100”> … | |
hey there! ok i need help figuring out what is wrong with my code. i have to write a program that does addition and subtraction in stacking. but all im getting is error. some advice would be greatly appreciated thanks here is the code #include <iostream> #include <stack> #include <string> … | |
Hi Everyone, I would need your help. I have a project that I need to insert multiple records into my table. Here is more detail. I design a purchase order table with 3 columns (a, b, c): a: is primary key with identity (1,1) primary key b: is defined integer … | |
Okay, I figured out the larger problem that I've been having with my program, now all I need is it to get out of the loop and finish the program. Well, it won't break out for some reason. Anyone see why? [code]row = col = 4; z = 0; do … | |
I am looking forward to getting a car insurance policy source code to compare with the programme i have just written. Thanks in Advance | |
I'll try to explain. I've got a C++ program that is going to copy files from it's folder which it is located in to another location. So, I'd say f.x. I had a directory called "Flash". Then, inside that directory would be "myprogram.exe" and 4 other directories. Within those 4 … | |
How to product this code as shown below: If I enter "5" and "10" in the console screen, it display 5 ***** 10 ********** Whatever I enter any positive numbers, the screen will display the asterisk partern and depend on the number input. Please tell me the method using VB … |
The End.