43,549 Solved Topics
Remove Filter ![]() | |
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. | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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++ | |
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++ | |
How do I change the value of a bookmark in Word 97 from VB Software Development visual-basic | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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# | |
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 | |
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 | |
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 | |
[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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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# | |
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 | |
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 | |
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 … | |
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 | |
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++ | |
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 … | |
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 | |
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++ | |
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 … | |
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 |
The End.