64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for IVantToVin

My goal is to have a vector fileList of type ofstream that I could later loop through to write the same information to each of them (copying at the end is not an option). The list of files comes from argv (processed by getopt). I understand that I need to …

Member Avatar for Agni
0
2K
Member Avatar for chopin2256

In excel, what I am trying to do is list the number of occurrences of column B, based on the number from column A. Here is sample data: [B] A..........B[/B] 3..........40 5..........56 2..........23 .......... .......... .......... .......... Example output to column C would be: [B]C[/B] 40, 40, 40 56, 56, …

Member Avatar for JacoMuller
0
91
Member Avatar for TheBeast32

Hi, I was wondering how you would intercept data on a given port without interrupting it in WINSOCK. Like if computer A sent computer B "hi" on port 1337 and it was received on a server program. How could I listen for that data on computer B, but still let …

Member Avatar for TheBeast32
0
707
Member Avatar for llemes4011

Hi, I'm trying to program Tetris. The thing is, I can't seem to get the Keylistener to work in the JApplet, and I have no idea why :( Here's my code: [CODE=java] import java.util.Random; import java.awt.event.*; import java.awt.*; import javax.swing.*; /** * Class Tetris - write a description of the …

Member Avatar for llemes4011
0
323
Member Avatar for llemes4011

Hi, I'm working on an algorithm that solves a maze from the inside, and seeks out 1 of the 4 exits on the sides, and after getting 1, it goes to the next until it has them all. The maze is always 22x22, and you only have 400 steps. I …

Member Avatar for llemes4011
0
177
Member Avatar for BigJermZ

im using windows xp, and ive installed and unistalled dev C++ several times and i can not get it to work (compile and run) for any program even "hello world". even the dev c++ examples show a [linker error]. the code exactly is: [Linker error] undefined reference to `__cpu_features_init' ld …

Member Avatar for Stefano Mtangoo
0
164
Member Avatar for deviantrunner

hello i just to know how to define an array... when using a variable... for example... [code=c++ ] cin >> numb; int an_array[numb] [/code] when i try it...it tells me cannot allocate an array of constant size 0 and unknown size ... so could you please tell me how do …

Member Avatar for MosaicFuneral
0
106
Member Avatar for metalla_nz

I have the following repeating block of code in a website [CODE=html]<a href="LINK">TITLE</a><br>MANUFACTURER -- YEAR<br>PLATFORM<br>[/CODE] I need a regular expression to parse out the relevant bits in caps Ive been trying txt2re.com and expresso... But nothing generated there seems to do a decent job. I guess I need something that …

Member Avatar for metalla_nz
0
91
Member Avatar for serkan sendur

what is the difference between the following two approaches: [CODE]#include <iostream> using namespace std; int main(int argc, char* argv[]) { cout << "argc = " << argc << endl; for(int i = 0; i < argc; i++) cout << "argv[" << i << "] = " << argv[i] << endl; …

Member Avatar for shasha821110
0
107
Member Avatar for starsinthesky

how can you put spacing between objects? i mean, how can you place an object,e.g. a button, to the next line inside a pane? i tried setting the size (PaneSample.setSize(8,9)) of the pane and use flowlayout, but it wont work. can i get any suggestions from anyone? thanks! :)

Member Avatar for Ezzaral
0
98
Member Avatar for jake88

Hey, I'm trying to compile some sample projects from the Xerces Library, but when I try to compile the code it give me this error: LNK1104: cannot open file 'xerces-c_2D.lib' What can i do to get rid of this problem?

0
75
Member Avatar for DougC

I have an application I originally wrote in VB2005. It ran fine on Win/XP and Vista 32bit. It would not run on Vista x64 nor would it provide an error message other than "A problem caused the program to stop working correctly.....". I dumped VB2005, got VB2008 Express and converted …

Member Avatar for edgar5
0
132
Member Avatar for Peda

Hi! I am not that good in java and as a homework we had to write to classes: a partial abstract class Koerper and it's subclass Kugel but when I try to compile them the compiler always tells me this: [quote]Kugel.java:9: Kugel is not abstract and does not override abstract …

Member Avatar for Peda
0
176
Member Avatar for jrdark13

This is my assignment, before some of you complain, I finished it. It works all I want is something that is in the back of my head bugging me. If a user was to input a letter instead of a number how do I keep the program from crashing and …

Member Avatar for Antenka
0
139
Member Avatar for tyop

I'm having a problem with newline characters and nl2br(), Basically I have a form with a textarea, it reads from a XML file and puts the contents into the text area. Then changes can be made to the text, button clicked, XML updated. Viewing the XML after it gets updated …

Member Avatar for mschroeder
0
118
Member Avatar for inked

hi, i need to output the number of sentences in a file. The file looks like this: For the eyeing of my scars, there is a charge, For the hearing of my heart, It really goes. And there is a charge a very large charge, For a word or a …

Member Avatar for inked
0
195
Member Avatar for ShadyxxLady

I've created my program. I want to open a .txt file and display it in my text box I have named my text box textbox1 and my open file dialog is openfiledialog1 How do I do this?

Member Avatar for ShadyxxLady
0
4K
Member Avatar for Aakash09

if a program is developed thru a language then how is a language developed

Member Avatar for Narue
0
109
Member Avatar for atif.muhammad

Hi. I'm new in programming. I have idea backend (database in SQL Server 2000) but no idea for frontend programming. I decide to use SQL Server 2000 and ASP.Net 2.0 Else one share/tell my how to became i familar with ASP.net.

Member Avatar for greeny_1984
0
84
Member Avatar for shobitha

hi all...i'm a beginner in c#.... for selecting a field from database we use ds.Tables(0).Rows(0).item(0) in vb.... how can i do t same in c#.

Member Avatar for shobitha
0
269
Member Avatar for redgem

The full error is: Parse error: syntax error, unexpected T_STRING in .../cgi-bin/register_login.php on line 33 The code is set to check if an email exists in the MySQL database. If the email does exist, then it checks the password and if both agree loads the users account into an array. …

Member Avatar for redgem
0
337
Member Avatar for ericstenson

Hi - I was wondering if there is a way to force a postback after the FileUpload1 control has a file... Right now, people his "Browse" select the file then click another button to upload the file. I want to write code on postback to automatically write the file to …

Member Avatar for SheSaidImaPregy
0
1K
Member Avatar for tarekkkkk

plz help and yes submit a direct link if u can and thx for advance plz hurry up i have assignment next week i have to finish it lol

Member Avatar for jbennet
0
806
Member Avatar for lllllIllIlllI

Hi In one of my programs i use a wx.ToolBar, and this toolbar is meant to show a range of picutes that help the user with doing things quickly and easily. But the thing with mine is that i am using 64x64 images for the toolbar, yet when i set …

Member Avatar for lllllIllIlllI
0
96
Member Avatar for tmoney7566

been working on this for 2 days and can't figure out what I am doing wrong. We are suppose to input a day and the days gifts are to be in the output. When I put in my day it starts with the correct day but then loops through all …

Member Avatar for tmoney7566
0
110
Member Avatar for khr2003

I have found while i was surfing the intent a function that shows how long a topic was posted. this is the function: [CODE]function RelativeTime($timestamp){ $difference = time() - $timestamp; $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade"); $lengths = array("60","60","24","7","4.35","12","10"); if ($difference > 0) { // this …

Member Avatar for khr2003
0
69
Member Avatar for ayi_102

[CODE] <script type="text/javascript"> function resetLists(){ document.forms["body"].elements["select1"].selectedIndex = 1; document.forms["body"].elements["select2"].selectedIndex = 1; } </script> </head> <!--Start the html body--> <body id="body" onload="isColorSet()"> <form action="" onsubmit="return false;"> <form id="body"> <!--This is where the changes happen--> <div id="test">This is supposed to be a nice little navbar. Select a new font to change this …

Member Avatar for ayi_102
0
296
Member Avatar for bh7322

Hi All. I'm new to the forum. I'm having some issues with my program. I seem to be accessing memory that I shouldn't be (surprise, surprise!), but I can't see the problem. Keen eyes are welcome! Any help appreciated. Sample input: [icode] Enter word for retrieval: the[/icode] Sample output: [icode]You …

Member Avatar for bh7322
0
135
Member Avatar for emhmk1

Hi there, I have recently added a login system to a site i'm doing and i'm stuck on something thats getting quite annoying! The user registers then gets an email with an link to follow to activate the account. The problem is the $link in the email is just text …

Member Avatar for emhmk1
0
138
Member Avatar for serkan sendur

Do i need to declare private class member functions in header files? or just the public functions are enough?

Member Avatar for serkan sendur
0
81
Member Avatar for jdm

I was wondering if it was possible to call a random image in c++. I'm using Dev C++. [code=cplusplus] #include <time.h> #include <stddef.h> #include <iostream> #include <string> #include <ctime> #include <cstdlib> using namespace std; const string password("password"); int main() { string x; cout << "Type the password to gain access …

Member Avatar for Freaky_Chris
0
196
Member Avatar for nmcgoo108

Hey Guys, I just set up a contact form on my site and used an image as the "send" button. When I get an email from the form, I get x= some number and y= some number. So the form is sending the coordinates where the user clicks on the …

Member Avatar for nmcgoo108
0
200
Member Avatar for jsosnowski

I am trying to use a clientdataset without an associated Table. I am attempting to extract and edit data from a Cad program. The Cad program has an interface in which the user selects specific entities within the Cad file (lines, circles, text etc) and provides basic information and attributes …

Member Avatar for mcrosman
0
923
Member Avatar for nagatron

Hallo to all VB programmers. . .I need help in viewing database using list. Please help me. . .I have this list of names in the database and I want to view it using listbox. Thank you for the help. . .God Bless Regards, Neil

Member Avatar for jireh
0
90
Member Avatar for RahulV

Hi, Im not able to center a child form of a parent MDIForm (MDIForm1) it shows up error message "Invalid property value" while setting the StartUpPosition property to 1-CenterOwner, or 2-CenterScreen, or 3-WindowsDefault of the child form. How can I set all the StartUpPosition property of the child form? Please …

Member Avatar for jireh
0
691
Member Avatar for skatamatic

I'm trying to right a red-eye reduction algorithm for an assignment at school. The user is asked to click on 2 eyes in an image, then the algorithm takes over and corrects the redness. The algorithm works just dandy, but I'm having a hard time capturing the actual location (in …

Member Avatar for skatamatic
0
163
Member Avatar for Avaviel

This is for a class. Two of the files are provided, and I need to write the third. I'm having trouble with a constructor in a class. The constructor is called with 'Logbook testLog(month,year)' and it saves the month and year correctly. The daysInMonth function works fine. My problem is …

Member Avatar for Avaviel
0
175
Member Avatar for Dendei

Hi i got an problem i need to read from an text file that i got from an excel file at start. so i want each block in the excel file to have one space at the array i saved it so it got seperated by ; example: [code] 4 …

Member Avatar for Dendei
0
231
Member Avatar for adam291086

I have this script and it was working a couple of weeks ago. Now when i run it nothing is printed out other than white space. WHY??? [CODE]#!/usr/bin/env python from xml.etree import ElementTree as ET import os import urllib def find_text(element): if element.text is None: for subelement in element: for …

Member Avatar for adam291086
0
106
Member Avatar for TobbeK

Hi I am completely new to C#, so please bare with me .... What I am like to do is to pass variable values between the methods below, and finally print the results in the last method. I have commented the code with explanation. This is for test purposes and …

Member Avatar for ddanbe
0
163
Member Avatar for csharplearner

Hello all, Are UDFs written only on SQL Analyser in within the SQL? Can we use them in programming code?How to use them in the code? What are the actual benefits of UDFs? We can write the method in the code and connect to the database and execute which yeilds …

Member Avatar for csharplearner
0
117
Member Avatar for sciwizeh

Hi, I've been testing GLFW joystick, trying to write a simple program to rotate a cube with the joystick. The fact that I'm using GLFW may complicate matters for debugging, but it's the only OpenGL library with joystick support that i have found. I don't believe that it should be …

Member Avatar for MattEvans
0
1K
Member Avatar for jake88

Hey, I have a template xml file that i am passing a pointer to into a function. In that function i need to read and write into the template and pass it as the output file. What is the best way to go about reading and writing in the template? …

Member Avatar for jake88
0
289
Member Avatar for Ole Raptor

I have a program that uses a Stored Procedure to create a report. Unfortunatly the SP has a problem in the VB6 code. The program could pull the information perfectly until 2 days ago. Now the program times out after 60 seconds after sending the params to the sp. I …

Member Avatar for Ole Raptor
0
91
Member Avatar for navinlearns

I have been working on a program that Should Scan a small Subnet i.e for eg 10.1.1.1 to 10.1.1.255 with the subnet mask 255.255.255.0 I am attaching screenshots of the main screen of my project as "Screenshot 1" source code :jMenu.java I am posting the code here: [code=java] package projectpack; …

Member Avatar for masijade
0
177
Member Avatar for tzushky

Hello , I have had a little surprise and maybe because I haven't read the manual well enough or can't understand all the underlying details. Imagine a small class and another file's main using an instance of that class. If I try to modify (not define !) an INEXISTANT attribute …

Member Avatar for Gribouillis
0
227
Member Avatar for ezkonekgal

When you put an item on a queue, how do you show the items inside the queue? do you use peek method? the situation is a linked queue...

Member Avatar for ezkonekgal
0
139
Member Avatar for homeryansta

[CODE=C++]/************************************************* Student: xxxxx ID number: xxxxx Instructor: Dr. Julstrom Class: CSCI 301 Project 1 *************************************************/ #include <iostream> #include <cmath> #include <cctype> using namespace std; const int SIZE = 61; int getinput(char []); void compare(char [], char [], int, int); /************************************************* The purpose of this program is to have a user …

Member Avatar for homeryansta
0
208
Member Avatar for arun_lisieux

QUESTION : 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest number that is evenly divisible by all of the numbers from 1 to 20? While trying to solve this problem, i came up …

Member Avatar for arun_lisieux
0
495
Member Avatar for ashishchoure

The End.