43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jockfaire

Hello, I am developing a mobile application (school project) using a Windows Mobile 6 Professional emulator. This application has a login function that prompts for a password and uses a Data Access Object(DAO) to connect to a SQLServerCE database. This database has a table called User which stores the password. …

Member Avatar for jockfaire
1
156
Member Avatar for icewolf

Hi There. I am trying to use libCurl to copy the contents of a webpage into a string in C. This is what I have so far: [CODE]void Cmd_translate_f (char *message) { CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, va("http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=%s!&langpair=en|fr"),message); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data); res = curl_easy_perform(curl); …

Software Development c
Member Avatar for icewolf
0
4K
Member Avatar for OzY360

Hi, I am getting a rather odd error message when I try compile a java program. I have attached the original java code and a copy of the error message in a .txt file. Any help you guys can offer will be much appreciated.

Software Development java
Member Avatar for OzY360
0
135
Member Avatar for rowdyboudy

Hi guys, I have written the following code which iterates over a integer array and returns a string by concatening the digits. Is there is an easier or more efficient way of writing this in Java similar to the C# function ToString? [CODE] private int[] myArray; public int[] getMyArray { …

Software Development java
Member Avatar for peter_budo
0
140
Member Avatar for urbangeek

hello guys, the output of the program should be like this: [ICODE] With how many numbers do you love to work with? 3 Enter no 1: 23.4 Enter no 2: 15.54 Enter no3: 55.48 In ascending order the numbers are: 15.54 23.40 55.48 [/ICODE] I've written this program: [CODE] #include …

Software Development c
Member Avatar for urbangeek
0
1K
Member Avatar for mattloto

Thanks to another post of mine, I found out about itertools.product(). What I was wondering how to do is to code it so that I can use as many arrays as parameters as possible, with the number of arrays being defined by user input. for example, If the user inputted …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for mattyd

I have one, reoccurring issue that arises each time I run this incomplete program I am working on; I have spent much time attempting to locate the bug. I am convinced it arises from a simple error. Problem: User has made a "deposit" but when the User makes a "withdrawal", …

Software Development java
Member Avatar for peter_budo
0
96
Member Avatar for wutwutwut

I know how to get a program to read a raw text file that has been piped to it, and do some simple things like counting letters, but I don't know how to read the actual words and store the entire word as a string. For example, if a text …

Software Development python
Member Avatar for vegaseat
0
211
Member Avatar for Krstevski

Hello friends, I have a problem with opening an url into browser. I use: [CODE] /* Error msg -> The parameter is incorrect */ System.Diagnostics.Process.Start("http://www.[link snipped]"); /* Successfully start notepad */ System.Diagnostics.Process.Start("notepad.exe"); [/CODE] I go Start > Run > [url]http://www.[link snipped][/url] and then the site opens in the default browser …

Software Development
Member Avatar for Krstevski
0
97
Member Avatar for n.utiu

Let's take this: [CODE]f = open ('myflie.txt', 'w') f.write ('12345');[/CODE] I always get the length of the output printed on the console. Is there any way to prevent it from printing it?

Software Development file-system python
Member Avatar for n.utiu
0
83
Member Avatar for jakariaal

Hi, plz help me.... I'm working in VB 6.0 with Access I have got a problem, Adodc1.RecordSource = "select * from marks where roll = 710028" 'It's working.... but Adodc1.RecordSource = "select * from marks where roll = troll.text" 'It's not working.... plz help me....

Software Development visual-basic
Member Avatar for vb5prgrmr
0
119
Member Avatar for bandit711

[CODE] #include <iostream> #include <fstream> // I/O #include <iomanip> // For setw() using namespace std; ofstream outputfile("output.txt"); // Output file const int MAX_FILE_NAME = 35; const double INTEREST_RATE1 = 0.010; const double INTEREST_RATE2 = 0.010; const double LEVEL_ONE_BALANCE = 1000.00; const double MINIMUM_PAYMENT = 10.00; const double MINIMUM_PAYMENT_PERCENT = 0.10; …

Software Development c c# c++ file-stream ios
Member Avatar for bandit711
0
139
Member Avatar for mattyd

I have addressed this problem sometime ago; I have either misplaced, misunderstood, or never received a response to this issue so therefore I am again attempting to deal with a Python issue: I am towards the end of a build, and I am dealing with button commands, something that was …

Software Development python tkinter
Member Avatar for TrustyTony
0
379
Member Avatar for SCoder1

what's wrong with my java code? NullPointerException was found by my compiler.... [code] import java.awt.event.*; import java.awt.*; import javax.swing.*; import javax.swing.event.*; class WheelCalc extends JFrame implements ActionListener { public static final int WIDTH = 400; public static final int HEIGHT = 400; public JLabel NewTire; public JLabel OldTire; public JTextField …

Software Development java java-swing
Member Avatar for stultuske
0
152
Member Avatar for WaelTheNoble

Dear All, I'm a newbie to both XML and XLST. I have an XML document that has the following code [CODE] <?xml version="1.0" encoding="WINDOWS-1256"?> <?xml-stylesheet type="text/xsl" href="NameEntity.xsl"?> <DOC> We are going to <ENAMEX Type="LOC">washington</ENAMEX> , after that we will go to <ENAMEX Type="MISC">Newyork</ENAMEX> city, then we will go to <ENAMEX …

Software Development xml
Member Avatar for WaelTheNoble
0
122
Member Avatar for avsatheesh

number of iterations in the following loop [CODE]main() { int x=5, y=10, z=9 for (;x<=5;) {y++;z--; x=x+1/2; if(z==0) z=y;}}[/CODE]

Software Development c
Member Avatar for Ancient Dragon
-3
187
Member Avatar for prettyann

Hi. I have a bit of a problem with this code: [CODE] #include <stdio.h> #include <conio.h> #include <stdlib.h> main () { FILE *data; char let; int prior, ctr; data = fopen("huffman_table.txt", "r"); while (fscanf(data, "%c%d\n",&let, &prior)!='\0') { printf("\nLetter: %c Priority: %d", let, prior); } fclose(data); getche(); } [/CODE] The huffman_table.txt …

Software Development c
Member Avatar for jephthah
1
146
Member Avatar for SCass2010

hi, I was wondering if anyone could point me in the right direction here!! I have a program that reads in lottery results from the past 6 months (from the national lottery site) from a text file 31-Mar-2010,29,18,38,44,14,43,13,3,GUINEVERE 27-Mar-2010,32,38,11,15,42,6,24,2,GUINEVERE 24-Mar-2010,3,49,28,5,23,42,41,4,GUINEVERE and stores it in an array (n-1,6) where n is …

Software Development vb.net
Member Avatar for kvprajapati
0
122
Member Avatar for Someguynamedpie

I'm making a library for myself, and I keep getting that error :( Pib.h: [code=cpp] #pragma once #include "stdafx.h" #include <iostream> #include <string> using namespace std; class Pib{ public: void echo (int Text); void test(void); }; void Pib::echo(int Text){ printf("Haha: "+Text); }; void Pib::test(void){ cout<<"Text"; }; [/code] Main File: [code=cpp] …

Software Development c++
Member Avatar for mrnutty
0
848
Member Avatar for DaveTran

[CODE] if (x <= 22.5f) { } if (x >= 22.5f && x <= 67.5f) { } if (x >= 67.5f && x <= 112.5f) { } if (x >= 112.5f && x <= 157.5f) { } if (x >= 157.5f && x <= 180.0f) { } [/CODE] My code …

Software Development
Member Avatar for DaveTran
0
117
Member Avatar for max.v8

Hello guys, this is my first time in these forums, so I apologize for my bad English. Well, here's the problem: I need to get the frequency of integer numbers that are stored in a file, their range is from 0 to 100, their amount is unknown and depends on …

Software Development c c++ file-system
Member Avatar for max.v8
0
181
Member Avatar for annazpereira

Hi Guys, I know loads of ppl hv seen similar problems but I just can't figure out whats wrong with my code. I keep getting the following error: Upgrade.java:133: unreported exception java.lang.Exception; must be caught or declared to be thrown new SpFwUpgrade(sp, UrlPath); SpFwUpgrade is called in Upgrade.java as follows: …

Software Development java
Member Avatar for annazpereira
0
215
Member Avatar for rowdyboudy

I need to write a method that returns true if all the values in two int arrays are in the range 0-10, otherwise the method returns false. The code I have written is below but is there a better/more effient way to do this? [CODE] private int[] myArray1; private int[] …

Software Development java
Member Avatar for Zetlin
0
86
Member Avatar for mattloto

I need a way to get all the possible combonations of two lists. I looked into map(), but it only loops through the first array. I tried to do a map function inside a map function, but I couldnt figure out how. Heres an example: [CODE]>>> a=[1,2] >>> b=[3,4] >>> …

Software Development python
Member Avatar for mattloto
0
278
Member Avatar for wesselnaude

Trying to write a very simple function that boxes in a hello world print out. I have been stuck here for hours now and would appreciate some help as the frustration is killing me. The print out should look like this. ////////////////////// / Hello World / / Hello World / …

Software Development c++
Member Avatar for Ancient Dragon
0
101
Member Avatar for benasour

[CODE]private List list(int... ints) { List result = new ArrayList(); for (int i : ints) { result.add(i); } return result; }[/CODE] I got this method from one of my friends and wondered what it does? I have never seen int... ints construct before but am assuming it is an array …

Software Development java
Member Avatar for BestJewSinceJC
0
88
Member Avatar for bertyhell

I'm looking for a package that can convert a phone number to its country code i know how to write it myself but beter to check the net first anybody ever heard of something like this? eg: 0032586987 > Belgium please give me a link it would save me enormous …

Software Development java smartphone
Member Avatar for bertyhell
0
4K
Member Avatar for puppykillaz

I have written the code and I am new to working with classes. If someone could point me in the right direction I think I can figure it out. I looked at MSDN and learned this much, so maybe I didn't get the right understanding but I thought I would …

Software Development vb.net
Member Avatar for Oxiegen
0
145
Member Avatar for n.utiu

I have been recently experimenting with functors and tried o make my own one, inheriting from unary_operator, but I get some errors. [CODE] template <typename T, int intN = 0> class cIsBad : public unary_function <T, bool> { public: bool operator() (const T& tParameter) const { return tParameter == intN; …

Software Development c++
Member Avatar for n.utiu
0
113
Member Avatar for karolik

So I have a program that reads data/text files, with 1 number on each line and makes a binary search tree from it. When i insert a node, there should be two data variables updated, searchcost and key.. Key being the actual number of the element, and the searchcost is …

Software Development c++
Member Avatar for karolik
0
142
Member Avatar for BobbieJean

Hi, I'm having trouble with...I don't know, either choosing the correct loop to use or maybe using the one I need but having it incorrectly placed. Right now, the program will give the "Invalid item number" message from my else statement if I enter an invalid value in the first …

Software Development java java-swing
Member Avatar for BobbieJean
0
99
Member Avatar for BobbieJean

Hi, I've been working on this program for nearly two days straight and I just can't get it quite right. So it's supposed to get input from the user and apply it to a switch statement. There are 5 cases that represent the cost per item for each case. Then …

Software Development java java-swing
Member Avatar for BobbieJean
0
102
Member Avatar for kjock002

[CODE] # PURPOSE: to calculate the sum of the first (n) counting numbers # # INPUT(S): the number (n) which will be the last number added to the sum # # OUTPUT(S): the sum of the first (n) counting numbers # # EXAMPLES: input: 4 ; output: 10 # input: …

Software Development mathematics python
Member Avatar for Gribouillis
0
116
Member Avatar for JohnPhilipps

Good evening, I have been working with derived classes and what could seem like an easy problem has had me look into it for hours. [U]My error message:[/U] Square.h(14) : error C2512: 'Rectangle' : no appropriate default constructor available Everything works well if I don't use my derived class "Square.h" …

Software Development c c# c++ file-stream
Member Avatar for JohnPhilipps
0
236
Member Avatar for billmaster

Complicated question with simple answer I hope? I have an executable compiled using vb5. When installed on user's machine, I get an error when first form is displayed. The error is due to MSVBVM50.dll no being present or registered. In order to prevent this error being raised, can I perform …

Software Development api operating-system visual-basic
Member Avatar for vb5prgrmr
0
134
Member Avatar for pearle

Suppose I have something like [CODE]char *threeDays[3] = {"Monday","Tuesday","Wednesday"};[/CODE] and I wanted to extract the first letter of each string and create another string using those letters. How would I go about doing it? I tried [CODE]char str[4]; strcpy(str,*(threeDays+1)); strcat(str,*(threeDays+2));[/CODE] but that gives me "TuesdayWednesday". I just want a string …

Software Development c++
Member Avatar for pearle
0
1K
Member Avatar for est69dog

hello, i have tryed my ways how to make records thing to my pascal game(15 puzzel), but i have failed. It shold be by time and by moves you have made to solve it and they shold have atleast 3 best in both tabels. If someone have any good tips …

Software Development gaming pascal
-1
123
Member Avatar for LennieKuah

Hi Good Guys, I encounter another interesting problem due to my lack of C# knowledge. Please Help me. I am trying to use DATAREADER to fill TEXTBOX controls on the FORM and it's not working because this coding generate error message: [COLOR="Red"] sqlDR = sqlCmd.ExecuteReader(); <---- Error [/COLOR] Error message: …

Software Development c c# c++ dataset
Member Avatar for LennieKuah
0
165
Member Avatar for bigbags911

import java.io.*; import java.util.*; public class Reverseing { public static void main(String[] args) throws Exception { File f = new File("backwards.txt"); Scanner finput = new Scanner(f); String sentence = "", s = "", r = ""; while(finput.hasNext()) { sentence = s + finput.nextLine(); } ArrayList<String> lines = new ArrayList<String>(); ArrayList<String> …

Software Development java
Member Avatar for bigbags911
0
2K
Member Avatar for Jaxzen

My code is supposed to take numbers from an .txt file, assign them variables, print out the numbers and THEN if the number is less than 25, add them up according to parity. So, if the list of numbers is 1,2,3,4,5 It'll output: 1 2 3 4 5 Sum of …

Software Development c++
Member Avatar for Lerner
0
930
Member Avatar for Xufyan

Hello using conditional operators I want to make a program that ask user to input three values and print the maximum among those three values. i have done for two values but dont know the logic for three values. [CODE] int main(void) { int a,b,c,d; printf ("first value"); scanf ("%d",&a); …

Software Development c
Member Avatar for jephthah
0
142
Member Avatar for biomed

Hi, I am new to python but I want to use it over perl because I think it is a better overall approach to programming. This is a bioinformatics problem. I have four identically formatted tab delimeted files that have genomic variation data. Each line looks like this. chr1 11828655 …

Software Development perl python
Member Avatar for Gribouillis
0
97
Member Avatar for apo

Hi, here is the thing, I'm trying to make my university grading table on C++, when i fill in the grades it should tell me what i have accumulate. the thing is that when i insert the text grades it shows a zero when i click the buttom. the math …

Software Development c c# c++
Member Avatar for apo
0
322
Member Avatar for some

Here is my code, I am trying to make a smaller version of a chatterbot like Eliza. Anyways here it is.[CODE]#include <cstdlib> #include <iostream> #include <cstring> #include <stdio.h> #include <string.h> #include <string> #include <windows.h> #include <fstream> #include <tchar.h> // a few global variables char str[50]; // this one is for …

Software Development c++
Member Avatar for some
0
138
Member Avatar for Alicito

Hello Friends I'm facing a problem and I can't figure out what is the wrong ( it is [COLOR="Red"]a Run~Time~Error[/COLOR]) I have these two classes [CODE] // singly-linked list class to store integers #ifndef INT_LINKED_LIST #define INT_LINKED_LIST class IntSLLNode { public: int info; class IntSLLNode *next; IntSLLNode(int el, IntSLLNode *ptr …

Software Development c++ linked-list
Member Avatar for Alicito
0
109
Member Avatar for xfrolox

Ok im making a tool for a game like always and im having a little problem. This tool is to prevent users to know the site so they can't steal or copy the files. i prefer not to tell what game it is. But when they are in game there …

Software Development vb.net
Member Avatar for xfrolox
0
142
Member Avatar for josolanes

I'm using [this website](http://stdcxx.apache.org/doc/stdlibug/33-3.html) as a reference and am modifying some code to (hopefully) have it work the way I'd like it to. I *think* I'm close, but since I have no experience with custom paramaterized output manipulators (and have limited experience with custom output manipulators even) I'm kind of …

Software Development apache c++
Member Avatar for josolanes
0
369
Member Avatar for gunbuster363

Hi, I have a dictionary storing many things... I would like to delete entries which have key of len < 3. But after I do the del statement, there are still lots of entries with len < 3, what happens? [CODE]for w in fdict.keys()[:]: if w.strip() in banset or len(w.strip()) …

Software Development python
Member Avatar for gunbuster363
0
83
Member Avatar for euclid135

Hi all, I want to use some container for this case: i have 4 elements, say string1,string2,class1,class2. I need string1,string2,class1 to be united, means if i access string1 in this container you'll get class1. The problem is class2 is something flexible, sometimes it can be written, sometimes it can be …

Software Development c++
Member Avatar for euclid135
0
120
Member Avatar for Xufyan

How can i convert this pr0gram in conditi0nal operat0rs...? I don't kn0w h0w to use more than tw0 conditi0ns in c0nditi0nal 0perat0rs. We've learned to use two conditional operators conditions s0 far, for example, [iCODE] (a>b)? a:b ; [/iCODE] but don't kn0w how t0 apply it for 3 c0nditions ? …

Software Development c
Member Avatar for jephthah
-2
166

The End.