43,549 Solved Topics
Remove Filter ![]() | |
I started c++ a few days ago and I am trying to make this program for my math class just to test myself. This is my code. [CODE]#include <iostream> using namespace std; int main () { int goldennumber; int finalnumber; int ratio; cout<<"Welcome to Easy Golden Ratio Finder!\n"; cout<<"\n"; cout<<"\n"; … Software Development c++ | |
I'm using the VB6 Standard Toolbar Control. I would like to basically do this: [code] Private Sub MDIForm1.Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button) [/code] Which cannot be done. I'm looking for a some along these line. I have tried this code in a timer, but it seems to make the button click … Software Development visual-basic | |
This works and shows the factors or tells if the number is a prime number but doesn't show ODD factors please help!! I need to turn this tomorrow [CODE] #include <iostream> using namespace std; int prime(int num); int main() { int num; cout<<"Enter number: "; cin>>num; if(prime(num)==1) cout<<"The number is … | |
The following snippet finds the least, greatest and sum of the elements of an array. It works when I give the test condition with variable "i" in the for loop (as in the first snippet). But when I replace it with a pointer(as in second snippet), it gives a wrong … Software Development c | |
I have a situation where a file upload program that has been running without any problems for months now suddenly uploads completely empty files. When I turn on warnings (perl -w), I get a message like the following: [code]FATAL WARNING: read() on closed filehandle fh00001license.txt at CDownloadEditor.pm line 293.[/code] Here … Software Development apache client-server perl | |
Hello boys and girls, the problem is (i guess) quite simple, when i push the button on my aspx page and write to the XML file the page disappears. DEFAULT.ASPX.CS [code=C#] protected void Button1_Click1(object sender, EventArgs e) { string email = "member69@hotmail.com"; string name = "joe doe"; string country = … | |
hey hi to everyone im new in the site bout i thin its cool but the reason i am writing is that i have a home work in java and i have no idea how to do it can someone help me??????? a matrix in wich a number moves some … Software Development java ![]() | |
Hi everyone. I need an application that loads a window to the top of the screen -1 inch height. The window should be always on top, but here is the catch. Every other window should appear below it. I.e no window should be covered by my small window above and … Software Development java | |
I have been working on this application and im stuck now at a spot where i want to be able to click a button and have a combo box populate with text from a field in a access database where another field on the same record should be equal to … Software Development visual-basic | |
Hello, Does anybody know of a tutorial on download specific data from a web server sql db and inserting this into a local access db? Software Development vb.net web-server | |
Hi all, i want to show report from date to certain date. so like 1/1/2008 to 1/7/2008. anyone know how to do this?? any help will be appreciated. thx.. Best Regards.. Software Development vb.net | |
Hi guys/gals, i need to make transparant form and it can be changing by user. i stuck cause i didn't know how to start.. OK.Best Regards.. Software Development visual-basic | |
Hello can anyone give me an idea of a project that I can do on C++ Please can you support your advice with something that i can read about it? its ok if not. Thanks, thanks in advance. Software Development c++ | |
I have these question and I need some help from you : Assume that the maximum number of students in a class is 50. Write a program that reads students' names followed by their test score from a file and outputs the following: a. class average b. Names of all … Software Development c++ | |
hi all, i m new in this forums. i want to save int file into dat in according to biner. please help me cause i dont know how to start.. thx.. best regards... Software Development c++ | |
Hello people, I need help with a template program that i am writing . I am trying to emulate Stack operations using template class which works fine with all the datatypes except char* [B]when using all the datatypes at the same time.[/B] What I am trying to do is [B]pass … Software Development c++ objective-c | |
hi, sorry my english im using visual studio 2005, my project is in win32 console application im training to use files, my problem is that i cant do a ifstream get all stuff of a .txt file, it get just the first line, i can do put all in the … Software Development c++ visual-studio | |
Our servers is crashing everytime when my client scan my ports. And due minimal documentation since the code is writen few few years ago the only thing I could do is just recreate the whole event. below are the piece of the function that error and its exception tells that … Software Development c++ | |
Hi, again. I'm trying to read in data from a file that I've opened, so it is sitting in FILE* fp. Now I want to put it into a format that I can do things with it (seperate it into words). My question is: how can I do this dynamically? … Software Development c | |
hello, i want to find record with number field and text field. please help me Software Development visual-basic | |
Hi all, I'm working with some date formating, with local and UTC time format. At the end I've print the result to the console as follows. [CODE] cout << stLocal.wMonth << "/" << stLocal.wDay << "/" << stLocal.wYear << " " << stLocal.wHour << ":" << stLocal.wMinute << "\n"; [/CODE] … Software Development c++ | |
Hello, I'm currently developping a GUI OpenVPN wrapper in Java ( platform is WinXP ). I'm having a problem when I launch OpenVPN using Java Runtime.getRuntime().exec(), a problem I have been trying to solve for the 2 past days but in vein :yawn: Here is the code I'm using to … Software Development gui java microsoft-windows | |
hi all, i want to take snapshot. how i can do this with api function?? i didn't know api function to do this thanks to the attention best regards hope. Software Development api visual-basic | |
Hi all, In my project I have several classes. In some of my classes, I have to use an instances of my other classes. When I compile my class, which has a reference to another classe, it gives me an error. like this. [code] C:\MyProject>javac SomeClass.java SomeClass.java:9: cannot resolve symbol … Software Development java | |
Hi ,i just have a fhew code witc i do not understand clear.Can you make some explain. It is category from C++ Win32 API. [code] typedef std::basic_string<TCHAR> ustring; inline int ErrMsg(const ustring& ); What this mean ustring& ? [/code] [code]ustring classname=_T("SIMPLEWND"); ErrMsg(_T("Failed to register wnd class"); [/code] // And i … | |
Hi, I have a script, when I run it The output overlaps : Example Instead of saying Canadian 1.00 Dollar it would say something Canadian Dollar00 I also need to know how to find the amount of decimal places in a variable and also how to check if a variable … Software Development shell-scripting | |
hi all, I want to know how we display image on button control instead of text? I want to show image on button Plz can anybody help me thanks in advance Regards Guest11 | |
hi, i need help with how to find the max number and min number from an array. there are 31 numbers, i know that i am suppose to use a for loop to do this and this is what i got so far array is inputed by user [code] #include … Software Development c++ | |
Hi all I was looking for a port scanner to see what was open on my laptop and I thought as I was learning C++ why not search for a C++ port scanner. I came across this code I can make sense of most of it but it wont compile. … | |
want to know what u thing??? name: sara name:miky name:ducky code:1345X code:2238Y code:7569Z IF THE USER ENTERS WRONG NAME THE SYSTEM ASKS TO RE-ENTER. THE SYSTEM ONLY ALLOWS THREE CONSECTIVE ATTEMPTS.AFTER CORRECT NAME ENTERED THE SYSTEM ASKS FOR ALPHANUMERIC CODE WHICH AGAIN SYSTEM ALLOWS ONLY THREE CONSECTIVE ATTEMPTS. IF THE … Software Development java | |
I am having some isues adding std as a namespace. I am using vs2008. don't know if that has something to do with it. [code] #pragma once //using namespace System; using namespace std; namespace Email { public ref class Class1 { private: void telnet () { system("dir"); } }; } … Software Development c++ | |
I am new to c++ classes. I am trying to write a simple e-mail class. below is my .h file. In the cpp all I have is the main which is empty right now since it wont even compile. I am getting cout and endl as an undelclared identifier. I … Software Development c++ | |
Hi folks. I'm trying to do something I hope is very simple -- taking an argument placed after the program's name and storing it. So, if I type whatnumber 4 it will store the value 4, whatnumber 100 will store 100, etc. I've tried using int argc, char *argv[] instead … Software Development c | |
hi all.. Can any one explain, when i have class Pet, what is the difference of declaring variables like each of following. Pet mypet; Pet mypet = new pet(); Pet* mypet = new Pet(); thanks. Software Development c++ | |
I have managed to read a file name and two strings. Now I need to search the file for a lines that maches string1 and replace them with string2. And I have no idea how to do that. Can anyone help me please. Software Development assembly | |
Hi, thx to jax_man that i converted my code to vb.net but the problem now is that the program don't seem to work. The button when i clicked on don't work. sorry i'm new to programming. Software Development vb.net | |
Hi everybody. First of all thanks for taking the time to read this. I'm having a problem with initializing the buttons and adding them to JPanel. The problem is with everything else I have I'm trying to add the buttons in initButtons(); to the JPanel but I can't seem to … Software Development java | |
is it possible to run a source file that is not part of a solution/project? it appears that this is not possible in Sharpdevelop. Also, why is it I cannot compile and run a file that is not part of a solution ? many thanks | |
Hello, i need help on how to search for a sentence inside a txt file after opening it and then applying a condition if that sentence was found. im a beginner so i don't know how. basically i have written a program that uses system("command>file.txt") to start a command line … Software Development c++ file-system | |
Hi freinds I want to send an email using [COLOR="Red"]VB.NET2005[/COLOR]. Can any one help me in it any :icon_redface: code?????? | |
I want to write all the output to the output file and don't want to print on the console output...the file (in which the output has been written) should be opened after i run the program. which function to use for opening a file to see output( at run time)?? … Software Development c++ | |
here is the snippet data = ''2007-12-31 Name (mike) Age (34).....' gregorian = time.strftime(data.split(" ")[0]) print gregorian this gives me "2007-12-31" i need to convert the gregorian date in the variable to julian date. i tried this but it gives me the current date julian = time.strftime('%j', time.localtime()) Software Development python | |
how to validate email field and website field. Means, in email [B]@[/B] and [B].[/B] is compulsory and in website [B]www[/B] and [B].[/B] is compulsory, something like this Software Development email visual-basic | |
hi everybody! im in a basketball team n my coach asked me to make a scoreboard program for the huge screen we have (he knows im the only one from the team that does some programming) im using Visual Basic 2008. i pretty much know how to do everything except … Software Development visual-basic | |
Alright so I have a class of Food items that contains the information for food, the information gets stored into a Customer Class that hold the information for the order of the customer. Ok so thats just an introduction for details. Each food item contains a status variable that tells … Software Development | |
Hi, Here is the ( .rc) file .And i know that the pushbutton is not correct . [code] MENU_ID MENU BEGIN POPUP "&File" { MENUITEM "E&xit", EXIT_ID } POPUP "&Help" { MENUITEM "H&elp About", HELP_ID } BEGIN PUSHBUTTON "1",ID_1,30,30,10,10 END END [/code] so i want to make a pushbutton in … Software Development c | |
Let's say I'm sure that one of my base classes will never be instantiated, so I decide to make it abstract. But at the same time all of its functions have definitions because they're common to all derived classes (e.g. Physics() will be the same regardless). So I know that … Software Development c++ | |
hello i want to build a function which receives a pointer to a head of linked list reverses the order of the list and returns a pointer to the new head. my list is defined like this : [CODE]typedef struct item { int key ; struct item *next ; } … Software Development c linked-list | |
I have a (probably stupid) question about the input buffer. I want to do something while there is no space pressed. But if nothing is pressed, it should be doing it too. The problem is that by using getch(), the script will keep waiting for an input of the user. … Software Development c | |
I wish a happy 2008 to everyone on this forum. I just obtained the practise of programming{by the way it seems like a great book...} and i have the following code for linked list: [CODE=c] #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct Nameval { char *name; int value; struct … Software Development c linked-list |
The End.