43,549 Solved Topics
Remove Filter ![]() | |
Hey guys, I am working on my final project, and I was wondering, I am designing the GUI and if you look at the buttons I want the green and red buttons to appear 3D like the rest of them but with a colour overlay is it possible to do … | |
I'm working on a program that has a class Board, and two inherited classes that will implement different games, but I'm having problems with setting up the initial Board class. The problem is that I don't know how to make it so the board array in the protected section of … Software Development c++ | |
I am trying to open a file after getting its path from the user. here is the code. [CODE]#include <iostream> #include <fstream> #include <string> #include <cstring> using namespace std; void main(){ const char* filepath; string input, input2; char lines[110]; ifstream infile; cout << "Enter filename (including path): "; getline (cin, … | |
[quote] My code asks a user for a password. To properly validate the user's entry, it must include the following requirements: 1)have a length of 5 2)have an uppercase character 3)have a lowercase character 4)have a digit My loop only works for the lowercase and length of 5 requirements. Can … Software Development java java-swing | |
I'm currently working on implementing a small game in C++, but when trying to compile, I get this error: [CODE]..quadtree.h:125: error: no matching function for call to 'Fleet::Ship::overlaps(const Fleet::Ship*&)' ..ship.h:40: note: candidates are: bool Ship::overlaps(const Rectangle&) const ..ship.h:85: note: bool Ship::overlaps(const Ship&) const ..ship.h:32: note: bool Ship::overlaps(const Point&) const[/CODE] So … Software Development c++ | |
Hi is there a way of getting a file creation Date for a file class object? I am trying to do so on a mac. Many thanks Software Development java | |
How do I save a string? Say I type in "sfrider0." How do I store that then retrieve it later? I've been messing around with it for a while and the most I can get it to do is tell me how many characters are in it. Any help? Software Development assembly | |
i have a training application which incorporates c/c++ and raima database(a database system written in c) i was able to insert some data in it but i cant read from it. the files are as follows: Books.cpp : [CODE]#include "Booksh.h" #include <iostream> #include <string> using namespace std; info bookrec; Books::Books(void) … Software Development c++ data-structure | |
Hi, I am looping through some files, gathering information into an array during that loop. The array grows with the loop counter and at every point might be longer or shorter (more or less members in it) so in order to reuse the array I need to drop all values … Software Development shell-scripting | |
OK, I've been reading a lot online and I think I can't do this, but I'm really hoping someone has a clever workaround. What I have is a bunch of classes with Color attributes. I'm also storing the red, green, blue, alpha values as integer attributes in those classes because … Software Development java | |
i am using a c library from c++ application and i need to fill a c struct from c++ code, this is a c++ console application. it doesnt seem to work when i assign variable values using cin. what should i do ? Software Development c++ | |
Hello, How can I create a multi-field list box like in the picture in the link below in Visual Studio. NEo4 [URL="http://i465.photobucket.com/albums/rr12/black-eagle-bucket/multi-field_listbox.png"]http://i465.photobucket.com/albums/rr12/black-eagle-bucket/multi-field_listbox.png[/URL] Software Development vb.net visual-studio | |
I took up Visual Basic 6 as a hobby for my retirement. I have no formal traning in computer programming...taught myself everything I know. So my code may look alien to you but it works up to a point and that is the nature of my problem. I am writing … Software Development visual-basic | |
Hii Folks , Sorry For this Long Question, Problem: I Want to Create 5 check boxes and i want to reorder those components using a GridBagLayout , and it's have a Container called Local_Container,after reordering of those components add to panel, so Now we have a Container(Local_Container with a label … Software Development java | |
hi! how to get the field value in VBA with the help of SQL statement and assign this value to a Variable.... and then use that in the code...? thank you 4ukh Software Development visual-basic | |
If there are two arrays arr1[]={1,4,5,6} arr2[]={1,5} I want to get the output as arr[]={4,6} i.e i have to remove all the common elements that arr1 and arr2 have and printing the required output . Can any one give me the program in C++ for this with normal looping techniques? Software Development c++ | |
Can any one slove this question? It is really hard. [url]http://img168.imagehshack.us/img168/7080/task3vn7.png[/url] I don't know how to write it in c++ but i have write up the programing logic that should work for this question. Software Development c++ | |
Hi all, I have a small app in .net 2008, running (in systray), in many computers in my company, that has to alert the user a few times during the day's work, and sometimes ask for their input. The problem is, when, i open a form (show or showdialog), it … Software Development vb.net | |
Okay im reading in lines of text e.g "abcdefg" and I need to split the line into an array of characters where each character is stored in its own element so its like [a][b][c][d][e][f][g] I know how to do it with splitting words from poems etc... using something like txtLine.split(" … Software Development java | |
Hi I have defined the class in C++ file as __declspec(dllexport) int clsName ::CreateDocument(char* filein, char* fileout, char* config) where clsName is the class name But after I compiled the code and use the dll in .net code I am getting a run time error "Unable to find an entry … Software Development c++ | |
Hey, I am having problems with this code, I think it is not linking up the whole file, because when I run it it only says "hi" 3 times. And also it keeps crashing because of best[i] = point->item->return_value(); [code] #include "applicant.cpp" #include <iostream> #include <fstream> #include <iomanip> using namespace … Software Development c++ linked-list | |
Hello everyone....again. I have a program that is using a queue. I have a class member function that is to traverse the queue, and output the smallest number in the queue. Pseudo for this function is: Compare the front and front->next. Whichever is smaller, keep it. Traverse the queue until … | |
I'm getting a strange compile error with getline. My question is if you make a statement like: [CODE] getline(is, a.lastName, ','); [/CODE] can you revert back to: [CODE] getline(is, a.country); [/CODE] Or in other words, once you set a delimiter, are you bound by that delimiter for the rest of … Software Development c++ | |
Hi I am working on an incredible project, it is an GUI. I hav used a JLabel to show 10 words but it actually always shows the last one only. I think that i need a timer to make it change but i have already a timer and i cannot … | |
I am writing a program that accepts a sentence and then prints out the longest line, this is what I have so far, but I am lost on what the x variable should be equal to. Any help is appreciated, thanks. sent=raw_input('Enter sentence:') splicedsent=sent.split(" ") longestword=splicedsent[0] if x in range(splicedsent[1:])>splicedsent[0]: … Software Development python | |
Hi, What I'm trying to do is use a groupbox, that contains a radio button, two text boxes and a timer. I'd like to add any number of instances of this groupbox to a panel using an 'add' button. Does anyone have an example or pointer in the right direction … Software Development | |
Hi Folks, I have a general question about multithreading... I have a small app that is multithreaded. I have a main() class and a separate Runnable class that implements the Runnable interface. The problem I have is that the Runnable class needs to return an integer to main(). But this … Software Development java multithreading | |
The below code, is a source code which i am trying to learn double linked lists from, as for a 2nd year assignment. For some reason my editor keeps returning the error messages [icode]'cout' : undeclared identifier 'cin' : undeclared identifier[/icode] Can someone please help me?? All help is VERY … Software Development c++ linked-list | |
| |
Hey guys, So I'm on the second last question of my latest homework assignment and I can not figure out what is wrong. Basically it asks you to input a date, name, amount and then prints out a check, with a word form of the name on the bottom. Well, … Software Development java | |
I have simple player with wx.ListCtrl as playlist. I first Load List through open file dialog. I populate a dictionary with filenames (populated in Playlist) as keys with their path as values. When I press play, the onPlay method calls onSetPath method which looks up for selected file from list … Software Development python | |
Everything seems to be well, but NOTHING GET PLAYED!!!! :oops: I have tried and tried but doesn't work. WHAT IS WRONG???? :shock: [code=python] #media control #Copyright 2008 Evstevemd #Just media Player to play the playee import wx import wx.media as media import os, sys class MediaPlayer(wx.Frame): def __init__(self, parent, id, … Software Development python | |
please tell me how to format text in a SINGLE cell of a table. Once the following text is added. i want to format it in followinfg way. ---------------X_------------------------ Title : ball cat dog ---------X_------------------------ Title : in BOLD and Underline rest of the data in BULLETS. Software Development visual-basic | |
The output from this only returns the letter 'C' in the path string. Help! Wizzsm. std::string GetServiceConfig() { HKEY keyHandle; char rgValue [1024]; LPCTSTR regPath = L"SYSTEM\\CurrentControlSet\\Services\\ApirbiService"; LPCTSTR regReq = L"ImagePath"; DWORD size1 = sizeof(rgValue); DWORD Type; if( RegOpenKeyEx(HKEY_LOCAL_MACHINE, regPath,0, KEY_QUERY_VALUE, &keyHandle) == ERROR_SUCCESS) { RegQueryValueEx( keyHandle, regReq, NULL, &Type, … Software Development c++ | |
I am writing a project that stores vehicle information such as the model,manuf., year, etc. I have to create a second project that loads the data from the file into memory and loads a drop down combo box with the VIN numbers. When the number is selected from the box, … Software Development vb.net | |
Please can someone show me how would I create a file using fstream that would take the contents from another existing file and user input sentence. for example: I have file1 with some contents The user inputs a sentence Now I want to create a file using streams that has … Software Development c++ | |
Hi, I have a big problem interacting with the MS Access database. I have read again and again all the topics related to the error [B]"The number of query values and destination field are not the same"[/B] on this forum but still I can not fix. Here is my story: … Software Development | |
I have to delete the records in a ms access table using vb.net when i click on a button. Software Development vb.net | |
To any and everyone :) As stated in my title, this is a homework assignment, so I appreciate any help or suggestions that are given. Also, per the website rules, I have put effort to this, and I'm not asking anyone to just do my work. (The program compiles and … Software Development c++ linked-list open-source | |
I had a problem w/ efficiency - The problem was that using String concatenation was inefficient for large text files, when reading the whole file into the String. I've since thought about it, and I guess this is because Strings are immutable - so every time concatenation is done, a … Software Development java | |
I need to make a seating reservation system for my assignment and I have to manage .dat files. I have to store all Student objects in a file. When a student is registered, a new object is created and I need to add it to the archive. But as far … Software Development file-system java | |
This is part of a larger program and this is the only part that I can't get down. Right now, it runs fine once through, but telling it yes to repeat the loop at the end does not allow the user to input a new name for student once the … Software Development c++ | |
I am trying to write a program that shows the longest word from an input . This is what I have so far, I am not sure what to set x equal to, or if that is even right: [CODE]sent=raw_input('Enter sentence:') splicedsent=sent.split(" ") longestword=splicedsent[0] if x in len(splicedsent[1:])>splicedsent[0]: longestword=x else: … Software Development python | |
Hello there, I'm learning file I/O in c++ ATM and I'm getting a strange problem when I'm (at least I think so) following a tutorial. What I'm doing is simply writing a User object to a file and then read that same object from the file. I'm doing this just … Software Development c++ file-system ios | |
I am a freshman in highschool and have just started learning Python. This week I have an assignment on while...for...and lists. I have tried this problem and this is what I got so far, I'm not sure if it is correct at all: start=float(raw_input("Enter the starting value:")) end=float(raw_input("Enter the ending … Software Development python | |
The debug process never connected back to WINGIDE: Aborting debug session I have tried repair python, no success. Also tried run IDLE same story | |
I'm just diving back into C++ after a while of being away. I've created a simple project. But its giving me these stupid errors when I've been trying to do some OOP: main.cpp [CODE=cpp] #include <iostream> using namespace std; #include "oopy.h" int main(int argc, char** argv) { Oopy awesome; cout … | |
Hi guys, I'm new and I'm totally stuck on a question for class! Basically we have to get the user to enter a few sentences and then change the first letter of every sentence to a capital version. I'll post my code below. (I'm not asking for the answer just … Software Development java | |
Quick question from someone very new to constructors... If the function body of a class constructor is an array, can I then use any instantiation of that class just like an array? ie: World *anthill and then later... anthill[x][y] or is that wishful thinking? [COLOR="Green"][B]-Ella[/B][/COLOR] Software Development c++ |
The End.