8,298 Topics
![]() | |
Can Anyone advise me on the problem with the namespace in this code im getting an error. [CODE]//Main. #include "Weapon.h" #include "Room.h" #include <iostream> #include <fstream> using namespace std; int main() { ifstream myfile; string line; myfile.open("BronzeSword.txt"); if (myfile.is_open()) { while ( myfile.good() ) { getline (myfile,line); cout << line … | |
Hi All, I am trying to understand shift operator which is used in my project. What I came to know from google is that Bit shifting allows for compact storage of similar data as a single integral value. But how does that work. and what is the advantage. Can you … | |
Hey im a real noob at c++ and im trying to understand creating rooms setting a default and using a .txt file for room details. but i dont understand it. Im looking at some code from my lecturer and i dont understand were the wiz0-2.save comes from can some tell … | |
Hi, I'm new to asp.net and C# and I want to ask how to implement a session login using asp.net and C#. where i will connect it to my database. Please advise. Thanks. | |
hi.. i'm newbie in C# and i want to learn How To ConnecT RFID into C#.. can you help me? | |
I ve a mask text box. mask is 00 00 00 00 format. my requiement is ,the box should accepts hexa decimal value too... my expect format look like 0A 0C 0a 0f...pls help me..thanks in advance.. | |
Dear Experts, Thanks in advance for helping me out. I am new to C# as well asp.net. I have already running appllication asp.net , needs to change in asp file with C# code. Scenario: My application is using third party software "activepdf server,webgrabber" to convert and print to pdf. BUT … | |
I have an UltraGrid Where Each cells Contains UltraControlContainerEditor inside that we have a UltraPanel and UltraPanel Contains UltraCheckEditor.All these Controls m creating Dynamically and are added as EditingControl. In short I have controls inside cell of the ultragrid. Now I want to knw Whether my checkbox is checked or … | |
Hi guys, Im writing a windows c# form at the moment and after all the headaches of gettin my stored procedure to combine 2 tables from 2 databases from 2 servers that had different collations(.....yeh MASSIVE headache)ive hit another snag! here's my form1 code, no where near completed, missing my … | |
i search and find this code at [URL="http://blogs.msdn.com/b/codejunkie/archive/2008/09/13/bluetooth-device-control-development-using-c.aspx?wa=wsignin1.0&CommentPosted=true#10237561"]http://blogs.msdn.com/b/codejunkie/archive/2008/09/13/bluetooth-device-control-development-using-c.aspx?wa=wsignin1.0&CommentPosted=true#10237561[/URL] and I think this code can be used to make the Bluetooth on my pc turn on or off but the code using reference to windows mobile. anybody have idea on this... I need the sample to turn on and off Bluetooth … | |
Hi guys, is there any build-in function in C# that can detect if a string contain Chinese/Japanese character? This string may contain alphabet, numeric, chinese and japanese characters. Appreciate any advice please. Thanks in advance! Cheers, Mark | |
[B]hey guys: im having a problem with the bisection method using C++ , the code suppose to find the root of this equation "X cube minus 3X plus 1" on [0,1] after 5 iterations and after doing it manually the answer should be x=0.009368 it keeps giving me 0.25 and … | |
hi everyone I have been programing in c++ for a while now, but I'm asked to write project in c#, so is hard to learn it ?? also I have never wrote a program with interface , so is it possible to write console application then build the interface ? … | |
Okay, I am still trying to get used to C++ since I mostly write in Java. I am also new with the two constructor thing mentioned in detail below. Here, I am investigating on writing a class with two constructor. That is, I have heard that you are allowed to … | |
I've tried searching for articles that relate to this issue, but all I keep finding are articles about people who don't know how to define constructors/can't call the parent constructor/etc and I think this will cut straight to the chase. The problem code is as follows: [CODE] #include <stdio.h> class … | |
I'm trying to solve this exercise. Write a program that print out the following, user will input the top number: ***** **** *** ** * i made a program similary to this , but user inputs the bottom number ,the output is like this: * ** *** **** ***** here … | |
![]() | Hello! Well then i am currently developing a web browser project based on Cef Sharp. It's basically chromium for C# projects. Anyway its very loosely based on it. I'd like some help too be able to incorporate Flash Player into this project. Whenever i go to youtube as a test … |
| |
a program that inputs a set of letter codes f for female m for male and gpa then computes and outputs the gpa for both female and male | |
Dear All, How to find the other application events through c# suppose i want to know the state of Msword application whether it is minimized or in maximize state how to find that using c#. any help is appreciated Thanks in advance. | |
Hi, I am a student doing my Final Term Project. I am suppose to create a GUI using C# that can control and interact with a Robot call Robonova-1. The robot will be connected to the PC via Bluetooth. I was thinking to have a connection button in my GUI … | |
Ummm hi, Ive been having some problems with a program ive been working on. I want to insert a new value in a column in a table from a calculation i get and replace the original value. Heres the part of the code: private void button11_Click(object sender, EventArgs e) { … | |
Hallo! I got the following Decimal IP: "3232235876" it represents "192.168.1.100" I got it in the following way: Code: [CODE] //GET IP if (gethostname(hostname, sizeof(hostname)) == SOCKET_ERROR) { printf("%s","host not found"); } struct hostent *phe = gethostbyname(hostname); memcpy(&addr, phe->h_addr_list[0], sizeof(struct in_addr)); //Convert IP to Decimal notation sprintf(decResult,"%u", addr); sprintf(decResult,"%u", htonl(atoi(decResult)));[/CODE] … | |
I just recently started learning C++, in the book i am learning from there is a problem that asks you to write a simple pasword program. It just asks the user the password and then displays a message wether its right or wrong after they enter it. I am having … | |
number generator in c# not random numeber | |
I know C/C++ but am trying to learn C# as creating GUI based application is much easier than in C++. I've been leveraging the options of which GUI tool I should learn. Is it best to learn Winform, WPF, or other? I recently tried out the Windows 8 preview to … | |
hello , i want to cin n numbers then to sort the positive numbers in one array, the negative numbers in another array , then to print positive array. So let me explain , i run the program , i enter the 9 , then enter 1 2 3 4 … | |
my project Converting the c++ program to C# program.what i do plece sugs me and help me | |
Okay, I am trying to extract text from a text box and redisplay it into labels. Specifically, when the user types in an address, say 123 W Elm, I want to click a button and have the "123" print in one label, the "W" to display in a second label, … | |
I need a functioning login code for a windows form. my code that I made has some problems. I posted my code to prove I made Effort. thanks. [QUOTE] -------- Username = 123-incorrect Password = 123-incorrect Login Failed. when Username = onat12-correct Password = sambuca888-correct Login Accepted. now when, Username … | |
[CODE]#include<stdio.h> int main() { int a,b,c; (printf("\nEnter 2 no.s"))?(scanf("%d%d",&a,&b))?(c=(a>b)?a:b):0:0; while(c>=1) {if(a%c==0 && b%c==0) {printf("\nGCD:%d",c);return 0;} c--; } }[/CODE] | |
Hi everyone, i'm working on a simple console application for my company, which would backup the company's X:\ drive by uploading its data every day at 3:00pm. Questions: 1. Suggestions on how to upload a directory? (if not possible, then is it possible to automatically upload file by file) 2. … | |
I'm building a dictionary and I have a database of words with equivelant meaning in Access file. I want to use hash table for finding the words and the meaning. My question is how to implement the hashtable which can use the file as the reference. or any other guide … | |
hi guy's i need some help. my project is an ATM simulator, to handle screen design i used panel for withdrawal, pin verification, balance etc. to explain further i have 1 panel for withdrawal a panel for pin verification etc. now idont know how to control those panel like if … | |
i studied c++ before c guess that was my mistake... i try to read from a file a set of strings and put them in the new allocated array, i do not understand what is the main thing this code isnt working. i get segmentation fault... and even trying to … | |
Hello, im trying to make a program that opens up jpeg files one at a time and look at there brightness and then if its past a threashold moves the file to a "keep" folder if not moves it to a "varify" folder im new to C# so im not … | |
Hi I want to khow about drawing methode in C# that has no dependence in pixel, do anyone can help me? I want to draw patterns and then print them, I can Draw them but when I want to print, I have Problems with measurments because I draw them pixel … | |
hi, i having some problem here. I have a DLL written in C# but I need to re-write it in C++ using visual studio 2005. I have no C++ language..o.O so could some one help guide me? help translate my code..should i use new project > 'Class Library' project or … | |
hello , i'm trying to solve this problem [QUOTE]Create a program which generates fibonacci series till a number 'n' where 'n' is entered by the user. For eg. if the user enters 10 then the output would be: 1 1 2 3 5 8 (beginner)[/QUOTE] the problem is that the … | |
Hello I have already managed to use PropertyGrid class and works fine, but no where I can find the autohide feature. I want the PropertyGrid to hide just the way we hide in VS 2008 how to mimic that any property for that. Thanks in advance | |
So, it sorts the books by price just fine, but I cannot get it to sort the books by title. I am most likely over thinking this, but I've spent a couple hours trying to figure it out. I've looked online and couldn't find the answer. I'm guessing the problem … | |
I have a Login validation problem, when Username = 123-incorrect Password = 123-incorrect Login Failed. when Username = onat12-correct Password = sambuca888-correct Login Accepted. now when, Username = onat12-correct Password = 123-incorrect Login Failed. now when, Username = 123-incorrect Password = 123-incorrect Will not validate Verification failed [CODE]using System; using … | |
Hi, I wish to start making Windows Applications, but I need a good compiler. Considering I work in DEVC++, I can't make buttons, textboxes and other objects that easy. I wonder if there's any compiler like BorlandBuilder for C, but for C++. That'd really help me :icon_cool: So do you … | |
Guys, I've got an issue but I also dont know if its possible. I've templated (generic'd out a class that takes type T where T is a HtmlControl object ... [code] internal class Controller<T> where T : HtmlControl { public T locateControl(T t) { t.SearchProperties.Clear(); t.Find(); return t; } } … | |
im a new student to c++ and classes has really confused me. the program is creating a bank account. i have already completed the header file but the implementation file has be confused. can someone please help me with this. thanks! here is my header file: #include <iostream> using namespace … | |
hi everyone , i want to edit , delete and update classes in css with c# . what shall i do? | |
|
The End.