43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Rokie

Hi everyone, Im using VS2008 and getting the following error message when I try to build the program which I have so far, I've looked around on the internet to try to understand this error but I'm still very confused any help you can offer me will be greatly appreshiated, …

Software Development c++
Member Avatar for raptr_dflo
0
382
Member Avatar for zeroliken

The program should change a sentence to pig Latin. [B]Rules[B][/B][/B] A word starting with a vowel should start with a capital letter and the rest with small letters and end with "way". If a word starts with a consonant the first letter will move to the last until it starts …

Software Development c
Member Avatar for zeroliken
0
501
Member Avatar for shootingrubber

Hello, I am writing a Tic Tac Toe java program, and it's almost all working; however, I noticed a bug in it recently and I cannot find the source of the problem. Basically the game has a New Game option in the file menu, and the first time it works …

Software Development gui java open-source
Member Avatar for shootingrubber
0
190
Member Avatar for th3b3n

I have a basic understanding of how to create A(1) check box, and repeating that method over and over again to create more. However, this makes for messy as shit code, plus I don't feel like doing this method 30 times to create the needed 30 check boxes. So I …

Software Development java
Member Avatar for hfx642
0
128
Member Avatar for lbgladson

Where would I need to save a picture on my computer to be able to use it as an icon on a button in a program?

Software Development java
Member Avatar for hfx642
0
90
Member Avatar for phorce

Hello, I need to search a char array, for a particular word... E.g. [code] char * search; char arr[10] = {'b', 'c', 'a', 't', 'h', 'e', 'p', 'h'}; string words[1] = {"the"}; search = strstr (alphabet, words); [/code] But it doesn't work... Any ideas what the problem could be? Thanks …

Software Development c++
Member Avatar for thines01
0
80
Member Avatar for lbgladson

I have the following code where I am trying to put an icon on the redButton but what I have done is not correct and I'm not sure what to do. There is no where in my book that explains how to do this and I keep getting confused looking …

Software Development java java-swing
Member Avatar for lbgladson
0
87
Member Avatar for bombay1982

Hi there; I am having problems with using printf method in this simple loop. I am looking for a 3 decimal places in the right one column and a integers in the left. I know how to print this with system.out.println but I dont know how to write it with …

Software Development java
Member Avatar for bombay1982
0
387
Member Avatar for PrimePackster

Hi guys, here i have a problem, that i have been trying to rectify for past 1 and half hour. Here in the code, as you can see, When the user Press Y, He get the chance to input the exponent value. There i have added another nested if, so …

Software Development c++
Member Avatar for Fbody
0
357
Member Avatar for A&M_guy

I am new to structs and I am trying to sort an array of structs but I can't seem to get it to work, I can't figure out what I am doing wrong and any assistance would be very much appreciated! [CODE]#include <iostream> #include <fstream> #include <iomanip> using namespace std; …

Software Development c++
Member Avatar for A&M_guy
0
268
Member Avatar for lbgladson

I have to create a GUI that when I click on the buttons it changes the color of the background. Below is what I have but I can't figure out what code to put in and where to change the color of the background. [code] import java.awt.BorderLayout; import java.awt.Color; import …

Software Development gui java java-swing
Member Avatar for Ezzaral
0
5K
Member Avatar for ZedChu

Hi, I have really lame problem which is probably that easy, that I can't get it working. I have program like this below. And I need to make prototype to get it working. But I don't know how it need to look like. I don't want to have these functions …

Software Development c
Member Avatar for ZedChu
0
230
Member Avatar for get connected

Hi All I have a load of information on my label in a groupbox on the form there is too much information to be seen in one go so i want to use a vertical scrollbar to move the label up and down inside the groupbox so it can be …

Software Development vb.net
Member Avatar for codeorder
0
258
Member Avatar for Morten Brendefu

I have tried searching internet a little bit and found some useful information about the command [CODE]SetLength[/CODE] I just wonder about a few things as I would like an array to "constantly" be redefined in size. When using it in one part of my program, it will be defined in …

Software Development delphi pascal
Member Avatar for Morten Brendefu
0
141
Member Avatar for The 42nd

Hello to all. I have a problem with replacing a part of a string with another string. The following code does not work. However, if you remove void in front of replace_str, in Code Blocks i am able to run it (WHY???) despite the fact that i still get a …

Software Development c
Member Avatar for The 42nd
0
314
Member Avatar for sianpunky

C++ Syntax (Toggle Plain Text) Hi, from the previous link : [url]http://www.daniweb.com/software-development/cpp/threads/365264[/url] How to do i sort by using X or Y for the coordinates of Line2D and Line3D since Line2D, Line3D contains 2 pairs of coordinates. example. Line3D, [7, 12, 3], [-9, 13, 68] Line2D, [5, 7], [3, 8] …

Software Development c++
0
49
Member Avatar for Catalyst.X

Ok, So i wrote this basic program that takes a map file as an input, and parses it and then draws the map. Its sort of like VERY BASIC tile mapping. The problem is, I cant think of a way to loop it so that no matter how many map …

Software Development seo storage vb.net
Member Avatar for thines01
0
212
Member Avatar for titusnainggolan

Hello all, I want to ask you what this code mean. [CODE] import java.io.*; class CopyFile { public static void main(String[] args) throws IOException{ int i; FileReader fin; FileWriter fout; try { fin = new FileReader(args[0]); fout = new FileWriter(args[1]); } catch (FileNotFoundException e) { System.out.println("Error opening output file."); return; …

Software Development java
Member Avatar for JamesCherrill
0
309
Member Avatar for morred

Hello! I'm new to this site and fairly new to Java, I've tried creating a program that takes a file as input and edits specific substrings in said file, compiles without problems but the file remains unchanged. [CODE] import java.io.*; public class Uppg10_OH { static class MinHistoria { private String …

Software Development file-stream java
Member Avatar for morred
0
171
Member Avatar for anand01

hi all i tried one quiz in that i got question [CODE]Given: 1. public class Blip { 2. protected int blipvert(int x) { return 0; } 3. } 4. class Vert extends Blip { 5. // insert code here 6. } Which methods, inserted independently at line 5, will compile? …

Software Development java
Member Avatar for anand01
0
185
Member Avatar for alphabetic

Can enybody help me to do this? I used NetworkInterface and also Ipv4InterfaceStatistics.

Software Development
Member Avatar for alphabetic
0
105
Member Avatar for MrNo

I'm really confused as to how to set up this program. The program is to have a function "trap", so I'm guessing that means I have to include a function that solves the integral before my main function? [CODE] #include <stdio.h> #include <math.h> double f(double x) { return exp(-x*x); } …

Software Development c
Member Avatar for N1GHTS
0
1K
Member Avatar for PrimePackster

In the User defined function sum(), i am getting the Lvalue required error, can you please tell me why? [CODE]#include<iostream.h> #include<conio.h> #include<math.h> int num,digit,sum1,p; int sqlarge(int &a, int &b, int t=0) { if(a>b) { t=a; a=pow(t,2); return a; } if(a<b) { t=b; b=pow(t,2); return b; } else {cout<<"Both values can …

Software Development c++
Member Avatar for PrimePackster
0
103
Member Avatar for shandoosheri

Hi every one I have this url [url]www.websiteaddress.com/0010001[/url] and i want to keep counting on it like it becomes [url]www.websiteaddress.com/0010002[/url] [url]www.websiteaddress.com/0010003[/url] and so on and i want all lines to be in a sing text file so please help me do this

Software Development
Member Avatar for thines01
0
114
Member Avatar for bigredaltoid

Hi all - I need to write a code that reads in a 20 line file 4 lines at a time, and puts the five sets of 4 strings into their own individual strings. So there should be five strings containing 4 strings each. I am very confused and havne't …

Software Development python
Member Avatar for bigredaltoid
0
166
Member Avatar for PapaGeek

I need to be able to call some very old C functions from a form application. What I found on line was to use 'extern "C"' to let Visual Studio know how to handle the calling parameters. But I'm getting a compiler error and not sure where it is coming …

Software Development c++ visual-studio
Member Avatar for PapaGeek
0
1K
Member Avatar for wmurrow

Hey all. I'm trying to get the FindDaysOver function to grab the avg result from the CalcAvg function result in main. What am I doing wrong? Any help would be appreciated! [CODE] #include<iostream> #include <iomanip> using namespace std; double FindMax(double [], int); double FindMin(double [], int); double CalcAvg(double [], int); …

Software Development c++ ios
Member Avatar for WaltP
0
148
Member Avatar for sofia85

Hi, I have written a program that searches through a text file and in the end I want it to give me some probabilities. In my program I'm searching (for each line) for certain characters and if that character exists then extract the probability. The thing is that sometimes this …

Software Development python
Member Avatar for Gribouillis
0
151
Member Avatar for codeorder

[CODE]Process.Start(Path.GetDirectoryName(xsM)) [/CODE] [ICODE]xsM = String[/ICODE] with a [ICODE]FullPath[/ICODE] of a .File. .i would like to load win.explorer with [ICODE]that.File.Selected=True[/ICODE]. .thanx.in.advance.

Software Development vb.net web-browser
Member Avatar for codeorder
0
152
Member Avatar for y2kshane

im creating a custom User Control. its a custom picture box . i want to user to select the picture file from file system. so i use following code(i found it on a forum) . but vb says that code has a error . help me :'( [CODE] <EditorAttribute(GetType(System.Windows.Forms.Design.FileNameEditor), _ …

Software Development vb.net visual-basic
Member Avatar for y2kshane
0
228
Member Avatar for killerbeat

Hey, I have an website with dynamic text on it, i want to transfer the text to an textbox, and the text is between this tags: <pre> </pre> How do i do this?

Software Development html-css http-protocol vb.net
Member Avatar for fiaworkz
0
3K
Member Avatar for kumaresen

i am having prob in looping this java program...the 1st section is to choose the cloth material...then the length of material needed n lastly calculate the price of the needed length after discount...have done all of them...but having a prob were should i insert the loop to make the program …

Software Development java
Member Avatar for Aviras
0
142
Member Avatar for xsharpx

I've been playing around with this for a while and just can't seem to get it right. Any help is appreciated! [CODE]string catalog[][] = { {"item1 - 0 dollar(s) each","description1"}, {"item2 - 3 dollar(s) each","description2"}, {"item3 - 5 dollar(s) each","description3"}, {"item4 - 7 dollar(s) each","description4"}, {"item5 - 9 dollar(s) each","description5"} …

Software Development c++
Member Avatar for amt007kmr
0
110
Member Avatar for Zeref

Hi guys I'm trying to place a user input into a database(mysql) [CODE]newplayer=raw_input('Please enter a new player name: ")[/CODE] the sql commands to insert data is [CODE]sql="""INSERT INTO PLAYERS(NAME) VALUES('newplayer')"""[/CODE] When i check the database it shows newplayer instead of what the user has entered. any ideas of how i …

Software Development mysql python sql
Member Avatar for TrustyTony
0
94
Member Avatar for lilsancho

Hi all I'm wondering if some one could help me with something as i think i've just forgotten everything i knew :) I have this code: [CODE] #include <stdio.h> #include <stdlib.h> int main() { char A[4]; char B[2]; char C[2]; printf("Enter Numbers: "); scanf("%s",&A); fflush(stdin); printf("Enter Numbers: "); scanf("%s",&B); fflush(stdin); …

Software Development c
Member Avatar for Narue
0
189
Member Avatar for debasishgang7

Hi All, I want to create a pattern like this using python.. [CODE]Aa0Aa1Aa2Aa3Aa4Aa5......Ab0Ab1Ab2.........and so on.[/CODE] Thanks...

Software Development python
Member Avatar for debasishgang7
0
261
Member Avatar for borchu

Hello everyone, I am trying to manipulate "DYNAMIC ARRAY" Structures however I've been faced with problems wanting adding new value. Here my code:: -I use CodeBlocks and gnu gcc compiler ^ also I checked it on linux machine. [CODE] #include <iostream> using namespace std; #include "Deneme.h" Deneme::Deneme() { countReg = …

Software Development c++
Member Avatar for borchu
0
276
Member Avatar for th3b3n

Hi every one, new poster here and new to Java as well. I'm working on a java program that will reads an excel file extracts the data and prints it to console. I've gotten that part to work in the below code, however I'm starting the next phase of the …

Software Development java
Member Avatar for th3b3n
0
183
Member Avatar for Vasthor

what I mean is from this code, when coder doesn't put any curly bracket({,}), what does the while loop scope will cover? already test with random bracket put on the code, but, the only "brackected code" that work the same as the original code is when I put around words.push_back(word); …

Software Development algorithm c++
Member Avatar for Vasthor
0
164
Member Avatar for Tortura

Hey, I created a form with many controls. It's a GUI for a measurement program. Therefore some controls must be disabled and some enabled. When the START button is pressed, every control should be disabled except the ABORT button. It works with following code: [CODE] // Disable each control in …

Software Development gui
Member Avatar for Tortura
0
175
Member Avatar for bhagawatshinde

Hi, Can anybody help me, I have an tabcontrol which has dynamically added the tabpages now i want to add datagridview controls in each tab pages how i can do this.I am written the code like[CODE] For i = TabControl1.TabPages.Count - 1 To 0 Step -1 Dim dtg As New …

Software Development vb.net
Member Avatar for bhagawatshinde
0
338
Member Avatar for anand01

Hi all when i run the following code [CODE]TreeSet<Integer> s = new TreeSet<Integer>(); TreeSet<Integer> subs = new TreeSet<Integer>(); for(int i = 606; i < 613; i++) if(i%2 == 0) s.add(i); subs = (TreeSet)s.subSet(606,true, 630,true); s.add(629); s.add(630); System.out.println(s + " " + subs); [/CODE] the O/P is [606, 608, 610, 612, …

Software Development java
Member Avatar for anand01
0
131
Member Avatar for UNDER-18 FG

Hey, everyone~ Being the second time posting here, I'll try to make it simple but clearly as possible :) So, my assignment this time is about writing a C program to print the following star patterns: [CODE] * * * * * * * * * *[/CODE] So, here is …

Software Development c
Member Avatar for YAMNA MIDHAT
0
284
Member Avatar for UNDER-18 FG

Hey, everyone~ Being the second time posting here, I'll try to make it simple but clearly as possible :) So, my assignment this time is about writing a C program to print the following star patterns: [CODE] * * * * * * * * * * [/CODE] So, here …

Software Development c++
Member Avatar for mrnutty
0
333
Member Avatar for ninjatalon

Can someone please help me on getting a formula round off to the next highest .25. example: 2.35->2.50 2.26->2.50 2.24->2.25 2.51->2.75 I can't use the Round function because if I have 2.26 then it will round off to 2.25 which is unacceptable. I have been using the Ceiling function but …

Software Development vb.net
Member Avatar for ninjatalon
0
195
Member Avatar for Dakot

hello , i want to cin n numbers then to sort the positive numbers in one array, the negative numbers in another array , then to print positive array. So let me explain , i run the program , i enter the 9 , then enter 1 2 3 4 …

Software Development c c# c++
Member Avatar for Dakot
0
155
Member Avatar for nick6987

i am having trouble with lets say i do not have any test scores and enter -1 there is an error of dividing by zero. [CODE]import java.util.Scanner; public class myarray { public static void main(String args[ ]) { Scanner kbd = new Scanner(System.in); //total number of quiz scores possible in …

Software Development java storage
Member Avatar for nick6987
0
2K
Member Avatar for just_starting

I am trying to write a program that 1. Lets the user write new students and there overall grade to the file, 2. Opens the file to view course info(student and their grade) 3. Shows course stats(mean and range for the class). Here is what I have so far, can …

Software Development python
Member Avatar for just_starting
0
189
Member Avatar for justlearnin

Okay, I am trying to extract text from a text box and redisplay it into labels. Specifically, when the user types in an address, say 123 W Elm, I want to click a button and have the "123" print in one label, the "W" to display in a second label, …

Software Development c#
Member Avatar for justlearnin
0
126
Member Avatar for bluehangook629

I have a stored procedure that creates temporary table to populate return table. It works perfectly fine when I execute it on SQL management studio but when I try to import this sttored procedure, it give me an error Invalid object name '#TOTAL' which #TOTAL is the temp table that …

Software Development vb.net
Member Avatar for bluehangook629
0
222

The End.