43,549 Solved Topics
Remove Filter ![]() | |
i have to do a code that takes the word from the user and seperate them from uppercase and lowercase. i had done the code, but the words that are printed out are not as aspected (symbols) [CODE]#include<iostream> #include <ctype.h> using namespace std; int main(){ int i=0; int total_char=0; cout<<"enter … Software Development c++ | |
Hi all.. This function should work recursively.. Meaning call the function inside the same function. So i'm supposed to write a recursive function that takes a single parameter from type integer and decrements that number until it reaches zero. Ex. If the user entered 7, he'll get this output: 7 … Software Development c++ | |
I need some assistance with three things in my code. My problems are: Next and Previous buttons do not loop through the array, instead they throw exception errors when they get to the end of the array. Second my image that is required does not show up, my instructor said … Software Development gui java java-swing | |
Hi everybody, I would like to implement a task but I'm not sure the best way to do it. I have some objects each of which has an attribute that represent the object coordinates as a tuple. I would like to find the neighbors of each object, that is the … Software Development python | |
hi experts i m using fallowing code for update, delete and save data it's working very well when i save new recored but when i update and delete recored it's showing error message [B] "Dynamic SQL generation for the DeleteCommand is not supported against a SelectCommand that does not return … Software Development vb.net | |
Hi, I'm trying to parse an apache log file and match the IP addresses in it. This is my code so far: [CODE] import re ippattern = re.compile(r"\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b") def matchmyip(): if ippattern.search(line): matchedip = ippattern.search(line) print matchedip.group() [/CODE] Now given a line like this from a log file: [CODE]1999-08-01 00:00:00 … | |
Hello, I have a tiny problem with my c# application, the short version : not all windows users can see it. Long version: 1. I created my c# application, and it works, no problem there. 2. I published my application and I obtained my setup files. 3. I started the … | |
I have created a program that generates an application which I have saved in a certain location, lets use C:\Documents and Settings\UserName\Desktop\Folder\ as an example. The program uses this base location, then searches through some subfolders, alters a file, and saves the altered file in the base location that the … Software Development c++ | |
:@ Hi every body, i tried recently to compile some old C++ codes but regardless of the compiler i use i get the same error message when i want to link the *.obj file. i even tried it with Tlinker and macrolinker but with no success, if any one could … Software Development c++ | |
There's something wrong with my push function, or how I'm initializing the linked list. Can anyone tell why? The pointer 'operands' wont point to the new head, and always points to the first node created. Adding a second node appears to partially work, (second node->next points to the first node, … Software Development c++ linked-list | |
Can somebody help me with this? I'm not sure if this is the right forum section, so if it's not, please let me know. The problem goes like this: I need to create a program that has a recursive function which checks whether or not the given string is a … Software Development c | |
Hi I have a problem with my mdi Child Form, when i close it with Form1Child.Close() then it close with any problem but when y i want to open again with Form1Child.Show(); i got a message that said "Cannot access a disposed object." what can i do??? thanks Software Development | |
[CODE]/*manimbo_mp4.java*/ import java.io.*; public class manimbo_mp4{ public static void main (String[]args) throws IOException{ BufferedReader br=new BufferedReader (new InputStreamReader (System.in)); /*initializing STRING FORMAT variables *smmort holds monthly mortgage amount *spaym holds mortgage payment amount *sremb holds principal amount*/ String smmort,spaym,sremb; /*initializing LONG FORMAT variables *lmmort holds monthly mortgage amount *lpaym holds … Software Development java | |
I have a very complex multi-page form I am developing in the Crystal Reports which is included in VS2008. There is always 1 Page A. There may be 1 or more page B. There may be 1 or more Page C. Page A has 7 subreports and a header from … Software Development vb.net | |
Good day.! What a frustration drives me just this day.! Last night we got power lost. Just this day when i open my vb project, ive got an error message says that project1 cannot be loaded. When i try to open one form on that project it also returned, form1 … Software Development visual-basic | |
Hi guys, I found this thread ([url]http://www.daniweb.com/forums/thread19814.html[/url]) that gave me guidance on this topic but I wanted to further develop my understanding. I understand that in Java, everything 'passes by value', even references. That is, a copy of the value is passed to the parameter so the original value is … Software Development java | |
Hi, I've been working on a program that lets you make cartoons. You have to draw one frame at a time. This works fine. The problem is, all you can do is playback the cartoons, you can't save them. I need to find out how to save multiple picture files … Software Development visual-basic | |
ok guys, i can not figure out the following problem that i faced just a while ago while trying out some filing in c++. the code is as follows: [code=c++] #include<iostream> #include<fstream> #include<string> using namespace std; int main() { ifstream readFile; readFile.open("Input.txt"); string sample; readFile>>sample; cout<<"Here is a line: "<<sample<<endl; … | |
Hi, I have an application with one JFrame and two modeless JDialogs. When I mimimize the JFrame, the dialogs are still there, not minimized. So i need to hide them. I can hide them with WindowDeactivated event which runs one time when the JFrame is minimized but when I want … Software Development java | |
when I try to compile my project file in devcpp I get the following error: I tried googling but nothing seems to help when i tried them. CreateProcess((null), C:/cygwin/bin /sh.exe -c "g++.exe -c test.cpp -o test.o -I\"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include\" -I\"C:/Dev-Cpp/include/c++/3.4.2/backward\" -I\"C:/Dev-Cpp/include/c++/3.4.2/mingw32\" -I\"C:/Dev-Cpp/include/c++/3.4.2\" -I\"C:/Dev-Cpp/include\" ", ...) failed. Access is denied. C:\Users\dedl\Desktop\SAIM\SAIM3\OpenGLGLUT\Makefile.win [Build Error] … Software Development c++ | |
Hey, I wrote this code that makes you type two things, then it checks if it is the same. Well, that was it was supposed to do, but then it kept saying: expected primary-expression before "else" expected ';' before "else" Here's the code [CODE] #include <iostream> #include <time.h> #include <windows.h> … Software Development c++ | |
Hi, I would like to know if there is any way using C# to free the memory being used. I have a very complex application where OutOfMemoryException occurs frequently. Is there any code or any other possibility to free the used memory, say at the beginning of each iteration of … Software Development | |
![]() | [CODE]private JButton getBtnSave() { //if(btnSave == null) { btnSave = new JButton(); btnSave.setToolTipText("Save scan output"); btnSave.setText("Save"); btnSave.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { try { String lines[] = taOutput.getText().split("\\n"); for(int i = 0; i < lines.length; i++) { System.out.println("Value: " + i); BufferedWriter bw = new BufferedWriter(new FileWriter("audits.txt")); String … Software Development file-system java |
Hi, what I am trying to achieve is to extract a certain word from a .txt file, eg. "word". I am also running an XML file into a dataset. Within this dataset I want to locate the column which has the name "word" (same string from txt file). Once I … | |
Hi, I am implementing a code which uses the FolderBrowserDialog control. Here is my code : [CODE]FolderBrowserDialog folder = new FolderBrowserDialog(); DialogResult result = folder.ShowDialog(); if (result == DialogResult.OK) { try { string path = folder.SelectedPath; string[] files = Directory.GetFiles(path, "*.jpeg"); foreach (string file in files) { using (Stream s … Software Development file-stream | |
Hey there, I am having a little trouble with my select statement. It works grand until I but a where clause in. then I the follow error [I]Syntax error (missing operator) in query expression 'MacStatus where((Rating =70 ))'.[/I] This is the string I am submitting to the DataBase . [CODE] … Software Development vb.net | |
Hi everyone please help on this: I am developping a program in java, but I need the user to enter his/her details if they are compatible with the values in a database table he/she get access to the main interface. here is what I've done so far [CODE]import java.awt.BorderLayout; import … Software Development gui java java-swing user-interface | |
Hello, I'm new to vb. Basically, I want to learn how to remove the last part of a string if its seperated by spaces... For Example (How to change): "John said 687" To "687" or "John decided to say hello" To "hello" in otherwords, the last word of the string, … Software Development vb.net | |
in one of the question for beginners a program for moving a file was asked. i cud not find the algo can anyone suggest me the algo???????????? Software Development c++ | |
I do realize that this is ugly code but i cant seem to have this program output "Your old". I dont know why my if statement is not working. Thanks [CODE]/* This class is to be used as new readline method */ import java.io.*; class ReadInput { public static void … Software Development java | |
So I'm quite new to c++, and I'm really into pointers, does anyone got like, an idea on how to really get to know pointers, assignments, tasks, tutorials, ect. Basically, my knowledge in C++, is classes, operator overloading, and like simple stuff, so if you're able to come up with … | |
I have region: [code] Region r[/code] and I have a point: [code]PointF p[/code] is there any method that determines whether p is in r? something like this [code] bool is_p_in_r = graphics.Determine(p,r); if(is_p_in_r) Execute("theMan.kil"); :) [/code] Software Development c++ | |
Hey :) I have written this code, but it seems that theres an error in it, that i can't find. When i try to compile it i get this error: Call to undefined function 'sleep' in function main(). I know it has something to do with that sleep function, because … Software Development c++ | |
Hey everyone, im trying to get to know vectors but i came to a point that my current knowledge stops and i need more help, i found a program which i would like to understand but i couldn't figure it out. here is the code: [code]#include<iostream> #include<vector> #include<string> #include<iterator> using … Software Development c++ | |
Hello I am very, very new to this C++, and i have been working on something that could help us with something, but thats a long story... Anyways, i want the program to first delete a file then wait some time, and then delete another file. I got it to … Software Development c++ | |
how to m a Win+D action button visual basic ?? GR Kevin (Kzip) Software Development vb.net visual-basic | |
Hello guys! I am developing simple desktop application that suppose to connect to SQL DB launched on remote server. Everything going fine, exept that when connecting to DB I get exeption "Login failed for user 'guest'." So, looks like i need to create some user with password and give him … Software Development sql | |
Alright, my issue is that I have to create a new array with certain aspects from the old array. I know if I just make arraynew[i] = arrayOld[i] it would place it in the exact same place as the other one would be and that would save place. I have … Software Development | |
Hi, I have an application where I have images stored in a folder called testimages and access them using : [CODE]String[] files = Directory.GetFiles(@"C:\Users\pashok\Documents\test\testimages\", "*.jpeg");[/CODE] Now, I want to modify the program in such a way that the folder called testimages is placed in my project directory. In this case, … Software Development | |
hello! i want to create jtable dynamically... i have two class one is add records to Data Base another one is show records list that were inserted... how do pass each records in JTable without replacing existing on... i need to grow the table every time the records success fully … Software Development java | |
Hi, I have an application where I need to load images present in a folder onto my Visual Studio application. As in if I have a folder named temp and I have say 5 images temp1-temp5 inside the folder temp, i need to load each of the images temp1-temp5 (in … Software Development visual-studio | |
hello guyzz,,i really need your help,,we are about to make a mastermind game in java,,i already have the code,,,but it has no main method..and i dont know how to implement the main,,help guyzzz,,,we are about to pass it next week.... import java.awt.*; import java.lang.Math; public final class mastermind extends java.applet.Applet … Software Development java | |
Hi, I am trying to write a loop that lists all the square results until the number given in. So for example if i would give in 100 it would list the squares in a list wich would be 1, 4, 9, 16 etc... The problem is i if i … Software Development | |
Hi I'm new to Python and the book I'm using was designed for an older version of Python and consequently there are some examples in the textbook that don't work in 3.1. My first problem is with the following simple example: num1, num2 = input(" Please enter two numbers (num1, … | |
I'm hoping someone out there can help me. i have to use a 2nd class to create a JMenuBar to attach to a JFrame i get an error :49: incompatible types found : javax.swing.JFrame required: java.lang.String return aTestFrame; (i have also tried something else and got a static/non static error) … Software Development java java-swing | |
I have a chat window, JTextBox i think, and you hit enter and it invokes an action listener, to send text. It generally works, but now and then i hit enter, and nothing. I have to hit enter again and typically it sends text. the focus is there for typing, … Software Development java | |
hey everyone need some help again, i have two computers both running in vista ultimate. one is a server and the other is like a terminal. my problem is, how do i connect the terminal to a database which is in the server? please provide me a step by step … Software Development client-server sql vb.net | |
I'm using mysql database..I have forms setup main form has datagrid..you can add to this datagrid and save to datbase with my add form and it works fine. I can delete from the datagrid and it works fine...when I select an account to edit is when I have my issue...form … | |
Hi guys, We're writing a GUI based on PyQt, and we're running into an issue when using different resolutions. Problem is, we can't find how to get the GUI elements to automatically resize when the window is resized, or when the GUI is running on a larger resolution than the … | |
How to kill the running .jar file from another jar in java? There are two jars running A.jar & B.jar Both jars are running. I want to kill B.jar from A.jar. Pls let me know, if any one knows. Thanks in advance. Software Development java |
The End.