132,726 Archived Topics
Remove Filter ![]() | |
Hello, I have written a test code for signal handling. The code is compataable for both Windows and Linux. The code is as: [code=c] #include <signal.h> #include<stdio.h> #include<string.h> #include <sys/types.h> #ifdef WIN32 #include <windows.h> #else #include <unistd.h> #endif void intr_hdlr(void); void intr_hdlr2(void); int cnter=0; int sig_cnter=0; int main () { … Software Development c | |
Hi I need some help with these C++ programs in Dev C++: #include <iostream> using namespace std; int main() { std:string str, str2, str3; std::cin >> str; std::cin >> str2; std::cin >> str3; std::cout<<str.length()<<std::endl; std::cout<<str2.length()<<std::endl; std::cout<<str3.length()<<std::endl;[/QUOTE] I type in a word for each string and I want to organise the … Software Development c++ | |
I've got some fairly expansive code for musculoskeletal simulations that I'm altering. I've double and triple checked my code segments, but I've been banging my head against this particular error for some time. I'd appreciate any elucidation you kind fellows can pass my way. If any further code, etc would … Software Development c | |
Hi, This program is supposed to ask the user how many numbers they want to sum up and then take all the numbers one by one to give the final result. Its working but perhaps you all professional programmers will point out some flaws in it. [CODE] #include <iostream> using … Software Development c++ | |
Hi, I have this txt file containing data in this format: John HH HHH GGGGKK I want to extract John as 1 field and HH HHH GGGGKK as another field. How do I ignore the whitespace and read it as a single field? Software Development c++ | |
I am trying to display an Image using applet. Image is updated after every 4 seconds so i want my applet to show updated image.I am not sure where i should load the image i have tried to load it in the init() method as well as in "start" method … | |
I have an Illegal start to an expression. I'm trying to remove it so these methods can be implanted. import java.io.*; import java.text.*; public class Kudo { public static void main(String args[])throws IOException { do { System.out.println("pick from 1 of the following options"); System.out.println("1) twelve"); System.out.println("2) minMaxAvg"); System.out.println("5) to exit"); … Software Development java | |
can i open passward protect mbd file from vb 6 with shell commad or any othe commad i tried with opencurentdatabase but my aceess window dose not maximize autometicaly any help plz...... Software Development visual-basic | |
I am trying to write two programs to work in conjunction. The first is a bibliography program that writes book info to a file; That's ok. Here's what I did: [CODE]#include <string> #include <fstream> #include <vector> #include <iomanip> #include <sstream> #include <iostream> #include <iterator> #include <vector> // vector class-template definition#include … | |
//To check if there is a win #include <iostream> #include "tictactoe.h" using namespace std; int win(char board[3][3]) { for(int i=0;i<3;i=i+1) { if ((board[0] == 'x' && board[1] == 'x' && board[2] == 'x')|| (board[0] == 'o' && board[1] == 'o'&& board [2]== 'o')) return 1; else if((board[0] == 'x' && … | |
Hi all I'm trying to create a dynamic array of structures and have come across the following code but I can't figure out how some of it works: (incidentally this is from Prata's book C++ Primer Plus, Ch4, Ex.9) [code=syntax] #include <iostream> using namespace std; int main() { //structure declaration … Software Development c++ | |
:confused: Arrgh!!! Cant understand these sentence from this website of brickos programming: [URL="http://legos.sourceforge.net/HOWTO/x600.html"]http://legos.sourceforge.net/HOWTO/x600.html[/URL] [code]random() and srandom(int x) are now available in legOS. To use them, just call srandom(int x) at some point during your program startup. x is a "seed", which allows you to get the same sequence of numbers … Software Development c++ | |
:idea: :-/ Dear c++ gurus, I have an intention to run two loop together at a time. I dun know whether it is possible or not. My architecture is: [code]run: 1. loop1 2. loop2[/code] [code]loop1 running together with loop2.[/code] [code]loop2 will stop running once loop1 give a signal, say if … Software Development c++ | |
Does any one know of any good websites that explain hash tables in great detail? Thanks Software Development java | |
Hi, I'm having some problems and i'm hoping someone can help. I'm using python 2.4 and have the pywin library installed. I have a listbox which when I click on a description of a product displays the whole record, so for example I select "bike", and press a "select" button … | |
If anybody would like to help i need someone who is good with assembly and has knowledge of con files for help with running a homebrew.It would also help if you understand how an xbox 360 works.Also help with programming.If someone can help it would be greatly appriciated. | |
In the below code im getting a year from the user. but when I print of the year from scanf is doesnt print the correct value such as 2010 will be printed as 74.43434 (somthing like this). If i change the scanf from %.3lf to %f or %d the program … Software Development c | |
Hi there, I got a little problem with finding the inverse of a matrix when using the BigDecimal type. I mean, I have got a method that finds the inverse of a matrix perfectly with the primitive type double. Here is the method as shown below: [code] import java.lang.*; public … Software Development java | |
hello guys, i need a lil guidance here i am trying to save the output from my "SThreads" results to a txt file without deleting the previously stored data, i jst want to keep adding to the file..any suggestions that will help are appreciated.. heres the code i have done … Software Development java | |
Hello everyone, I'm working on a project, each time two numbers are read from a text file. Text file contains two lines of sequational numbers, something like this: [ICODE] 4 5 2 1 10 8 3 4 6 1[/ICODE] I have two linklists and each node is able to store … Software Development c | |
Is there a way to cast a the contents of a char* buffer into an int? Software Development c++ | |
University of Bahrain College of Information Technology Department of Computer Science ITCS102: C++ Programming Assignment #5 Create a class called BloodDonor that maintains information about blood donors in a blood bank having the following data members: 1. IdNumber, // long int 2. name, //Name of donor 3. bloodGroup//String 4. home_Phone//String … Software Development c++ data-science | |
Hi, I am fairly new to vb.net and seem to be having some probelms doing an SQL statement. I am selecting data from more than one table from my Access database. A surname held on a database is typed and it is supposed to display results, related on the MemberID. … Software Development dataset microsoft-access open-source vb.net | |
Hello, I was wondering if you could change the program icon (it's usually a picture of c:\), and without making a gui progra, just a normal one if you get me? Like you can change the title by; system("title This Is Your Title"); Help a.s.a.p please :). ~ Black Magic | |
Hi, I have a question regarding my vb.net code. I have a button called 'Add New Item', when the user clicks on that button, the text fields should be clear. I tried this code 'txtAddNewItem.clear() and this code too 'txtAddNewItem.Text = "" ' , but I am getting an error, … Software Development vb.net | |
[code] #include <stdio.h> struct places { char places1[100]; char places[10][10]; int distances[10][10]; }; main() { int menu; char userinput1[10]; char userinput2[10]; char userinput3[10]; int cost; int other; int a; int b; int c; int distances; char places[50]; struct places names[10]; FILE *fp; /*creates a file pointed named fp*/ /* reading … Software Development c | |
I'm trying to make so it would check if letter i and i+1 are alike. If so it'd drop "denied" else "accepted". i dont understand what I did wrong though: [code=c++] #include <iostream> using namespace std; int main() { char pass[5]; bool correct=false; cout<< "pass: "; cin>> pass; for (int … Software Development c++ | |
Hey wassup? I need to know how to detect arrow keysand the escape key, and any help would be greatly appreciated, thanks! Software Development c++ | |
Private Sub Command1_Click() Dim a, b As Integer a = 10 b = 20 sum1(a,b) End Sub Private Sub sum1(a, b) Dim c As Integer c = a + b Print c End Sub i have called the procedure bu simply the procedure name & arguments within the parentheses as … Software Development vb.net visual-basic | |
hello! i'm doing some memory altering but i've come to an standstill. here is my problem: (ill try to write it as an example somwhow..) i have an int (lets say int x). this int has an value of an memory address but in decimal not in hex value. now … Software Development c++ | |
These is my code and i need to change it so that the second out put replaces the first and so on. [code]#include <iostream> #include <stdlib.h> using namespace std; int main() { int a = 0; int h; int m; int s; mistake: cout << "What is the current hour?\n"; … Software Development c++ | |
Hello, I had a login page developed in asp(not .net), in which if user login details are OK, then usercd and other details are stored in session. Now, I had developed one page in .net (aspx.cs) in which I want to access usercd defined in session variable(on asp page). How … | |
Hi I need some information about working with memory by vb6: 1-How can I directly read a byte with special address in memery? 2-How can I find the start address of an exe file (that run) in memory? Thanks. Software Development visual-basic | |
haii I have a problem while accessing a class(A) through "reflection" from class B.... i want to pass a parameter to class A... My code is like this... Method idMethod = Class.forName(ClassName).getMethod(FunctionName,null); Method getMethod = Class.forName(ClassName).getMethod("getInstance", new Class[]{Class.forName("java.lang.String")}); Object object = getMethod.invoke(Class.forName(ClassName()),new Object[]{dboption}); lists = (ArrayList)idMethod.invoke(object,personId); i will get correct … Software Development java | |
hi I am from chemistry background and no idea about programming,trying to learn biopython.Can u tell me pls which books explain things very simply? i will be greatful thanks in advance. Software Development python | |
Hi I just started to learn to program and I choose python cause I heard it was easy to learn. But I already ran into proably a very stupid problem that a only a noob like me would need help with. I'm using idle to program with in windows and … Software Development python | |
how can I check the donor if valid by using switch function Is_BloodBroup_Valid // takes a string as parameter and return true if it is a valid group and false if not. The only possible blood groups are A+, A-, B+, B-, 0+, 0-, AB+, AB-. also if I have … Software Development c++ | |
I have a problem with my edit boxs. I am adding value 0.1 to an edit box on a button click. How can I make it so that there is always 4 values i.e 00.1 if the value was 0.1. or 01.0 if the value is one. At the moment … Software Development pascal | |
Hello, I'm using Microsoft Visual Studio 8.1 (2005) to compile and link a library and my application that uses this library. Linking complains that a symbol can not be found. I looked at the lib file and this is what happens: [code] dumpReadable@OGRGeometry@@UBEXPAU_iobuf@@PBD@Z - Lib has this dumpReadable@OGRGeometry@@UAEXPAU_iobuf@@PBD@Z - My … Software Development c++ visual-studio | |
Hi, I am using VS C++ 2005 express edition. I developed a simple GUI with a single tabControl (contain tabpages with some combobox). I wish to add a button which able to add another tabpage which contain the same item as previous tabpages. For example. my previous tabpage contain 2 … | |
I'm attempting to create 5 card stud poker game, I'm almost in the final step of it but I am not understanding how to implement it. Evaluate each players hand to determine winner(This is where my difficulty reside at the moment) Sorry if the code is messy and long, still … Software Development python | |
Well guys and gals, I am the beginner at this that is talked about when signing up in these forums. Looking for a good direction to get a grasp on C++. Always been very interested in programming and learning the different languages and would mind being fluent in the other … Software Development c++ | |
Well I have a question which could stem some confusion. I'm using C++ to develop some software which i will release as freeware on my website. I'm not new to database programming, however i have only ever worked with xbase and dbase... I would like to start making software with … | |
[B]why is casting from a base class object to derived class object is unsafe?please explain with examples[/B] Software Development c++ | |
Hi folks! Was wondering if you could help with a problem. I'm supposed to write a function that writes n, n-1, n-2, …, 3, 2, 1. I'm pretty sure I've got it but for some reason I keep getting 0 whenever I run it. It doesn't have to be a … Software Development c++ | |
Hi guys, Could someone point me in the right direction, please? I'm trying to expand my system to accommodate the reservation of consecutive seat numbers. The user is prompted for a row number, seat number and then the amount of consecutive seats he would like to book. For example: The … Software Development c++ | |
I made a network chat program on my desktop pc and it works fine, but when I try to run it on my laptop it does not work and comes up with this error: [URL="http://ecp-clan.frih.net/untitled.PNG"]http://ecp-clan.frih.net/untitled.PNG[/URL]. Here is a description of the error: EventType clr20r3, P1 p2pchat.exe, P2 1.0.0.0, P3 47fc0f45, … Software Development vb.net | |
Hi everyone.I've got a question on dynamic cast.Dynamic_cast allows us to downcast a data type from one to a more specific one in the same hierarchy. But why not declare the variable we need to the appropriate type during programming time rather than downcasting it at run time? I don't … Software Development c++ | |
Hi, I have problem putting a value to 16 bits variable. Here is, how I am doing it. [CODE]typedef unsigned int UINT; typedef UINT* ID_PTR; unsigned short int myclass[5]; const ID_PTR arr16_bit[5] = { (UINT*) &myclass[0], (UINT*) &myclass[1], (UINT*) &myclass[2], (UINT*) &myclass[3], }; [/CODE] Now accessing the myclass like this. … Software Development c++ |
The End.