132,726 Archived Topics
Remove Filter ![]() | |
Hello, I'm embarrassed for asking this question but for the life of me I cannot find an answer. This ultra simple code is giving this error as well as any other function that I'm trying to write. [CODE]a function-definition is not allowed here before '{' token expected `,' or `;' … Software Development c++ | |
Hey all I recently picked up the book "Java the first semester". It uses the EasyIn class to get user input. I have downloaded the file EasyIn.java but I dont know how to make the class accessible from my programs. [QUOTE]As long as the EasyIn class is accessible you can … Software Development java | |
a mouse is trapped in a labyrinth.. and he has to find the cheese! the input is W and H (height and width), and a graph like this one: [CODE] ##...# C###.. ...... .####. .....M [/CODE] i'm supposed to calculate the shortest amount of steps he needs to make to … | |
Hey guys, I come over from C, wanting to learn C++. I have a nice little book but figured I could use a project to get me going. So I magicly crafted code, and ran into this problem: [icode]C:\Code\Rapture\World.h|7|error: ISO C++ forbids declaration of `Breeture' with no type|[/icode] With this … Software Development c++ | |
Hello! All Well its a problem i have no idea about it ... check dis : i created a small graphics program.. like which draw a circle on screen.. it works very fine.. on other hand when i shift that code into my bigger program where i have used structers … | |
I am using this function to download files: [code=python]def download(url): urllib.urlretrieve(url, url.split("/")[-1])[/code] I am downloading files from a site, but I don't know the EXACT filename... All I know is the id for them... Example: download("http://site.com/files/489411/") When i am to do that, it automatically resolves the appropriate filename and it … Software Development python | |
Menu.RC [CODE]POPUP "File" } MENUITEM "New", CM_NEW MENUITEM SEPERATOR MENUITEM "Save", CM_SAVE MENUITEM "Save As", CM_SAVEAS MENUITEM SEPERATOR MENUITEM "Exit", CM_EXIT { }[/CODE] I have another file with the definitions to CM_NEW, Etc. Software Development c++ | |
hi all, i've a problem in converting struct into short here's the code i'm using, but it's still error while i'm running it. [CODE] typedef struct ip_header; unsigned short *temp; memcpy(temp, &ip_header, sizeof(ip_header)); [/CODE] any help will be greatly appreciated. thx. Software Development c | |
Hi everyone ! This is my first new post, I have a problem with my Java code. I am trying to make a first applet, and have gotten this code from a book, "Java - An Introduction To Problem Solving & Programming", by Walter Savitch and Frank Carrano : [code] … Software Development java java-netbeans java-swing | |
Hello everyone!!! I just want to ask if is it possible to create a chat program that send and receive message, audio and video for Local Area Network... I want to create a program similar to yahoo messenger that includes the future of voice and video but the difference is … | |
ok i know i have posted the same request before but i am still completley stuck with where to go from what i have got so far. the program i have to do is basically a very simple atm program. the user has to enter a pin number between 1000 … | |
data='115Z2113-3-777-55789ABC7777' I have a string in the above format. I want to remove 'ABC7777' from it. If there are any characters other then numbers after the right most '-' symbol, then only the string preceeding it should be retained.i.e., '115Z2113-3-777-55789ABC7777' should be stored in data. 'ABC7777' should be stripped off. … Software Development python | |
I'm a beginner to VB.net 2005. I've started creating a small database project by refering to some VB.net books. I've know the use of dataadapter, datareader, commandbuilder etc which are required to connect to the database. I'm using Microsoft SQL Server Database File (SqlClient) for my project. I've used the … Software Development dataset open-source vb.net windows-server | |
When I try to add a SQL database using Using Add New Data Source Wizard I get a Error.You can see dat in this [URL="http://img156.imageshack.us/img156/8012/errorsa7.png"]screenshot[/URL] Anyone can Tell me whats the prob.. Software Development vb.net | |
how can i put the filename get in scanf("%s", &filename); in fopen("filename.txt", "a"); [CODE=c] main() { FILE *file; . . . printf("type the filename (.txt): "); scanf("%s", &filename); file = fopen("filename.txt", "a"); fprintf(file, "..."); fclose(file); . . . } [/CODE] Software Development c file-system | |
I have a template function as follows: template <typename T> int my_func(T& arg) T is expected to be of type map<T1, T2>. T1 is expected to be of a basic type (int, long, etc.) and T2 is expected to be of type vector<T1>/list<T1>/etc. I want to iterate over the contents … Software Development c++ | |
So far i have managed to butcher some code i found around 12mth ago to allow me to read the relevant node but i'm struggling to find out how to edit this node value and save the xml file. I cant find where i got this from or anything similar. … Software Development visual-basic xml | |
The following code is a minimal example of what I am trying to do. When I compiled it with Visual C++ 2008 Express, I got the error: main.cpp(62) : error C2677: binary '*' : no global operator found which takes type 'Point<T>' (or there is no acceptable conversion) 1> with … Software Development c++ | |
I ask for simple help. I'm at a part of my application where I need it to open a text file, and search for id numbers within the text. There will be several instances of "id=######"s that I will need to grab from the text file, and put them line … Software Development file-system visual-basic | |
I'm using Microsoft Visual C++ 2008. How would i play a sound file? Either .wav, .mp3, or .midi hopefully. | |
I have a form has to (maskedbox1) and (maskedbox2) if maskedbox1 I put date of today, I want ([COLOR="Red"]maskedbox2[/COLOR]) show date after 30 days as defult I will be thank you if you help me to do this I use vb6 Software Development visual-basic | |
Hi, I am relatively new to C#.NET and I was wondering if the garbage collection is similar to Java. I am developing a windows form application and I am dynamically making new buttons, will they be deleted by themselves or will I manually need to delete them? For example: this … | |
Hi there: I defined several variables and assigned them values (nonzero) on a form. But I always got zero values of them when I cite them from another form. I am using BCB and never met this problem before even when I was doing the similar things. Can somebody give … Software Development c++ | |
pleeeeeease can i get the full file path from specified file name (.exe) an arbitrary file (.exe) Software Development c++ file-system | |
Hey guys I am a VB noob and need some help, basically this is what I want to do please look at the following picture [URL="http://www.bus.ucf.edu/llinden/courses/ISM3253/assignments/marketing_study.PNG"]CLICK FOR PICTURE [/URL] The app should basically pull up the data contained within this CSV file : [URL="http://www.bus.ucf.edu/llinden/courses/ISM3253/assignments/survey_data.csv"]CLICK FOR CVS FILE[/URL] and display it … Software Development file-system listview visual-basic | |
Hi, Absolute newbie to python,infact just started learning it from yesterday.... I have installed Apache2,mysql,php and an ecomm software(osCommerce) on to my ubuntu machine. I downloaded a tool -funkload based purely in python,installed it by easy_install method,searched for the egg file in site-packages and could run the demos. I have … Software Development machine-learning python ubuntu | |
I need to find the number of elements in an array passed into a function. The problem is in this case, sizeof() returns the size of the pointer itself. It only does this when passed through to a function. So here is that function: [CODE=c++] bool matchWord(TWORD *wordList, TWORD *word, … Software Development c++ | |
I want to make a bot for Counter-Strike called Counter-Bot. Does anyone want to help? A disassembler would be good, too. Software Development c++ | |
i'm trying to print the suits of the cards [CODE=c]typedef enum{diamonds, spades, hearts, clubs}SUIT; typedef struct{ SUIT suit; int value; }CARD; typedef struct{ CARD *cards[52]; int atual; /*indicates the next card to be withdrawal of the deck*/ }DECK; typedef struct{ char name[30]; CARD hand[3]; CARD biggest_card; int num_victories; }PLAYER; switch(suit) … Software Development c | |
how can i sort in decreasing order? i did the sort is in increasing order [CODE=c] typedef struct{ char name[30]; CARd hand[3]; CARd biggest_card; int nro_victories; }PLAYER; PLAYER h; int m, i, j, k; for(i=0; i<n_playeres-1; i++) { k = j; m = h[i].nro_victories; for(j=i+1; j<n_players; j++) { if(h[j].nro_victories < … Software Development c | |
Hi, I have to develop a little launcher for mobile phone. What I want at this stage is having a login form that sends login and pass to the server, and then wait and receives the answer. I already installed NetBeans and the Java Mobile environment, with a sun phone … Software Development java java-netbeans | |
Hi python guys, I just started to dig in Python. I am new to this. I came close to Python when I got a project to be done with Django. I got stuck when I was fetching data from database(mysql). the data was fetched in variable 'rows' which have Id, … Software Development python python-django | |
i am working on a vb project in which need has arised to print an invoice. however the problem is that the contents of the invoice is accompanied by horizontal and vertical lines. Also the so-formed rows and columns are not regular. My question is how can i print such … Software Development visual-basic | |
i learnt c language but iam not aware of practical applications of c.how this can be used in development of any softwares,webdesigning ,or creating a virus or destroing a virus.can any one show any one practcally so i can be aware of and i will try in furthur applictions. thankingyou............. Software Development c | |
Hi, am doing M.sc Final year....i have to submit an assignment on java project which should be a real time project......but i dont know how to choose the project.....can u please help me to get a very good project in Java which will be useful for my Career........:( With regards, … | |
I am following some exercises in Delphi in a Nutshell from Ray Lischner. Very easy to follow and readable. He was explaining how units are working the following code: [code=pascal] program Units1_1; uses UnitA; {$AppType Console} begin WriteLn('Units 1_1 main program'); end. unit UnitA; interface uses UnitB; implementation initialisation WriteLn('UnitA … | |
hello all i dont know what is the problem ....... a very simple change in the order of functions make the program goes in infinite loop this code works will [CODE=cpp]#include <iostream> using namespace std; int main() { int i; while(true) { cout << "\nEnter Intger:"; cin >> i; if … Software Development c++ | |
Objective The objective of this assignment is to provide hands on experience of using Classes and Objects Dynamic Memory Allocation in C/C++ Friend Functions Program Write a C++ program that contains a class named Student having following data members: 1. stdId 2. stdName 3. stdAge 4. stdProgram 5. noOfSubjects. The … Software Development c c# c++ objective-c | |
i need help on my homework problem. i have done the operations part (+, -, *, /, sqrt) but i am really having a [B]problem on making my calculator accurate up to 40 digits and to truncate all the non-significant zeroes on the output[/B]. i don't know what data type … Software Development c | |
Dear friends, I am using Vb.net as front end and Sqldatabase as my database file. In my application actual data is not updaing in to the database. But it shows the data while running. Once if clsoe the eecution and if i check the table the data is not saved … Software Development vb.net | |
Hello All, I want to learn VB.net again, before 3 years i did cource but now i forgot most of things what i learned. Now i want to learn VB.net again, will you please let me know good source to start with where, the examples are given with the code, … Software Development vb.net | |
i am currently using this code to print the documents. when ever i creates a command to print it is printed through the default printer but i have multiple printers installed and want to print through the printer name which i specified. if any help is there it will be … Software Development printer | |
Hey, I'm starting out Java development, and I want to know exactly what I need to download. I believe I need to download the JVM, but what else? And I know there are IDEs like NetBeans where you can just press a button to build and/or run the program, but … Software Development java java-netbeans | |
If I declare a struct node, is the following legal in C++? [icode]node nodes_array[vector.size()];[/icode] I know this is not legal in C. However, my C++ compiler does not complain. Is this only in recent versions of C++, or has this always been legal in C++? | |
hi i created MFC dialog based application and in an event of a button i want to execute a C++ console application . i've tried severl functions such as shellexecute and create process ....but it executes it but then return the wrong answers .....where if i run the application console … Software Development c++ | |
I have a quick questions regarding a a certain style of coding I have seen that I found to be rather unique. It entails including C files within a program to allow for easy changes of constants and other variables on the fly. This method is used because of the … Software Development c | |
[ICODE]Private Sub Form_Load() Dim tmp() As String Dim i As Integer Open App.Path & "\links.txt" For Input As #1 tmp() = Split(Input(LOF(1), 1), vbCrLf) Close #1 For i = 0 To UBound(tmp) DL.Download tmp(i), App.Path & "\" & ExtractFileName(tmp(i)), "k" & i Label2.Caption = "Connecting..." Next i End Sub Private … Software Development visual-basic | |
Hi there, Say I have a payload: 1) unsigned char apayload[] = {'H','i',' ','T','h','e','r','e'}; And then I have another payload, which is the same as above but with an additional 2 characters: 2) unsigned char received_payload[]={'H','i',' ','T','h','e','r','e,'a','b''}; How would I go about making the second payload exactly the same as … Software Development c++ | |
i am making a project using jsp and i am stuck with the signup page i want the user to enter its username , password, re enter password and a security question plz can any one provide me with the code or something i shall be very very thakful to … | |
Hi, friends I am developing project in which I get some data from the database which is already saved as HTML. I can get get whole data which is simple HTML but this database content is developed as below. Word file first created save it as the web content and … Software Development html-css java java-swing microsoft-office xml |
The End.