199,114 Archived Topics
Remove Filter ![]() | |
Hi there. I need to write a recursive DFS function for graph which is implemented as follows: [CODE=c] struct nodes_arr { unsigned int position[50000]; unsigned int amount[50000]; node *next[50000]; } nodes_table[] = {0};[/CODE] [CODE=c]struct node { unsigned int position; unsigned int amount; node *next; };[/CODE] as a result i have … | |
Hi and I am making a dll but the dll won't accept pointers due to what it links to. So below is my code and does anybody know how to make a string array without pointers? Also I'm using Visual c++ 2008. [CODE]//#pragma warning(disable:4996) //disable "depreciated function" warnings #include <windows.h> … | |
I know how to add the items during design time but how do you add the items through code. I want to fill the combo box in the datagrid with the results of an SQL query? | |
Hi! I have a dropdown that is populated by a hashtable. THis part is working fine. But, I have to select an option in this dropdown according to information I get from a SQL Query. It's like this: The field in the table can have 0 - 3 0 First … | |
I'm normally a VB.Net/C# guy but because of a third party dll that isn't working in .Net, I'm having to interact with it using C++. I'm able to read and understand (for the most part) C and C++, but I've never actually written any code in it. The third party … | |
Im working on on this website which basically its a php page with an iframe. The login page is displayed within the iframe and when all deatails are inserted correctly new options will show up on the main page. Now the prob is the after the login i have to … ![]() | |
i make a program to multiply 2 binarry numbers [CODE] #include <iostream> #include<string> using namespace std; void main() { string y,a; string S1="00000"; cout<<"plz ener two numbers"<<endl; cin>>y; cin>>a; cout << "Sting S1\t\t" << S1 << endl; cout << "S1.size\t\t\t" << S1.size() << endl; int n=a.length(); n=a[4]; if(n[4]==0) { string … | |
Hi, I am trying to write some code in order to communicate with a telnet clent from a c++ application. My idea was to open a telnet session with popen and to use the input/output pipes to communicate but it does not seem to work. When I test, the program … | |
What is going on here. Copy this C code , compile and run. What do you think is going on? Note I don't want the answer, I know what's going on here. This is just something for the rookies to play with... Also this is not the best way to … | |
Hello everybody. I have to make "an-OCR-like" programm in C - it gets for example this to stdin: [CODE] *** *** *** * * * * * * * * * * * * * * * * * * * * * *** *** *** * * * * … | |
HI ALL, i am writing this snippet to working with text files, here i explain the basic functionality of read/write operation on text files.....:) Here each method has a single parameter, the file name you wish to work with. | |
hello, and happy new year! i'd like you guys and girls to show me another or similar but a bit different way to write this code, which a simple employe class with 4 different sub-employers types. thanks. this code is not mine, and i need to write somethink like this … | |
Hello, this is my first time here, although I have hit this website many times on google looking for quick fixes to my problems. I am a student in high school and I persuaded my teacher to let me study c++ (as opposed to 3ds max). I have been working … | |
I just purchased accelerated C++ and I'm working through the examples and I'm at a road block trying to figure out what this line means. I was wondering if someone could explain this to me in a different way? The part of the code I do not understand are bolded. … | |
Hello! What I am trying to do is display a list of categories and another list of brands. [B]CategoryList : class BrandList : class[/B] I am getting only the list of classes displayed. Can anyone tell me what is wrong with my code.. [CODE] <?php $obj = new CategoryList(); if … | |
Hey :) I have written this code, but it seems that theres an error in it, that i can't find. When i try to compile it i get this error: Call to undefined function 'sleep' in function main(). I know it has something to do with that sleep function, because … | |
If you want to restrict the user to go back or forward from the web browser, you can use the below mentioned javascript. Use this javascript in the script tag. It works on all browsers. For further details: [url]http://dotnetbypulikesi.blogspot.com[/url] | |
This simple code shows to display the form in different shape. Also using the Gradient Brush to add Look And Feel to your form. Moving the form is also possible. Requirements Just draw a Form (Form1) and add Event handler for Load, MouseDown, MouseMove, Paint and DoubleClick for Form1. Then … | |
Use visual basic 8.0 Dymo labelwriter 400 Installed Dymo labelwriter 400 Software Development Kit (SDK). My problem is that there is a label is printed, but the mylabel. SetField are not included in the barcode label. The default values are printed. The object name in the label are correct (OText1 … | |
I have a general doubt regarding passing pointers to functions... Suppose i have variable [code=c]tc_struct *ptr;[/code] and i want to pass it to a function to fill it. So i passed it [code=c]func(&ptr);[/code] and i received it in func as [code=c]void func(tc_struct** ptr1)[/code] Now again i want to pass this … | |
I am using VS2005 version of VB.Net programmer. I wanted to use the user input but most people tell me to use console...but I cannot use this function since my version is different, it will not show any results. I found that using mask textbox can use to read the … | |
Hi, [CODE] #include <iostream> #include <cstdlib> #include <new> using namespace std; class loc { int longitude, latitude; public: loc() {} loc(int lg, int lt) { longitude = lg; latitude = lt; } void show() { cout << longitude << " "; cout << latitude << "\n"; } }; // Global … ![]() | |
Hi everybody, Again, I try to deal with exercise from a book Think Python version 1.1.19., exercise 9.2. (case study: world play) My contents of the words.txt is: "Ahoj, Toto je moj prvy pokus otvorit a citat subor. Vela stastia " Thing is, if you have a look at a … | |
I just made a 'Hello World' program [code] #include<stdio.h> int main() { printf("Hello World\n"); return 0; } [/code] [code] exe file size = 15.5 KB Source file size = 79.0 B [/code] Then i made a data structure program (implementing stack, queue, deque) [code] exe file size = 21.9 KB … | |
how to get printer information like printer name,IP and location using c-sharp?? | |
Hello, This is my first question in this forum :) I'm new in GDI+ and C# programming, though I have an experience in other programming languages. Here is my question: I started a new Windows Form Application project in Visual Studio 2008. Then I double-clicked the Paint event of the … | |
i DO have searched the google to do multithreaded programming using c++ and found there were few like the ones supported in BOOST libraries and zthreads .. I would be glad if u guys could help me in suggesting much better ways in doing so . | |
hey all.........i m new here!!!!!! I am at my wits end on this problem.....i would appreciate it if you could give any help..................................................... i managed to compile and run a C++ program that intializes and reads/writes to a serial port . I was using the Dev C++ compiler to write … | |
[CODE] <?php ob_start(); extract($_REQUEST); extract($_POST); session_start(); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } $db=mysql_select_db('murali',$con); $message = ''; $error = array(); $select=mysql_query("select * from registration where username='$_REQUEST[username]'"); $taken_usernames=mysql_fetch_array($select); // main submit logic if (@$_REQUEST['action'] == 'register') { $resp = check_username($_REQUEST['username']); if ($resp['ok']) { $message = … | |
This is an update of an earlier version. In this version the string containing the approximated pi value is created directly from the iteration of the generator. This way the program is simplified and can be used with Python2 and Python3 ... | |
new to this forum,my querry is the most basic that anyone could have asked ever here. i am a final year student and am alloted a project to built an ivr system for fault control management of our local college exchange. now i searched a lot on internet to "how … | |
Hello- I'm using VB.NET (visual studio) to create a chatbot (a program that mimics a human and has a text converstion with you). Two of my main classes are a word class and a sentence class. The sentence object is basically going to be a linked list of words objects. … | |
Hello guys, first of all.. am gonna say that i googled and searched the forum alot.. nothing to be found.. So my question is.. 1- Where does my actual manual written code go in C# + GUI (WindowsFormsApplication not the console one.) Does it go in the Program.cs or Form.cs? … | |
how to create asterik star like this [B][COLOR="Red"]>[/COLOR][/B] with 10 Asterik star (*) | |
Absolutely no surprise there then: Modern Warfare 2 is the all-format games Christmas Number One according to the ELSPA software charts just published here in the UK. A position, incidentally, it has held for the six weeks, ever since it was released. The Top Ten, in case you are interested, … | |
File under FAIL: social network widget maker RockYou has fallen victim to a SQL injection flaw and as a result some 32.6 million users are being urged to change their passwords as a matter of urgency. Security specialists Imperva discovered the problem at social networking development site Rockyou.com and issued … | |
Python uses the Mersenne Twister as the core random generator. The module random contains a fair number of methods (or functions) that help you to do random things. Here are some examples ... | |
Hello I have a static window control & I want to make the text inside that static window centre aligned. [B]Is is possible to do that with a static window?[/B] Or should I use another function? static window: [CODE] stBox = CreateWindowEx( 0, "Static", s.c_str(), WS_BORDER | WS_CHILD | WS_VISIBLE, … | |
Here is the problem: Write a program that displays the name of each month in a year and its rainfall amount, sorted in order of rainfall from highest to lowest. The program should use an array of structures, where each structure holds the name of a month and its rainfall … | |
Hello, I'm confused on how to put the Random.Next() method into my matrix array. First my matrix array is already messed up, I'm trying to create a 6 by 10 matrix of random numbers and then show the numbers times two. here is the code i've already done, ps my … | |
Hello. :) This is my first post and it's unfortunately to ask for help. The problem is as follows: [LIST] [*]The user types in how many names they wish to enter. [*]An array must be able to hold this many names. [*]The user then types the names. [*]Any characters over … | |
Hi! I'm new to the site! I've been searching for help on Google for a while and keep getting results that point to this site, so I figured I should jump on. I'm new to C#. I've been programming in VBA in MS Access for a while now and have … | |
Hi, I'm having a problem wrapping my head around a problem. Here is the problem: Develop a program that will input a binary string and then, using bitwise operations, do a two's complement on the string and display it. Use UNSIGNED data types for the bit strings. So far, I … ![]() | |
I thought this website on coding conventions was pretty cool.. learned some things that I never knew before: [url]http://www.possibility.com/Cpp/CppCodingStandard.html#init[/url] I was just wondering: If there are any conventions in particular you agree or disagree with (and why) If this would be worthy of being a 'sticky post' as I think … | |
Hi All, I am facing the scanf() function problem, below given is a small code snippet where am facing the problem. [CODE] int main() { char str1[100]; char str2[100]; printf("Enter 1st string\n"); scanf("%[^\n]s",&str1); printf("Enter 2nd string\n"); scanf("%[^\n]s",&str2); printf("1st string is %s\n", str1); printf("2nd string is %s\n", str2); return 0; }[/CODE] … | |
I'm attempting to use a specialized function to search an array of c strings for the longest (or first tied for longest) member. Right now, I'm getting [inlinecode]line 87 error: invalid conversion from `char' to `const char*'|[/inlinecode] on my comparison statement. If I switch the templates' inputs to const, I … | |
Hi, What is the function/opperator to calculate a power with C# I tryed [code=c] powerof = anumber ^ anothernumber; [/code] and that clearly doesn't work (1^3 is 2, 2^3 is 1 etc.) How do I do it??? I looked under [icode]Math.[/icode] functions and there was nothing and I spent ages … | |
So far, this has worked relatively nicely. However, I am having trouble in outputting to two separate files, and I'm hoping that you guys and gals can help me out. I'm reading in from a file, and outputting to two different files, based on what the input is. If anyone … | |
Hi everyone. I'm currently working on a project with c#, and had some questions about classes. I'm a python programmer, so bear with me ;) How would I make a class that has pre defined arguments? I.e. even if the user doesn't pass that arguement, the default value of it … | |
I'm a PHP guy so I still struggle with Javascript. The answer to this is probably easy. I need to add some animation effects and I'm experimenting with JQuery [B]animate[/B]. The sample routine is set up to run when you click on the Run link. I want to change the … |
The End.