43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Raven11

Hi, I have been looking all over google for a freaking tutorial on code caving. The problem however, 1,000 results shown are crap (I'm sure everyone's shared the same experience). Anyone know of a published tutorial on the concept? Thanks.

Software Development c google
Member Avatar for jbennet
0
178
Member Avatar for n.aggel

i have the following problem:: i have ofstream object (i call it fout) belonging to a class{it a field of that class}, where should i initialize it... i write the following test-code but it gives me strange compile errors{in visual studio05} FoutTest.h [code=c] #pragma once #include <fstream> #include <string> class …

Software Development c++
Member Avatar for n.aggel
0
191
Member Avatar for livingsword

i got this prime no. code for analysis. and i hav not been able to understand it completely. [code] #include<iostream.h> #include<conio.h> void main() { int x, y, c = 0; clrscr(); cout<<"\nPrime Numbers upto 100 :\n "; for( x = 2; x < 100; x++ ) { if( x % …

Software Development c++ first-post
Member Avatar for livingsword
0
413
Member Avatar for erode

hi, i am very new to pointer concepts.how to declare the pointer and how to use it

Software Development c
Member Avatar for erode
0
94
Member Avatar for kkx123

can anyone help me with this? i can get it to run but when i run it, the matrix doesnt execute correctly...i am writing it in "C"..this should be a 4x4 magic square...thanks~ [code=c] #include <stdio.h> #define R 4 #define C 4 void Same(int []); int main() { int array[R][C], …

Software Development c
Member Avatar for kkx123
-1
119
Member Avatar for spankyg

Can anyone help me with this code? Most of it was written by me for homework. The switch portion was written by my instructor, and it is just pain confusing to me! I beleive I can write a TTT program from scratch (Won't be accepted) easier than cobbling this together. …

Software Development c++ first-post user-interface
Member Avatar for John A
0
145
Member Avatar for boujibabe

I need a function that will populate a multidimensional array with a fixed amount of elements. So that only some of the locations contain a distinguishing number for identification.

Software Development c
Member Avatar for Lazaro Claiborn
0
275
Member Avatar for pyguy25

This is a modified program from the word count program that I posted about. I am trying to calculate the average word length in a sentence. Here is my code so far: [code] def main(): print "This program will calculate the average word length in a sentence" print s = …

Software Development python
Member Avatar for ghostdog74
0
12K
Member Avatar for fulyaoner

Hi to everyone... I am to write a code about finding the least coins number to make up an amount that is given by user. It is a trivial question for a programmer and I did code well. In Canada, there are 2 more currencies, Loonie = 1$ and Twonie …

Software Development algorithm c
Member Avatar for fulyaoner
0
407
Member Avatar for Falconkicker

First off please excuse me if i do not approach this correctly. This is the first time I have used this site for any help. I am working on my midterm project due no later than sunday at midnight and i am stuck along with other students at the same …

Software Development vb.net visual-studio
Member Avatar for WaltP
0
274
Member Avatar for kissiwat

Hi I've kinda hit an inspiration drought... Can anyone confirm that it is possible to return the value of several records within a linked list, add all the different values from each record, pass them as some sort of combined parameter into another file or record and be printed from …

Software Development c++ linked-list
Member Avatar for kissiwat
0
92
Member Avatar for rodkay

Hi all, I require some help using ifstream. I want to open a file who's name is made up in part by a user enter string - this is the format of the filename ... [code] "Airports_" << airlineICAO << ".txt" [/code] i did try the following ... [code] ifstream …

Software Development c++
Member Avatar for rodkay
0
119
Member Avatar for i_like_pi

Hi, I'm a newbie to C++. I use Windows XP Home Edition and VC++ .NET 2003. I have just recently started creating large scale C++ projects with more than one file. I've been having troubles linking the files together. I solved the problem by adding "/FORCE:MULTIPLE" to the command line, …

Software Development c++
Member Avatar for John A
0
107
Member Avatar for Lardmeister

I have for instance this function I wrote and want to assure that the argument is a number when I call the function. [code]def hypotenuse(n): "return the length of the hypotenuse of an isosceles triangle" return (n*n + n*n)**0.5 sides = 3.7 print hypotenuse(sides) [/code]Any ideas how to do this?

Software Development python
Member Avatar for jrcagle
0
645
Member Avatar for Matt Tacular

For my programming class, I have gotten to the lesson that involves overloading constructors and what not, but I have a problem with mine that I am possitive is a very simple syntax error or something. If anyone could be so kind as to take a look at the following …

Software Development c++
Member Avatar for kishore5001
0
133
Member Avatar for Lazaro Claiborn

I've been trying to figure what I'm doing wrong all day. I'm becoming discouraged. Can anyone help me out? [code=cplusplus] void stripSpace(string &str) { int i,j,len=str.length(); for (i=0;j=0;i<len;i++;j++) if (str[j]==' ') { str.erase(j,1); j--; } str[j]='\0'; } [/code] I just won't seem to stop until I get this fixed!!!! Any …

Software Development c++
Member Avatar for Lazaro Claiborn
0
157
Member Avatar for covertx
Member Avatar for Nelly1965

How do I change the value of a bookmark in Word 97 from VB

Software Development visual-basic
Member Avatar for paramasivan
0
91
Member Avatar for Lardmeister

I don't seem to be able to save a number to a data file: [code]a = 123.44 f = open("data1.dat", "w") f.write(a) f.close() [/code] I get this message: [code]Traceback (most recent call last): File "<string>", line 204, in run_nodebug File "C:\Python25\ZLM\int2file.py", line 4, in <module> f.write(a) TypeError: argument 1 must …

Software Development python
Member Avatar for mawe
0
1K
Member Avatar for MattTobin

Hello~ I'm working on a project in which we are suppose to create our own class seperating the class and the implementation. When i try to compile the .cpp file im getting 2 errors on line 10: 1. new types may not be defined in a return type and 2. …

Software Development c++
Member Avatar for MattTobin
0
111
Member Avatar for scru

So here's the deal. I learned to program with python, and C# is my second step up the ladder. I'm currently learning the language by making a Sudoku game (just porting over the code from python..nothing fancy). So I ran into a dead end just now...I know how to manipulate …

Software Development python
Member Avatar for scru
0
359
Member Avatar for peter_budo

How do I call JAR which is in same folder as my java file? BUT I don't want to place this JAR file into JRE>lib>ext and also I don't want to create CLASSPATH for it.

Software Development java
Member Avatar for peter_budo
0
116
Member Avatar for IceColdMan

Ok I have just finished the coding for this [CODE] 'This is sub for when 5 is selected Sub avg5 'Open comma delimited File open "d:\Assign.txt" for input as #assign Input "Please Enter a students ID ";stuid$ while eof(#assign)=0 Input #assign, id$,nme$,dob$,sub$,scr If stuid$=id$ then totalscr=totalscr+scr nostud=nostud+1 If nostud=1 Then …

Software Development first-post
Member Avatar for linux
0
164
Member Avatar for proxystub

cant seem to read from this my file "d.txt", i know this is quite simple code but its just not working, and yes file "d.txt" is in the same directory as the .cpp & .exe [code] #include <fstream.h> #include <iostream.h> #include <stdlib.h> int main() { char ch; //int check = …

Software Development c++ file-system
Member Avatar for proxystub
0
124
Member Avatar for bhavna_816

I have a class MyDataGrid which is inherited from Datagrid which have two protected override functions. i want to register the events. for example public class MyDataGrid : DataGrid { protected override void OnMouseMove(System.Windows.Forms.MouseEventArgs e) { //dosomething } protected override void OnMouseDown(System.Windows.Forms.MouseEventArgs e) { //dosomething } Now i want to …

Software Development c#
Member Avatar for tonakai
0
166
Member Avatar for bhavna_816

I want to set the width of the column by hardcoding it and don't want to allow it to resize at runtime. i.e. don't allow user to resize the column width. How can i do this? I have tried this code public void SetColWidth(DataGridTableStyle ts1,int colNum,int width) // { // …

Software Development
0
76
Member Avatar for Shaabangbang

Hello, my prof gave us a problem from the ACM programming contest, we are supposed to write a program that takes a compressed file as input and generates a reproduction of the original uncompressed file as output, the compression scheme requires making a list of the words in the uncompressed …

Software Development c
Member Avatar for Shaabangbang
0
152
Member Avatar for scru

I have a dynamically creasted grid of picture box controls, and I want to add custom events handlers to them and Im stuck. Event 1: User Enters with mouse Event 2: User Leaves with mouse Event 3: User Clicks with mouse btw, they're created when the form they are on …

Software Development ide
Member Avatar for scru
0
292
Member Avatar for exotic_ang

[B]No one seemed to help me out with my other question :sad: so was wondering if you can help me with this one. I want to validate a date so that the user is only allowed to enter a correct date. I have no idea how I could do it …

Software Development pascal
Member Avatar for linux
0
219
Member Avatar for jrcagle

Hi all, My class uses Python 2.4.3/2.4.4, pygame 1.7.1, and a livewires wrapper on top of that, running on WinXP on Dell machines. Frequently ... perhaps once per day per 2 students more or less? ... a student will attempt to open a file and IDLE will suddenly quit and …

Software Development python
Member Avatar for vegaseat
0
169
Member Avatar for shabina

i have a problem in trying to link my listbox with its respective field in the database. when i run my program in vb6, i get all the other records populated into my form when i click on the ADODC but i couldn't get the info i entered in my …

Software Development visual-basic
Member Avatar for shabina
0
612
Member Avatar for peter_budo

I'm trying to display text on GlassPane in front of image which I read in. There is no problem with image which does display but my text doesn't appear. What is wrong???? [code] import java.io.File; import java.io.IOException; import java.awt.*; import java.awt.image.RenderedImage; import javax.swing.*; import javax.media.jai.widget.ScrollingImagePanel; import javax.media.jai.NullOpImage; import javax.media.jai.OpImage; import …

Software Development java java-swing
Member Avatar for peter_budo
0
122
Member Avatar for scru

Apparently the ewase of programming has disappeared when I stopped using python. [code="C#"] btnPlay.BackgroundImage = Image.FromFile("\\Images\\playbtn_down.jpg"); [/code] Now I have the image in a Images folder...and I don't see why this doesn't work (from build [F5]).... this is making me very bitter......It's one of the many problems I've encountered since …

Software Development python
Member Avatar for scru
0
114
Member Avatar for scru

Is there anything wrong with this code? [code=C#] namespace RotnetSudoku { public partial class splash : Form { public splash() { InitializeComponent(); fclsStartScreen frmStartscreen = new fclsStartScreen(); frmStartscreen.Show(); this.Visible = false; } } } [/code] Apart from the indentation? When i run it ithe splash form doesn't close...Also, if i …

Software Development assembly microsoft-access visual-studio
Member Avatar for RwCC
0
131
Member Avatar for mr.sweetchuck

Hi I'm trying to write a multi-formed J2ME app. I keep getting a null pointer exception in the startApp() method. [code] public void startApp() { display.setCurrent(currentForm); } [/code] I have currentForm created above and the first is mapped to it, (with the plan of mapping each new from to currentForm. …

Software Development java
Member Avatar for mr.sweetchuck
0
238
Member Avatar for evilsilver

ok guys and gals here's my delema, i have this code: all it basically does is define two classes, one that defines the stuff for the player and his actions, the other for the enemies (or monsters) the problem is that i have funtions in both that require i include …

Software Development c++
Member Avatar for evilsilver
0
120
Member Avatar for SIL3NCE

I need help immediately. When/if help is recieved I will pay $20 Paypal right away. Make the script as described below and email detailed instructions in either Word (preferred) or Word Perfect format. If you don't have either word programs Wordpad will do. I need this in my hands at …

Software Development email redhat shell-scripting
Member Avatar for masijade
0
155
Member Avatar for notfornothing21

I am just learning linked lists and I need to start off my inputing integers and outputing them in a sorted list. I have written a code and pretty confident that the code make sense, but maybe it is out of sequence is why it is not working? I am …

Software Development c++ linked-list
Member Avatar for Infarction
0
192
Member Avatar for Carson89

Hi there, Im writing a program that reads ID3 tag information of songs in a given directory and then creates corresponding folders for that Song. (Ie the folder is called the ID3 artist's name). The song is then renamed and placed into the new folder. However, i have come across …

Software Development pascal
Member Avatar for linux
0
135
Member Avatar for bhavna_816

i have a datatable and want to display the contents of datatable in a datagrid when i want to put the checkbox in datagrid separately they are visible.But if i integrate it with datatable it doesn't show the checkboxes instead it shows (null) how can i make the checkboxes visible? …

Software Development c#
0
59
Member Avatar for millanskie

Hi to all, I have a program that will print a file automatically after downloading it from the web server, the problem is how can i delete or cancel print job already in the printer queue... i already try [code]printer.killdoc[/code] but it does not delete or cancel job that are …

Software Development printer queue visual-basic web-server
Member Avatar for millanskie
0
1K
Member Avatar for edouard89

First of I would like to say hi to everyone as I am new to this forum. My problem is this. Can I some how use the [ENTER] key instead of the [TAB] key to skip from field to field? Any help would be greatly apreciated. Thank you.

Software Development pascal
Member Avatar for radu84
0
103
Member Avatar for scru

sigh... I need a way to make an image as a background for a window, and still be able to put buttons and other controls on top of it. I even tried using wxPython's wxPanel, but it proved a real pain because I found the documentation very sparce...:sad: (google didn't …

Software Development google python tkinter
Member Avatar for vegaseat
0
2K
Member Avatar for bhavna_816

I have created a datagrid in C# Windows Application and i want to place a checkbox in it.I have tried this link [URL]http://www.windowsforms.net/FAQs/default.aspx?PageID=2&ItemID=537&CategoryID=3&tabindex=3[/URL] I am able to place the checkboxes but can't make tht checkboxes working i.e.can't able to select and deselect the checkbox items. i.e. the checkbox functionality is …

Software Development
0
65
Member Avatar for MattEvans

Is it incorrect to use the precompiler like a complicated copy-and-paste tool? I've been working on a system where a few objects are processed according to exactly the same 'pattern' so to speak; BUT they are not related objects. Although it would be possible to bring some of them back …

Software Development c++
Member Avatar for thekashyap
0
119
Member Avatar for aot

Thanks to mawe and Jeff for answering my first question. Next question: is there a way to get Tkinter to display the window without a title bar? I'm an experimental psychologist, and I don't want my participants to easily be able to exit my experiments... so hints on disabling alt-tab …

Software Development python tkinter
Member Avatar for scru
0
17K
Member Avatar for RisTar

Hi, im trying to create a function that gets two strings , the first string its the source , and the seconed is an understring . the function should return an int with the value of the position that the understring starts in the source string . so that if …

Software Development c
Member Avatar for RisTar
0
105
Member Avatar for torbecire

The a.cpp file will not read from a.h, could someone please tell me why? I asked earlier but did not get much help due to bad posting. My apologies to all you who i have burdened with my rookieness(not a word). Hopefully i did it right this time. [code=cplusplus] // …

Software Development c++
Member Avatar for Ancient Dragon
0
133
Member Avatar for FlamingBlade

Good day to everybody, new member here! :cheesy: Using: Delphi 7 with Database Desktop I've made my tables in Database Desktop, and as soon as I tried seting up Referential Integrity, it did not let me save, which stops me from progressing any further in my project. As soon as …

Software Development delphi pascal
Member Avatar for jwenting
0
135
Member Avatar for Venks

Hai friends.. iam doing project in j2me.. i want to get the current time in mobile in hours minutes and seconds format.. and i want to display it in mobile ,is there any way to get the time? pl help

Software Development java
Member Avatar for Venks
0
108

The End.