132,726 Archived Topics
Remove Filter ![]() | |
Can someone please tell me what im doing wrong in this program..im gettin a compiler error saying: C:\Dev-Cpp\projects\proto.cpp In function `int main(int, char**)': 46 C:\Dev-Cpp\projects\proto.cpp a function-definition is not allowed here before '{' token 46 C:\Dev-Cpp\projects\proto.cpp expected `,' or `;' before '{' token C:\Dev-Cpp\projects\Makefile.win [Build Error] [proto.o] Error 1 The … Software Development c | |
This program I thought was working fine. It reads something I type in then it's supposed to break up the words (or random letters) separated by a " " and pop them into array [B]arr[/B]. It works, well sometimes... I don't know what's stopping it and them other times allowing … Software Development java java-swing | |
hello guys, i need ur help in converting NFA to DFA DFA Algorithm : s <- s0 { start from the initial state } c <- nextchar { get the next character from the input string } while (c != eos) do { do until the end of the string … | |
Hello. I am asking for help. I have 2 input files containing sorted integers. These 2 have to be concatenated into a third file and now all the integers must be sorted. (Example: file1 contains 1 5 8, file2 - 2 3 6 and file3 must contain 1 2 3 … Software Development c++ | |
I have a C# console program that generates Excel files and writes extracted data from SQL tables into them. Program is scheduled by Windows Scheduler to run periodically. Problem is that when scheduler fires up the program, it goes through the steps and logs that completes successfully. However, no file … Software Development | |
Hi all, I'm really not at all experienced with C++, but I have some changes to make in code that used to be maintained by someone else. The code that exists may not be the best, but I'm not looking to totally re-write the widget because it works for us … Software Development c++ | |
We have an assignment to convert infix to postfix. And I have made this initial code. When this program is executed, I'd type any word that is not an operator or '(' or ')'. For example my input is "asd" my output should be "asd" also. But in this code … | |
7. Write a simple C++ program that performs addition, subtraction, multiplication, division, exponentiation, base-10 logarithm, and factorial operations. The program should start with a menu letting the user to choose one of the eight operations the user wants to perform. A sample menu is given below (hint: use loop to … Software Development c++ | |
hi every body....... here i want to ask something about base64 algorithm which is used for the encryption of passwords.........i just want to know that how it works ?????what are the functions used in this algorithm?????any type help.....any link...???? Software Development algorithm c encryption | |
hi i have used three classes to make link list in java lean list as interface, Basic list got the constructor etc , and Demo basic test i need the function to be added in the demo basic list to complete the program. the following code for classes are as … Software Development java | |
i am using a GridBagLayout and it works fine when i take my coordinates to place an asterisk on the frame but if i try to extract the coordinates from an sql table then it just displays one single asterisk and which would be in the center.. and if i … Software Development java | |
hi guys......can you please give me the full working code of the program, because i also encountered the same problem.....but i don't know where to put clientsocket.close() and the other corresponding code. i new to vb.net AIM:1. when the user click on a disconnect button, the communication stop and user … Software Development client-server vb.net | |
Hi, i have error in line: "student.Add(info);" Error 1 Use of unassigned local variable 'info' [code="C#"] public struct Students { public string Name; public int ID; public string Date; }; static void Main(string[] args) { ArrayList student = new ArrayList(); Students info; info.Name = "Marko"; info.ID = 12; student.Add(info); foreach … Software Development | |
i have the next string array {10100100, 11010000, 01000001, 11011000, 00000000, 10111100} how can i convert it to byte[]. i tried bitconverter and some encoding options it didnt work. Any ideas? Software Development | |
Hey guys. Can anybody tell me what is wrong with this line of SQL? I keep getting a syntax error message. Here is the line: [CODE]prepStat = connection.prepareStatement("INSERT INTO WeatherHistory (Date, Location, Overview, Temperature, WindDirection, WindSpeed, Pressure) VALUES ('"+date+"','"+location+"','"+temp+"','"+windDir+"','"+windSpd+"','"+pressure+"')");[/CODE] All the field names and variables exist correctly, so I really … | |
Here I have a program called Connect4Model. Basically what the problem is that I have successfully compiled the program in TextPad. However when I run the program it throws up an Exception in thread "main" error. I fully understand what this error is, and it basically means that I'm missing … Software Development java | |
I'm a programming noobie, been programming for only a couple months. The other day I had the idea to write a small application where it would minimize Skype automatically after a call was terminated or over. I have no experience using API so I've been doing my research on the … Software Development api c++ google-api | |
I've been working on something with alot of iteration (foreach) and now that everything is working I'd like to optimize it by changing it to link. Currently I am trying to translate this foreach code to LINQ [CODE] int count = 0; foreach( string file in Directory.GetFiles( path )) { … | |
i want to develop a c++ program that may take a visual input like a graph and then manipulate it to find whether its a planar graph or not....i am well versed with the algorithm to do this...just want to know that how can I read the input from a … | |
hey guys... Thanks for your help in my previous post. Havin another problem in my stack assignment this time.. Have done how much i could but there is a lil error in it.. Possible in the [B]convertip[/B] function... Hope i can get the help needed.. Thanks in advance...=) [CODE]#include <stdio.h> … Software Development c | |
public class Connect4Model { Connect4Column [] columns; // Cannot find symbol private int NUM_COLUMNS; private int NUM_ROWS; private int playerToGoNext = Connect4Column.RED_COUNTER; // cannot find symbol Connect4Model(int numCols, int numRows); // Missing method body...Is this because I'm missing a curly braces just above { columns = new Connect4Column[NUM_COLUMNS]; for (int … Software Development java | |
I've written a few simple C++ programs in Dev-cpp... Now i want to run the second program inside the first in case it satisfies a condition. It then geneerates a text file from which new values are got. Is it possible to do that ? I'm just a beginner and … Software Development c++ | |
To be honest...I am horrible at java. I just got a job and have missed class a few times because of it and im supposed to create a project that can read the number of lines, words, characters, average words length, and letters in a file. I am trying to … Software Development file-system java | |
Hi i was wondering if it was possible, in java, to save a session/state of an application and then reloading the data (all automatically)when re-opening?? I have a GUI with some textarea, a jtree with filesystem hierarchy and a jpanel with buttons. I can create many buttons and within these … | |
Hi there, Could someone give me a simple of example of how to write code in a c++ class library file? I made this to include through a reference in a c# app file. This is what Ive tried but Ive gotten all sorts of build errors: [CODE]// CClass.h #pragma … | |
I have an Employee form that displays data about the employee, on that form I have a button that launches an Employee Job form that shows data about the employee job. My question is how do I show the relevant data on the Employee Jobs form when I click the … | |
Hello. I want to copy a file from a UNC path (ex: \\comname\dirname\filename.txt) to a local destination (c:\outputdir) I have no compile errors, but when I run it, it throws an exception (System.IO.DirectoryNotFoundException). I'm absolutely sure the destination existst (it's referencing the destination directory). I've tried doing it with system.io.file.copy(source,dest) … Software Development vb.net visual-studio | |
I've just started programming, and I'm taking a java class as one of my electives this year. We have a program due tomorrow and I'm very much lost. I think i know what I want to do, but I don't understand the concept or know enough code to get everything … Software Development java | |
Hi all, Does anyone know of a way to scan a character from the command line without the enter key having to be pressed? For example, the user would type 'a', which is then picked up and scanned by the program and stored, etc. The only way of scanning input … Software Development java | |
Hi, I'm currently in a the process of making a connect4 game, but what is highly frustrating is that im trying to write a loop that takes i from 0 up to the NUM_COLUMNS. and then make the new object called Connect4Column. When I compile and run this it gives … Software Development java | |
My program is used to perform a salami attack on the database Whenever i run the program the compiler display the following message Invalid Cursor state on line 29 [CODE]import java.sql.*; //import java.io.*; class SalamiAttack { String ssql1,ssql2,usql,temp="",buffer=""; Connection conn; Statement st; ResultSet rs1; int index=0; float tempfraud,fraud,zigacc=0; SalamiAttack() { … Software Development java | |
Hi I am creating a windows application. I have a button as backup. When the user clicks this button,he/she should be able to take backup of the database. I am a beginner. I dont have any idea about how to do this task. Can anybody tell me how to do … | |
I am writing a C# application that opens multiple child forms to edit specific records in a database. When closing a child form, it asks if the user wants to save the data. However, if the main form is closed, all child forms are closed without prompting. It would seem … Software Development | |
How should I order my parameters in a class? I believe that I everything should be in alphabetical order, but what of grouping of different access modifiers. - const - public - private What order should they be arranged in? Software Development | |
I'm new to java, so please be kind if I'm not making any sense or making a rookie mistake! But I have been working for HOURS trying to figure out where I'm going wrong to no avail. I'm pretty sure I'm just missing something really simple, but hopefully someone here … Software Development flash hard-drive java | |
plese help..what is the poblem about this codes?\ [CODE] public abstract class Employee{ private String firstName; private String lastName; private String socialSecurityNumber; public Employee(String first, String last, String ssn){ firstName=first; lastName=last; socialSecurityNumber=ssn; } public void setFirstName(String first){ firstName=first; } public String getFirstName(){ return firstName; } public void setLastName(String last){ lastName=last; … Software Development java | |
I am doing a project in C# where i need to get another Projects Form running and get text labels that are updating every sec in that from.... Basically what i am trying to do is to list all the network ports and monitor their upload and download details and … Software Development | |
Hi all, I have got a regular expression of the form: "tcp:"+'[0-9]+' It works fine when using the re.search( ) module. But if I want to grep for a line in a file that contains the pattern required, then the things wont work. Grep sees the regualr expression as tcp:+[0-9]. … Software Development python | |
Hi all... can anyone explain how i can read from a config file and retrieve its value in a cpp file... I am writing down the cfg file... <APM> [APM_SAYHELLO] Formatter.Type = String Formatter.Val = AtlLogPlainTextFormatter Filter.Type = String Filter.Val = LEVEL_DDEBUG ComponentLevelFilter.Type = String ComponentLevelFilter.Val = true ComponentsEnabled.Type = … Software Development c++ file-system | |
Well I have just started learning python and one of my first projects I have assigned is to find out every uniquely usable character (like the ones in my id) can be used in python. I would save them in file. I am not very good at writing the code … Software Development python | |
Hello, I found this website while I was trying to search a solution/ recipe for a problem I am trying to tackle... I am very new to python :( How can I run an executable file from a python script? for example: All the files (python script - filename.py-, executable … Software Development file-system python | |
Hallo! I am a running a program, using the OmniORB and I have included the include path in VC++ directory, but I get the following error: 1>c1xx : fatal error C1083: Cannot open source file: 'C:\Program Files\omniORB\4.1.4\\include': Permission denied I am the administrator on my PC and I have all … Software Development c++ open-source | |
Hi! I need help to my Turbo C program.. I need to create a program that will ask the "Starting X:", "Starting Y:", Ending X:", and Ending Y:" on different shapes.. this is how the program should be: [CODE]SQUARE: starting X: starting Y: ending X: ending Y: CIRCLE: Starting X: … | |
Forget it, i just solved it, jeje, sorry. Thanks, and god bless you Software Development api c++ windows-api | |
I have created simple database project, using vb.net, ado.net, oledb, datatable, datagridview. My program is working nice, I just need Help with how to add, delete, update and edit records. Can any one please and please help me in this case, or can provide any good tutorial or source code … Software Development vb.net | |
Hey there, well I'm working on this miniregister program that allows the user to add classes and insert students into those classes and whatnot, and I'm trying to get the average age of a class but I keep getting garbage for some reason, so if you could help me out … Software Development c++ | |
Hi, I've been trying to catch up on my class and pointer code (both are weak areas for me at the moment). I tried researching as much of the code as possible and getting some in-class help, **Edit Changed program, no longer gives build error**. This is designed to take … Software Development c++ | |
I am accessing the mysql DB via TOAD and I am getting the below error "MySQL Database error - select command denied to user for table 'proc'" When I click on the Procedures I dont see the list of SP's and see this error. When I execute the below script, … Software Development mysql | |
I Have the following skeleton c code, I want to be able to open the file for reading and write some of its contents to the screen. rather than being hard coded into the program, the name of the file to be opened and read will be given a command … Software Development c++ file-system |
The End.