132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for TylerTCF

Hey Everyone, I have developed a program to help me geocode approximately 100,000 addresses from Google. After doing some i/o to bring all the names into a vector in C++, I have now 100,000 distinct addresses that I must pull up, retrieve the code from google's server via csv output, …

Software Development c++
Member Avatar for TylerTCF
0
138
Member Avatar for rena0514

hey i am trying to write a program that allows two users to play tic tac toe....right now i am doing the program in pieces i have accomplished setting up the two dimensional array. i am having a problem changing the * thats in a section of array to an …

Software Development c++
Member Avatar for rena0514
0
155
Member Avatar for Snapster5

Hi i put most of the //discriptions in so it should be easy to tell what is suppose tohappen where. It is longer then it seems, its very beginner level. Also im not sure i did the functions and arrays perfect. Errors i have before i have been able to …

Software Development c++
Member Avatar for Snapster5
0
146
Member Avatar for UberJoker

Hey guys. I have the following string array, say, string array[2]; array[0] = "hello7925"; array[1] = "bye344539"; I want to read the last two characters from each string in the array, which in this case are 25 and 39 and then put them in a separate array like this.. int …

Software Development c++
Member Avatar for UberJoker
0
208
Member Avatar for Bagleys

Hi im really new to VB and am stuck on an IF statement, heres my code: If TextBox12.Text >= 105.01 Then TextBox16.Text = TextBox12.Text - 105.01 * 0.128 ElseIf TextBox12.Text < 105.01 Then TextBox16.Text = "Not NI Eligible" End If When i debug it the error System.InvalidCastException is displayed four …

Software Development vb.net
Member Avatar for Bagleys
0
98
Member Avatar for Skrutten

I wonder how the random.normalvariate function works. When I do the method below, I end up with negative numbers. I don't want that. How do I prevent that? And also, i want 10 numbers, but it always turn out 9 and a "none". What is none? How can i remove …

Software Development python
Member Avatar for vegaseat
0
186
Member Avatar for fada4ever

include a derive class named sphere from the base circle class. the only additional class members of sphere should be s constructor and a calcval () function that returns the volume of the sphere... please kindly help me in correcting the code.. #include <iostream> #include <cmath> using namespace std; const …

Software Development c++
Member Avatar for mrnutty
0
173
Member Avatar for Tank50

HI I wrote below coding part,but its generate the exception.Below I mention the code and error Error [COLOR="red"]Data type mismatch in criteria expression.[/COLOR] [CODE] DataSet Serach_sumbitdata=new DataSet(); OleDbConnection conn7 = this.getconnection(); conn7.Open(); string str = "Select * from Customer where SubmitDate between '" + str1 + " 12:00:00 AM'" + …

Software Development c# dataset
Member Avatar for Tank50
0
195
Member Avatar for Adam2k

Hi guys! I need your help with a simple program I'm trying to make. It's supposed to read values from a file, covert them (and add/multiply), sort, and then view the values to the user. The values looks like this: [code]Stockholm 650000 55.5 2100 08 123 456 Whateverstreet 123 ... …

Software Development python
Member Avatar for Adam2k
0
112
Member Avatar for amel036yippee

hello.. i need tips to solve the problem. The situation is like this: I have randomly generated 20 (pop) array of length = board. The output is this: [QUOTE] [B]1 3 6 4 1 4 6 6[/B] 2 0 1 1 1 3 1 3 3 6 3 4 7 …

Software Development c++
Member Avatar for amel036yippee
0
130
Member Avatar for Neon87

Hi I have a question regarding runtime polymorphism. I have for example [CODE]derived A; base *B;[/CODE] and I do this [CODE]B=&A;[/CODE] if A goes out of scope does this mean the pointer B is a bad pointer meaning it does not point to anywhere? If so, does this mean I …

Software Development c++
Member Avatar for Narue
0
101
Member Avatar for rehaam

Hi I need help;; Write a program to simulate a demand paging system. The program should implement the FIFO and LRU page replacement algorithms presented in Chapter 10 of the textbook. Your program input should include: The name of the page replacement algorithm. Information about the number of physical page …

Software Development algorithm c user-interface
Member Avatar for gerard4143
0
2K
Member Avatar for Lolalola

Hi, Why not uploaded the data into db? Do not show any error. [CODE] string City = "Berlin"; string MyConString = "SERVER=localhost;" + "DATABASE=test;" + "UID=root;" + "PASSWORD=;"; MySqlConnection connection = new MySqlConnection(MyConString); MySqlCommand command = connection.CreateCommand(); command.CommandText = "insert into city(city) VALUES (@City)"; command.Parameters.Add(new MySqlParameter("@City", MySqlDbType.VarChar, 40)).Value = City; …

Software Development mysql
Member Avatar for DdoubleD
0
129
Member Avatar for me30

how can write a pascal program that do minus,sum and muliply tow number with 50 digit??? please answer or mail to me.

Software Development pascal
Member Avatar for FlamingClaw
0
308
Member Avatar for winecoding

How many constructor (including copy constructor) and destructors will be called for test1 and test2? [CODE]#include <iostream> using namespace std; class Base{ public: Base(){cout << "Base()" << endl;} Base(const Base&){cout << "Base(const Base&)" << endl;} ~Base(){cout << "~Base()" << endl;} }; Base func(Base b){return b;} void test(){ Base a; func(a); …

Software Development c++ oop
Member Avatar for Lawand
0
85
Member Avatar for XMarshall

Hi, I have declared a Multi dimensional Array in C# like this: [CODE]private System.Windows.Forms.Button[,] ButtonArray = null;[/CODE] Now after inserting into the array, I would like to re-initialize and empty the "ButtonArray"? Please let me know the possible ways to do that Thanks in advance for helping out a newbie. …

Software Development c#
Member Avatar for DdoubleD
0
262
Member Avatar for Stefano Mtangoo

I'm curious what you Developer uses: 1. What is your favorite IDE 2. What is your favorite GUI library 3. What is library that you often use? 4. Anything related?

Software Development c++ gui ide
Member Avatar for Lawand
0
139
Member Avatar for thandarucsy

Hello, I want to know how to write java code to retrieve content and position of an xml element using sax parser.

Software Development java xml
Member Avatar for servicecycle09
0
130
Member Avatar for ahmedshayan

This is the Program I am try create ! Create a class CoffeeCup with a double instance variable temperature. Provide a parameterized constructor, an accessor/getter, and a mutator/setter. It may be noted that 75 degree Celsius is considered best temperature for coffee to be served for drinking. Create another class …

Software Development java
Member Avatar for ahmedshayan
0
337
Member Avatar for Graxxis

hello, long time lurker first time poster! currently writing a program that generates 100 random integer values in the range of 1 - 50, then displays how many of those numbers are in the range 1-10, 11-20 etc etc. i generated the numbers with no problem, but im not too …

Software Development python
Member Avatar for hondros
0
100
Member Avatar for edgar5

I am a developer on the open source Audacity team and am trying to add some functionality. Currently if you drag the icon of a supported type (fi song.wav) onto an open Audacity project it loads the file. However if you drag song.lnk (like an XP shortcut but different--looks like …

Software Development c++ open-source windows-vista
Member Avatar for mitrmkar
0
219
Member Avatar for AZSooner

I am creating a Video class, then creating objects to place into an array. Then I want to print the contents of the array: [CODE=java] public class Video { String videoTitle; int videoRating; public Video (String pVideoTitle, int pVideoRating){ videoTitle = pVideoTitle; videoRating = pVideoRating; } } [/CODE] [CODE=java] public …

Software Development java
Member Avatar for Mikeyp926
0
6K
Member Avatar for chris99

[CODE]global Num1 from Tkinter import * Num1 = "" def buttonNPush(n): global Num1 Num1 = Num1+n print Num1 def clearScr(): global Num1 Num1 = "" root = Tk() textbox = Entry(root) textbox.pack(side=TOP) #Create Frame with buttons numbered 0-9 frameButtons = Frame(root) frameButtons.pack(side=LEFT) button1 = Button(frameButtons, text="1", command=buttonNPush("1")) button1.grid(row=0, column=0) button2 …

Software Development python tkinter
Member Avatar for vegaseat
0
210
Member Avatar for V5dave

Am new to C++ and don't know if I'm doing something fundementally wrong. Have a form with a textbox and buttons. When I click on button, I am running a function in my .cpp file. However, in this function I need to update the text box in the form. Have …

Software Development c++ microsoft
Member Avatar for gpushee
0
594
Member Avatar for walter clark

What I want to do must be easy because I can't find it on the web. I have existing C code with char* strings all over the place. I'd like to get those strings to the Form1.h file so I can use them there. All I want is... String^ newText; …

Software Development c++
Member Avatar for walter clark
0
99
Member Avatar for YoTaMiX

Hello to you all , I am required to write a program which gets a Math Expression (without checking it is good) and put in Stack only the Brackets . Implementation of Stack is One-Way Linked List Only. Examples for Good/Bad Expressions : (a*{b+c}-4/x +[e-5]) - GOOD (5+} - BAD …

Software Development algorithm c legal linked-list
Member Avatar for Berkut
0
283
Member Avatar for Skrutten

I'm trying to use my methods, but i always get " <bound method Deltagare.tavla of <__main__.Deltagare instance at 0xfba58>>" what does it mean? is something wrong with my class?

Software Development python
Member Avatar for hondros
0
104
Member Avatar for Placinta

Hi. I have this part of code. [CODE] int main() { int **table = NULL; allocated_matrix(table, 3, 3); //next instructions } void allocate_matrix((what_type_here)table, int rows, int columns) { table = (int **) malloc(rows * sizeof(int *)); for (int i = 0; i < rows; i++) { table[i] = (int *) …

Software Development c
Member Avatar for Placinta
0
138
Member Avatar for pilu

Hello, I'm quite new to c#. I have one C++ dll in which I have the two simple add & delete functions. [code]int MyTestFuncs::Add(int a, int b) { return a + b; }[/code] I have to access them into the C# code. I have faced the following error - When …

Member Avatar for DdoubleD
0
291
Member Avatar for jlego

I am taking user names and id from a database and dropping it into a combo box for users to select there name. in vb 6 i used to do the following: [code] do until rs.eof = true with me.combobox.comboitems.add(,, rs.fields("Name")) .tag = rs.fields("ID") end with rs.eof.movenext loop [/code] the …

Software Development vb.net
Member Avatar for jlego
0
148
Member Avatar for azra36

in this code i check if i'm getting data blocks in order, if not inorder i return NULL,i.e ask for next block, if in order i write the contents of data block to a file pointed by fpdddb. the contents of DDB_Parser.BlockDataByte array keep changing every time. what is the …

Software Development c
Member Avatar for Ancient Dragon
0
1K
Member Avatar for foxmulder

Hi! For my last assignment I was told do create a program which can read-, sort- sand save a textfile (.txt). For example, I have a textfile containing 5 movies, this file is going to be read by the program and then sorted (in alphabetical order) and then saved to …

Software Development c++
Member Avatar for Ancient Dragon
0
198
Member Avatar for manowar83

Hi, everybody! I want to know if there is a way to resolve my problem. So I want with xpath to get only nodes without their child nodes. My xml is: [code] <ts> <uc> <Questions> <q /> <q /> </Questions> </uc> <uc> <Questions> <q /> <q /> <q /> </Questions> …

Software Development xml
Member Avatar for yuvanbala
0
350
Member Avatar for Benderbrau

Hello, I'm new to hashtables in C#, and I'm trying to refer to a bit of Java code, but having a problem. Here's the Java... note: adjacencyMap is a Java hashmap. [CODE] int count = 0; for (int i=0; i< adjacencyMap.CAPACITY; i++) { if (adjacencyMap.keys[i] != null) { LinkedList edges …

Software Development java
Member Avatar for avirag
0
130
Member Avatar for forstudy3

I have written a function which will open the file with the input name provided.I am compiling on a Linux box using g++ compiler.Detail code below Plz let me know what is the wrong in code. [CODE]1 #include<iostream> 2 #include<fstream> 3 #include<string> 4 #include<stddef.h> 5 #include<cstddef> 6 #include<cstring> 7 8 …

Software Development c++ file-stream file-system ios redhat
Member Avatar for Clinton Portis
0
295
Member Avatar for XshulderX

Hey I have a problem! when I try using SQL lite in viusal studio. [code] using System; using System.Collections.Generic; using System.Data.SQLite; using System.Data; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; [/code] Whey Will visual Studio not accept using System.Data.SqlLite? The compiler says: "Error - The type or …

Software Development assembly sqlite visual-studio
Member Avatar for sknake
0
69
Member Avatar for pavan146

hey can any1 pls tl me hw to work on cgi pgms on windows..m new to ds language,facin a prob durin connectin perl prog throu browser...hw to do dat

Software Development perl
Member Avatar for terrial
0
92
Member Avatar for ravmonster88

hi experts. this is my first post here hope you could help me.. [CODE] Private Sub FindFile() On Error GoTo x 'capture if error occurs Dim idx As Integer 'index to be incremented For idx = 1 To Combo.ListCount - 1 'loop to find the and load the text file …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
80
Member Avatar for BSKI01

I know there are many things like this on this site already but my teacher is smart and will search to find out if we just copied from an internet interveiw Hello My name is Ben and I am a sophomore at high school in New York. I am currently …

Software Development c++ career engineering
Member Avatar for ithelp
0
102
Member Avatar for kharri5

Does anyone know how to fully set up a circular linked list, and its methods, remove, insert, and find? Here is what i have so far but i have no idea if its proper public class CLL { public class Node { int item; Node next; public Node() { this.item …

Software Development java linked-list
Member Avatar for roopa09
0
174
Member Avatar for kobalt

Hello all! I'm very much a noob to c#... and programming for that matter... and xml! So, I'm having troubles with a project that I'm working on that I hope someone here can help me with. I wish to search through an xml file that is generated by a Share …

Software Development xml
Member Avatar for kobalt
0
104
Member Avatar for Chargerfan

how do i retrieve complex numbers (a + jb) so that just a appears in one textbox and just b appears in another textbox?

Software Development mathematics
Member Avatar for privatevoid
0
102
Member Avatar for revenge2

Hello there, I am having trouble copying text into a string, what am i doing wrong? [CODE=c] #include <stdio.h> int main() { char instructions[80]; FILE *f; f=fopen("a3.txt","r"); while (fscanf(f,"%s",instructions != EOF){ fscanf(f,"%s",instructions); } printf("%s",instructions); } [/CODE] the contents of a3.txt are B404 239A 2412 5345 350C C000.

Software Development c
Member Avatar for fjallstorm
0
107
Member Avatar for miag

[COLOR="Green"]i'm so confused with this program. should anyone give me some clues how to begin?[/COLOR] Define a class called StringSet that will be used to store a set of STL strings. Use an array to store strings. Create a constructor that takes as an input parameter an array of strings …

Software Development c++
Member Avatar for jonsca
0
113
Member Avatar for unseenedges

hi.... Iam new to programming in C#,have just started programming.Can anyone tell me how to write code to convert numbers in to words...for istance if you put 1500 as input,the output should be "Fifteen Hundred. Also i need a C# Code to check if an input string is an identifier …

Software Development
Member Avatar for vinnijain
0
2K
Member Avatar for FancyShoes

I want it so that when a user doesn't enter char r,p,g,m,c,y it will come up and say incorrect input enter 4 correct values. This is what I have. [CODE]while( (g.one || g.two || g.three || g.four) != ('r' || 'p' || 'g' || 'm' || 'c' || 'y') );[/CODE] …

Software Development c++
Member Avatar for FancyShoes
0
133
Member Avatar for the_Famous

i need help to count lines, paragraphs and articles ("a","an","the") in txt file with java. here is what i've got know:[code] import java.io.*; import java.util.*; public class Main { public static void main ( String[] args ) throws FileNotFoundException, IOException { String line=" "; char t=9; String s=""+t; int lines …

Software Development java
Member Avatar for javaAddict
0
103
Member Avatar for emilio

hi i wanted to write a windows application that sends keyboard strokes to another application something like a virtual keyboard. i researched the subject and read few articles. i managed to find a code that partially works. in the sample code above i'm trying to send strokes to a word …

Software Development
Member Avatar for emilio
0
3K
Member Avatar for psychoangelo89

I have a trouble in my login form. The program doesnt execute my else statement, especially if I'm going input wrong usernames and passwords. It just did nothing. NO error warnings, etc... please help.. :( [CODE] private bool CompareStrings(string string1, string string2) { return String.Compare(string1, string2, true, System.Globalization.CultureInfo.InvariantCulture) == 0 …

Software Development open-source
Member Avatar for psychoangelo89
0
148
Member Avatar for nychick

Hey everyone, I'm trying to implement a operator overload of several operators. I want to make sure my syntax is correct. Here's my old Class implementation: [CODE]#include <iostream> using namespace std; class Date { private: int mn; //month component of a date int dy; //day component of a date int …

Software Development c++
Member Avatar for jonsca
0
89

The End.