132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for oggiemc

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
Member Avatar for oggiemc
0
125
Member Avatar for Accendo

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
Member Avatar for Accendo
0
171
Member Avatar for em-kay

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 …

Software Development algorithm c++
Member Avatar for em-kay
0
289
Member Avatar for XerX

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++
Member Avatar for WaltP
0
156
Member Avatar for fesmaeili

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
Member Avatar for fesmaeili
0
102
Member Avatar for Superfreak3

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++
Member Avatar for Superfreak3
0
122
Member Avatar for ellaine101591

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 …

Software Development c c# c++
Member Avatar for emilo35
0
233
Member Avatar for micmagicfly

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++
Member Avatar for tetron
0
126
Member Avatar for sam_dev

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
Member Avatar for jephthah
0
123
Member Avatar for rizzi143

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
Member Avatar for rizzi143
0
301
Member Avatar for mytime19

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
Member Avatar for masijade
0
314
Member Avatar for arou_1

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
Member Avatar for arou_1
0
88
Member Avatar for Lolalola

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
Member Avatar for Lolalola
0
66
Member Avatar for checho

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
Member Avatar for checho
0
158
Member Avatar for David22

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 …

Software Development java sql
Member Avatar for csjbot
0
99
Member Avatar for unique88

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
Member Avatar for javaAddict
0
179
Member Avatar for d3mos

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
Member Avatar for d3mos
0
216
Member Avatar for PierlucSS

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 )) { …

Software Development asp.net xml
Member Avatar for PierlucSS
0
145
Member Avatar for anugrah.agrawal

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 …

Software Development algorithm c++ gui
Member Avatar for anugrah.agrawal
0
166
Member Avatar for ganesanronaldo

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
Member Avatar for ganesanronaldo
0
146
Member Avatar for unique88

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
Member Avatar for unique88
0
137
Member Avatar for dchunt

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++
Member Avatar for tetron
0
156
Member Avatar for charlieruns

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
Member Avatar for javatechgirl
0
1K
Member Avatar for dat_geezer

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 …

Software Development gui java session
Member Avatar for dat_geezer
0
105
Member Avatar for DrueY

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 …

Software Development c c# c++
Member Avatar for Banfa
0
265
Member Avatar for martin71

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 …

Software Development display vb.net
Member Avatar for martin71
0
83
Member Avatar for napkinbob

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
Member Avatar for fatiza
0
750
Member Avatar for w0rk4holic

how do i find all the interior angles of a concave polygon? here is a java applet that does the same :- [URL="http://www.mathopenref.com/polygoninteriorangles.html"]http://www.mathopenref.com/polygoninteriorangles.html[/URL] thanks

Software Development c++
Member Avatar for w0rk4holic
0
446
Member Avatar for JanieRae

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
Member Avatar for jwenting
0
142
Member Avatar for jiraiya

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
Member Avatar for jiraiya
0
142
Member Avatar for unique88

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
Member Avatar for javaAddict
0
107
Member Avatar for pradeep2010

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
Member Avatar for javaAddict
0
208
Member Avatar for S2009

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 …

Software Development c# sql
Member Avatar for Ivan_86
0
12K
Member Avatar for DAVe3283

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
Member Avatar for Geekitygeek
0
817
Member Avatar for DaveTran

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
Member Avatar for Geekitygeek
0
133
Member Avatar for justbelieve87

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
Member Avatar for tiny7415
0
167
Member Avatar for mackychan12

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
Member Avatar for tiny7415
0
154
Member Avatar for jamio007

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
Member Avatar for jamio007
0
124
Member Avatar for prashanth s j

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
Member Avatar for prashanth s j
0
146
Member Avatar for priyankapandey

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
Member Avatar for phoenix911
0
169
Member Avatar for «¤¦PR☼GRAM¦¤»

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
Member Avatar for Tech B
0
302
Member Avatar for o0b3600

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
Member Avatar for Gribouillis
0
276
Member Avatar for Luks

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
Member Avatar for Luks
0
844
Member Avatar for aianne

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: …

Software Development c c++
Member Avatar for Top9ne
0
1K
Member Avatar for pato wlmc

Forget it, i just solved it, jeje, sorry. Thanks, and god bless you

Software Development api c++ windows-api
0
101
Member Avatar for digitalsindhx

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
Member Avatar for digitalsindhx
0
506
Member Avatar for crodriguez08

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++
Member Avatar for Salem
0
134
Member Avatar for NEMESISD

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++
Member Avatar for NEMESISD
0
250
Member Avatar for bobbysands

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
Member Avatar for nasavietnam
0
600
Member Avatar for edicar

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
Member Avatar for Ancient Dragon
0
104

The End.