43,549 Solved Topics
Remove Filter ![]() | |
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++ | |
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 | |
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 | |
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 ![]() | |
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 ![]() | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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++ | |
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 … | |
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 | |
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 | |
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 | |
Can enybody help me to do this? I used NetworkInterface and also Ipv4InterfaceStatistics. Software Development | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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); … | |
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 | |
[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 | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
Hi All, I want to create a pattern like this using python.. [CODE]Aa0Aa1Aa2Aa3Aa4Aa5......Ab0Ab1Ab2.........and so on.[/CODE] Thanks... Software Development python | |
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++ | |
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 | |
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); … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 … | |
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 … | |
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 | |
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# | |
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 |
The End.