132,726 Archived Topics
Remove Filter ![]() | |
Hi folks, First a bit of context (Errors are shown at the bottom of the post): I am creating an object viewer for opengl in Visual C++ 2008 Express Edition. I have written a parser which reads the file and stores all the info I want in a Mesh object. … Software Development c++ file-system ios opengl visual-studio | |
Hey everyone, I need help in figuring out how to make this program work. I am attempting to reverse this TraverseList. Yet I am still encountering issues when I compile. I am hoping that someone might assist me in re-creatin the program so that it goes forward. Anxiously waiting!! Please … Software Development c++ | |
hey im in the middle of doing sql queries i can search my data base using GetDateFrom (Select, from, where) [code] Me.nameTableAdapter.FillBy(namenDataSet.descip, Me.box1TextBox.Text, Me.box1TextBox.Text, Me.box2TextBox.Text, Me.box2TextBox.Text) [/code] i have this working fine im struggling with inderting data to my databse i have made the query .. [code] INSERT INTO `details` … Software Development vb.net | |
![]() | I don't believe there is a Forum dedicated to Cryptography so I will post in the C forum since the program I've used to decode a base 64 encoded file was written in C. I have been given a base64 encoded file and I have managed to remove the base64 … Software Development c encryption file-system ![]() |
I've got this: [CODE]#include <iostream> #include <vector> #include <string> #include <cstdlib> #include <sstream> using namespace std; class alfa{ private: int x; public: alfa(){ cout<<"Dimiourgithike ena alfa"<<endl; x=rand()%10; } ~alfa(){ cout<<"Katastrafike ena alfa"<<endl; } void get_x(){ cout<<"To x exei timi: "<<x<<endl; } }; int main(){ alfa* alfadi; int no; cout<<"Dose enan … Software Development c++ | |
Hey there folks! I've created a class, ATHENADictionary which extends Dictionary, as listed below... [CODE] /// <summary> /// Extends the Dictionary class to provide more functionality. /// </summary> /// <typeparam name="TKey">the key type.</typeparam> /// <typeparam name="TValue">the value type.</typeparam> public class ATHENADictionary<TKey,TValue> : Dictionary<TKey,TValue> { /// <summary> /// New indexer method, … Software Development | |
Hello!... Can anyone help me on this project? I already have created a simple program called Website manager and ive already release it on my website [URL="http://www.silentproject.tk"]http://www.silentproject.tk[/URL] i want to improve it by adding an Auto login feature for websites like yahoo mail..etc.. does anyone of you know how to … Software Development visual-basic | |
hello please help me on this how to make the log in password in gui that can accept at least 6 characters and not more than 10 characters..and if i will re enter the password and it will prompt to the user that password is already exist..hoping for your positive … | |
Sir, Please anybody help me My another question is in txtlani textbox I have to enter only digit i.e. 0 to 9 and currency formate i.e. 1,000.00 and 1,00,000.00 it is possible in text box. and another text box which I have to enter only date i.e. at run time … Software Development vb.net | |
Please send sane code for a complicated report using Data report Designer Using VB6. without using Data Environment. how to increate the height of the rpt shape in detail section of the data report. Software Development visual-basic | |
How would I make all letters be an invalid input? I want all letters, numbers greater than 20, and numbers less than or equal to 0 to be invalid inputs. I used an or cause I want any case to be an invalid input. Any help would be greatly appreciated. … Software Development c | |
Hi and I am making a script but am having a slight math logic problem. Below is an example of an encoder I am working on. [CODE]for(int m=0;m<80;m++) { if(m<=19) { f = (b & c) | ((~b) & d); k = 0x5A827999; } else if(m<=39) { f = b … Software Development c++ | |
Hello People, I cannot understand how this expression gets evaluated .. 1+~0 From what I know ~ has higher priority . So the expression becomes 1+(~0)= 2 But the answer that I got was 0. I know it is some thing to do with the fact that ~ is right … Software Development c | |
I have a form developed using the Dataform wizard (VS 2003). The Form shows Master-Detail data. The details are showen in a Datagrid. The form automatically loads the data in the Form_load event. Now I want to store the data from the datagrid to a datatable. I am using following … | |
I'm having trouble combining tkinter windows/functions, i have simplified my problem down to this which i think seems to be the problem. Both these functions will work on their own, but not together. (at least the way i want them to!) What I am after is to be able to … | |
Basically I am totally confused on how to pass a char, which is given by the user, and then store it and pass it to another function by reference. Software Development c | |
The following code gets segmentation fault: [CODE] void dfs_visit(graph g, int u) { // printf("u: %d\n",u); /* g.vertices[u].color = GRAY; g.vertices[u].d = time++; printf("before visit for loop\n"); for (int i = 0;i < g.number_vertices;i++) { if (i != u) { if (g.vertices[i].color == WHITE) { g.vertices[i].p = u; // dfs_visit(g, … Software Development c | |
I need to write a program that accepts coins(nickles, dimes, quarter) and single dollar bills, dispenses the item and returns change if the deposited money exceeds the item's value. There are 5 items with the prices of: 65 cents, 95 cents, 50 cents, 110 cents and 75 cents. There is … Software Development java | |
[CODE] int main() { char c1, c2; printf("Enter a character: "); scanf("%c", &c1); printf("Enter another character: "); scanf("%c", &c2); system("pause"); return; } [/CODE] Thats what my code looks like, the problem is the code skips the part where it lets you input c2. I dont understand why its doing this. … Software Development c | |
Hello, How can I disable beep sound in KeyDown event? I already tried using "e.Handler = true" but it doesn't seem to work. I have used it sucessfuly with KeyPress events, but now with KeyDown I can't get it work... This is my code: [CODE] private void msg_textbox_KeyDown(object sender, KeyEventArgs … Software Development | |
[CODE] //This is what we are asked to print in the assignment of Binary Search Trees.The Nodes are printed like: F +-- D | +-- NULL | \-- NULL \-- R +-- P | +-- M | | +-- NULL | | \-- N | | +-- NULL | | … | |
I am new to binary trees. I have been given the task to write functions to count the number of nodes, to count the number of leaves in nodes, to count the number of right children, to find the height of the tree, and to delete all the leaves of … | |
Hey, I have no idea if this thread already exists. I did try to make one before but it seemse like it didn't work. So here goes ! My question is - How do I put my .o files into an object library file? I'm using c++ visual studio express … Software Development c c# c++ gui visual-studio | |
pretty much where i have many of my comments are where i need to call the functions from the player and cell class in the tictactoe class? anyone have any ideas on how to do this? [CODE]#include <iostream> #include <cstdlib> using namespace std; class TicTacToe { public: TicTacToe()//contructor initializes the … Software Development c++ | |
So I'm working on a linked list class, for a class I'm taking. I've basically just started working on it and I'm getting an unknown error that I really don't know how to deal with. The compiler is not returning an error in my code really, its returning a bunch … Software Development c++ linked-list redhat | |
OK...guys... I'm about to have a cow here. It sounds real simple but I just can't seem to get it. Here is the deal: I have a normalized database made up of four tables (Primary Key in bold) Player ([B]PlayerID[/B], PlayerName) NHLTeam ([B]NHLTeamID[/B], PoolTeamName) PoolTeam ([B]PoolTeamID[/B], PoolTeamName) PlayerStats (PlayerID, NHLTeamID, … Software Development sql visual-basic | |
Hey. I have an arraylist; [CODE]public static ArrayList<String> name = new ArrayList<String>();[/CODE] and its made of of names; [CODE]public static String name;[/CODE] They both had to be static as it didn't work if they weren't. In the public void static main method, I populate this arraylist. I then want to … Software Development java | |
Hello, I would like to execute a double for-loop in python. I use the python interface with ArcGIS (hence the gp. prefixes and weird functions). Here is my double-for loop attempt but I can't execute the code due to 'invalid syntax.' If I remove the bottom loop, the code runs … Software Development python | |
Hello everybody! I use the actiWATE library for one project. This is a code file Main.java [CODE] import bro.bro; import java.io.IOException; import java.io.UnsupportedEncodingException; public class Main { public static void main(String[] args) throws UnsupportedEncodingException, IOException { bro doBro= new bro(); } } [/CODE] file bro.java [CODE] import com.actimind.actiwate.http.HttpResponse; import com.actimind.actiwate.testing.ActiwateTestCase; … Software Development api google-api ide java java-netbeans | |
First, I want to say that I am Java beginner and I do not have a lot of experience. This is my 2nd program. My objective is to write a program using stacks to see if a line inside of a file such as test.txt has matching scope symbols such … Software Development java objective-c | |
I'm confused totally... Ok, I create the class with the array: [CODE]ref class my_child { public: array<int>^ mas_1D; my_child() // constructor { mas_1D = gcnew array<int>(10); }; };[/CODE] Next, I create one more class with the variables of the previous class: [CODE]ref class Father { public: my_child dear_baby; // 1-st … Software Development c++ | |
I'm having Buss Error issues. I feel that it has to do with either my deconstuctor or my insert/delete functions. I know I'm not supposed to put up whole source code, but I will put it up if needed. Assume that ItemType is an integer and Next is a pointer. … Software Development c++ | |
Hello. Can someone please tell me what happens when you cast a large number to a char? For example: [CODE=C] char string[8]; int num = 2040; string[0] = (char) num; [/CODE] I'm working my way through a larger program to figure out what it does, but I'm not sure how … Software Development c | |
hello my question is, How do you sort a vector containing a bunch of game_object* 's ? You can use STD's algorithm.sort() somehow ... right ? | |
Hi, Could anyone please tell me how can i input data either from a file or stdin. If the file name is not specified the data can be read from the UNIX command prompt using stdin. I know stdin is a file pointer but how to use it please explain?? | |
Hi All..Im new to Visual Basic 2008 and I'm having a really hard time figuring out how to to print all my tabs in my application. I have 5 tabs which have text boxes, labels, and combo boxes. Is there a way to print the contents of each tab and … Software Development vb.net visual-basic | |
I need start up function that will make registry entries and make my .exe app start with the windows start up.Where can I find code for such function? Software Development c++ | |
temporaries: Definition: a temporary is a C++ object which is niether a constant nor a variable, but is has type. example1: [CODE]TYPE f(int a) {...}[/CODE] f(2) is a temporary. it is niether a constant nor a variable but it has a type. example2: [CODE] class A { public: A(char ch) … Software Development c++ | |
Create a temperature class that internally stores a temperature in degrees Kelvin. However, create functions named setTempKelvin, setTempFahrenheit, setTempCelcius that takes input temperature in the specified scale, converts the temperature to kelvin, and stores that temperature in the class member variable. Also, create functions that return the stored temperature in … Software Development c++ | |
Hello, This might not appear like a programming question, but inherently deals with code. I have a following piece of test-code, which has obvious errors like array index out of bounds, memory leak:- [CODE] #include "stdio.h" #include "stdlib.h" main() { int i; char *ptr; ptr = (char*)malloc(5); for(i=0;i<10;i++) { ptr[i]=(char)i; … Software Development c motherboards-cpu-ram visual-basic visual-studio | |
Hello Assuming we got the following memory dump: [CODE]0x80004a3 <main+19>: call 0x8000470 <function> 0x80004a8 <main+24>: addl $0xc,%esp 0x80004ab <main+27>: movl $0x1,0xfffffffc(%ebp) 0x80004b2 <main+34>: movl 0xfffffffc(%ebp),%eax[/CODE] So when the call of <function> is finished, i.e. the function returns, the next Instruction is at 0x80004a8 (which the IP pointed at). If we … Software Development assembly | |
There is probably a joke in the comment that I am missing but this post is going to give the design approaches to solving the problem posed by FirstPerson in his signature: find the last ten digits of x^x (x raised to the power of x) for all the positive … Software Development c++ | |
OK, so I made a FastScrabble game. My code is currently: [CODE]from random import * from itertools import * scrabbletiles = [] showntiles = [] def drawtile(): nexttile = sample(scrabbletiles, 1) scrabbletiles.remove(nexttile[0]) showntiles += nexttile def possibilities(): possi = [] for i in range(2, len(showntiles)+1): for word in permutations(showntiles, i): … Software Development python | |
Hi all, As a learning project I'm rewriting a spider i have in php to c++. One part of the spider is a multi-threaded downloader, all this downloader does is read urls from a text file download the page and save it. I would like the downloader to strip out … | |
So, this is my version of battleship with single space ships instead of a ship with 2,3,4, and 5. The only issue is the cpu I programmed isn't always choosing five, or it's choosing spots not on the map, I am completely lost if you can offer any help at … Software Development c++ | |
Ive been told to do a program that prints the first [B]15 non-fibonacci series[/B] using 'while'...i got the fibonacci series correct, but cant find a solution for this... Here is my code for printing the first 15 fibonacci series... [CODE]#include<iostream.h> #include<conio.h> void main() { int n=1; int a=-1; int b=1; … Software Development c++ | |
Hello all, I am trying to write a code. I need the code to do the following: An input box asks for a number, Then the below code divides values in a given column and paste them in the next available empty column. Then the 2nd formula runs and it … Software Development visual-basic | |
Write a shell script named displayargs that prints FOUR lines. The first line tells the name that was used to invoke the script, the second line tells how many parameters there were, the third line tells what the last parameter was, and the fourth line tells what the first parameter … Software Development shell-scripting | |
Here is my problem. I have a class Template define like this. [CODE]// File Vecteur.h template<class Elem> class Vecteur : public AdenEtEve { public : ... BOOL bInserer (Elem &elemAInserer, MOT32 wIndice);` ... protected: Elem elem; Elem *pElem; MOT32 wNbElem; } template<class Elem> BOOL Vecteur<Elem>::bInserer (Elem &elemAInserer, MOT32 wIndice) { … Software Development c++ | |
Hi I am using netbeans and mysql. I am trying to run the an inventory system. I have linked the program with mysql. The program is running but when in log in page I input username and password which is preinstalled in mysql and then press submit, its not going … Software Development java java-netbeans java-swing |
The End.