199,114 Archived Topics
Remove Filter ![]() | |
I Want A Program For Cryptography Rsa And Md5 Algorithms Pls Help Me!! | |
Hello folks :) Allow me to introduce myself. I am Haktivex, a programmer for a tool known as TibiCAM, used to record movies for an online game known as Tibia. Now heres the issue. For a long time we supported all operating systems, Windows 98, ME, etc. However recently these … | |
![]() | This year I started learning Java in class and now we are making a Vending Machne code... I compleated the task, but now I want to add another buton, but I get stuck a a sertain point... Here is my original code with the second button added: import java.awt.*; import … ![]() |
Hi, I have written the code of checking already, but I have got two problems here. 1. I don't know why when I enter the number in, when it prints out the number, it becomes smilies or some kind of maths code. Please tell me what I have done wrongly … | |
I NEED HELP PLEASE PLEASE PLEASE THE PROBLEM IS [B]Warning[/B]: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [B]/mounted-storage/home23a/sub003/sc21979-KVVZ/www/ghhookup/functions.php[/B] on line [B]28[/B] [PHP]<? $conn_id; $sql_res; $sql_res2; $sql_query; $HTTP_REFERER=$_SERVER["HTTP_REFERER"]; $REQUEST_METHOD=$_SERVER["REQUEST_METHOD"]; function sql_connect(){ global $conn_id,$sql_host,$sql_user,$sql_pass,$sql_db; $conn_id=mysql_connect($sql_host,$sql_user,$sql_pass); mysql_select_db($sql_db); } function sql_execute($sql_query,$wtr){ global $conn_id; $sql_res=mysql_query($sql_query,$conn_id); if($wtr=='get'){ if(mysql_num_rows($sql_res)){ return mysql_fetch_object($sql_res); } else … | |
![]() | I'm working on a text adventure game just for fun. I am not planning to complete it, but I decided to try it just to learn classes. Seeing the text game in another post using functions, I realize that that is a very nice way to make a simple game, … |
My question is as the title indicates Thanks | |
Hello, I'm a college student taking a programming class and I'm trying to write a program for this class. I've done most of the work already I just need some hints or a push in the right direction as far as my client-code is concerned. Here's the code for the … | |
Hi everyone..i'm new c++ programming and i would like to know if its posible to convert a string to a vector array...(Eg string s = "Hello everyone" array a[1]='H', a[2]='e'....)I need a vector array because i do not know what my string will be...it will change everytime...If it is posible … | |
hi..i'm facing some problem to draw morh's circle by using opengl in Borland C++.. i'm able to draw 3 circles which is 2 small circle "in" 1 big circle..but may i know tat can i insert a formula into openGL to find out the radius for these 3 circle automatically? … | |
[code]//Program adds, subtracts, multiplies, or divides any two numbers that the user enters. #include <iostream> using std::cout; using std::cin; using std::endl; int main() { char operation = ' '; int num1 = 0; int num2 = 0; int answer = 0; cout <<"Enter A (add) or S (subtract) or M … | |
Hi everyone, Can You please help me with the [B]Round-Robin scheduler [/B] [B]algorithm (C language)[/B] My program will use as a Datastructure a doubly linked list to hold processes( I will represent my process as: Id(char*), Priority(int) ( a process with priority n will have n CPU time slots) and … | |
any idea what i am doing wrong? [quote] Error 3 error LNK2001: unresolved external symbol "private: static float SavingsAccount::annualInterestRate" (?annualInterestRate@SavingsAccount@@0MA) Savings.obj [/quote] SavingsAccount.h [code] #ifndef SAVINGSACCOUNT1_H #define SAVINGSACCOUNT1_H using namespace std; class SavingsAccount { private: static float annualInterestRate; float savingsBalance; public: SavingsAccount() { annualInterestRate = 0.03; savingsBalance= 2000; } float … | |
hi, can someone help me with writing down a recursive algorithm for traversing a binary tree in reverse-postorder that also returns the rank of each node? So far i have (and i know thatit isnt much but this problem giving me issues). [code] postorder: save current posistion if(lchild) move to … | |
Hi everyone. Iam a beginning C++ student having trouble with a simple one column char. aray. what I'm trying to do is : display the value of the seventh element of chaacter array f. Wich shoud b 6 if a=0. Please help. Below is my code, so far: [[COLOR=#0000ff] #include[/COLOR][COLOR=#000000] … | |
Been working on this project for last 2 nights. Cant get rid of this error message on my [B]last method PAIR::area() [/B]. It's defined at the bottom of my program. Everything else compiles... builds... executes just fine. Rusty on the basics and trying to figure out methods.... here is my … | |
I want to call a TCL script from a C++ code. Can anyone give me the suggestion to achieve so! | |
Here is the code that burned me today. I'm re-writing my Sudoku solver to make it more "Pythonic" -- it was my first Python project, and the old code looks like translated C :lol: -- anyways, at one point, I need a dictionary to hold the possible locations in a … | |
[COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000]<iomanip>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <cmath>[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] main()[/COLOR] { [COLOR=#0000ff]char[/COLOR] choice; [COLOR=#0000ff]const[/COLOR] [COLOR=#0000ff]int[/COLOR] arraysize=20; [COLOR=#0000ff]int[/COLOR] num[arraysize]; [COLOR=#0000ff]do [/COLOR]{ cout<<"I will give you the Sum,Mean,Var & the Std Dev of any series of numbers?Y/N:"<<endl; cin>>choice; [COLOR=#0000ff]if[/COLOR](choice =='Y'||choice =='y') { cout<<"How many numbers will you enter? (up to 20)?"; cin>>num[arraysize]; [COLOR=#0000ff]for[/COLOR] … | |
Hi I would like to know how could we communicate between VC++ and TCL. I've tried it using SWIG. that was call for C++ function by TCL. Can a C++ give a call to TCL module. What is the ICE? Is it related to C++ and TCL communication somehow? | |
hi, In recently, I have a mission for porting a source code from Pro*C. And the database is changed from Oracle to Mysql. The part of original source code(Pro*C) is shown below: char i_id_no[13+1]; char accn_name[16+1], account[7+1], b_no[20+1], code_type[1]; int ii; : : EXEC SQL DECLARE cursor_1 CURSOR FOR SELECT … | |
hi i have a function that opens a file and store the data into a matrix [CODE]void openfile(vector<vector<string> >& data, string path) { ifstream inFile; inFile.open(path); ....[/CODE] this does not work but it works when i eliminate the path as input [CODE]void openfile(vector<vector<string> >& data) { ifstream inFile; inFile.open("C:\file.csv"); ....[/CODE] … | |
about ComboBox problem <<<<<<<Dialog.h>>>>>>>> public: CComboBox Cbx; struct Data { LPCTSTR lpszName; LPCTSTR lpszValue; int ID; }; <<<<<<<Dialog.Cpp>>>>>>> Data d; d.lpszName=_T("Name"); d.lpszValue=_T("Value"); d.ID=1; Cbx.InsertString(0,d.lpszName); Cbx.SetItemDataPtr(0,(void *)d); how to struct data append to ComboBox Control,thank:) | |
Hi, Appreciate any help. My code compiles... builds.... executes just fine. Only problem I'm having is... I cant figure out how to get PAIR::big() to simply print out the larger #. When I execute... it displays... the Larger # like I want... but then for some reason it displays the … | |
I have a homework assignment to write a program about mileage. I've been able to get it to work, well except the average doesn't calculate correctly and I haven't been able to verifiy the users input. I'm using Visual C as my compiler. Can someone help me with checking the … | |
I'm using Visual Basic 6.0 Learning Edition. Does anyone know how to set an Icon for my program (other than the default)? When I click the '...' and then choose an Icon, it claim's I have 'set an Invalid property value'. Can anyone help with this? | |
I'm completely new to C++, and my teacher gave us a card game to do for our first assignment. The card game has to deal a hand of five cards and determine whether or not it contains a flush, a pair, a straight, three of a kind, or four of … | |
Hi, I'm trying to write a program that computes interest and check fees and then prints a new calculated balance. So far it works okay, but seems like I have a lot of unnecessary work. Can someone help me simplify it down plz? ps: The premium acct has no check … | |
I am trying to grab an input file and outfile file from the user. I can grab the input file no problem, but Dev C++ just steps right over the following line... [code] cin.get(ofname, 150); //grab filename from user[/code] Here is some more of the code. Does anyone have any … | |
[B]i want to find out small projects to work upon so as to improve my grip over c, can someone tell me some sites having projects in c:confused: [/B] | |
I'm trying to use input from a text edit box to delete a file. The input from the textbox will be the file location and the delete button will use DeleteFile() to delete the file. [img]http://img436.imageshack.us/img436/5578/deleteboxvn0.png[/img] Do you know what I mean? | |
Hi All: I have downloaded C++ 2005 Express from Microsoft. I then run a date + time program, the compiler says the functions I am using are deprecated, and I should use localtime_s. So You go to Microsoft, search for localtime_s. You throw the example code into your compiler. Bingo … | |
I created a random number game where the user tries to guess the number using a while statement with three ifs in it for high low and correct number. but after the user guesses the the number it ends the while and the program. How can I make it so … | |
i'm very much a newbie, so pardon me if i am breaking programmer ettiquette, but could someone debug this, please? i could use a lift after 8+ hours workin on this... this is player.h [CODE]#ifndef PLAYER_H #define PLAYER_H using namespace std; class player { private: char* name; int bankroll = … ![]() | |
Hello, I just downloaded express C++ 2005 ed. and I can't get even a simple code snippets to compile. this is just a loop, the compiler does not compiles (cout) this is what I get: error C2065: 'cout' : undeclared identifier Thank YOU:cry: renny [CODE]#include "stdafx.h" int _tmain(int argc, _TCHAR* … | |
I tried typing [CODE]printf("\033[34m");[/CODE] for blue foreground color, and other values, but nothing worked. So I included: [CODE]device=D:\WINDOWS\system32\ansi.sys[/CODE] and [CODE]devicehigh=D:\WINDOWS\system32\ansi.sys[/CODE] into my system.ini file to load the ANSI driver, both under the device part of the file, and it still didn't show any color. My Jamsa's C/C++ Programmer's Bible tells … | |
Howdy there all again. I have been working in C# for some time and think i am ready to graduate to a real language that can actually work hand in hand with memory managment :P so my first venture is to write a piece of software that will open a … | |
I made a Cpp application wihich links with shared objects. But when I runs the application, it crashes surprisingly before entering into the main() control block. After trying with gdb I came to know it is crashing while reading symbols from a library. GDB says something like Reading symbols from … | |
Hello: I was wondering if anyone in this forum could point me in a direction (a link) where I could find practice projects (similar to Python [URL="http://www.daniweb.com/techtalkforums/thread32007.html"]Projects for the Beginner[/URL]) dealing specifically with C++ classes and their related functions? Thank-you in advance, reRanger | |
Hi people i am kind lost at where to start for this lab assignment i have gotten for my mid term break: Olympiad 2012 Problem It's London! International Olympic Committee President Jacques Rogge has announced that London will host the 2012 Olympic Games and Paralympic Games. 6 July, 2005, Singapore … | |
look at "dc.SelectObject(&pen)" and "dc.SelectObject (&brush)",here no matter I use "&" or not it results the same. why is that? [code] void CMainWindow::OnPaint () { CPaintDC dc (this); CBrush brush (RGB (255, 0, 0)); CPen pen (PS_NULL, 0, (RGB (0, 0, 0))); dc.SelectObject(&pen); dc.SelectObject (&brush); dc.Ellipse (0, 0, 200, 100); … | |
the following code is from the examples on the book CPen pen (PS_SOLID, 0, RGB (192, 192, 192)); CPen* pOldPen = dc.SelectObject (&pen); //do some drawing staff here dc.SelectObject (pOldPen); I know once I create a pen, I can do some drawing staff, but why should I add "CPen* pOldPen … | |
I am working on a program that uses interrupts and a buffer to read/write characters from/to the console screen. (This is a tty.c program with ttywrite(), ttyread(), ect...) I also have a given queue folder, which contains queue.c that has the methods: [code] int init_queue(Queue *q, int max_chars); make a … | |
I have to write this program by 12 a.m. tonight and i need help writing this program below. I will work with whoever can give me help all night if that is what it takes I'm trying to write a small code that will ask the user to choose between … | |
What if you were told to use arrays to solve this? | |
I am trying to create a blackjack deck of cards (blackjack uses five decks... 5*52 = 260) Suit is irrelevant in blackjack. How do I create my deck? [CODE]#include <iostream> using namespace::std; int main() { char thedeck[13]={'2','3','4','5','6','7','8','9','0','J','Q','K','A'}; char deck[260]; for (int i=0;i<20;i++) { for (int j=0;j<13;j++) { thedeck[j]; } } … ![]() | |
please help me understand the folowing code.... [code] class A { int a; public: A() : a ( 0 ) {} int get() { cout << "Hello WOrld " << endl; return 0; } }; int main( int argc, char** argv ) { cout<< ((A*)3)->get() << endl; return 0; } … | |
I am programming in C++ and am attempting to find the intersection of two strings, only the items common to both and thus return a third string with these items. Essentially, I am trying to write the code for the STL library set_intersection. To approach this problem I thought of … | |
I'm having difficulties to get the buffer read 10 numbers from a file, then after it's empty read next 10 numbers, and so on till eof is reached. The input file contains several lines of data, with a single integer value on each line. Here is my code (I have … | |
okay, I haven't had to do much development work in c++, I spend most of my time in c#. I am trying to finish a course and my teacher gave an assignment on dealing with union and bitfield structure. The assignment is: [COLOR=#000000]Write a C++ program that reads a 64-bit … |
The End.