132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for guest7

Hi, I am trying to generate 2000 random 3 bit binary numbers. I am using the following code to do that but I am getting an error. #include <bitset> #include <stdio.h> #include <cstdlib> #include <strings.h> #include <iostream> #include <vector> #include <time.h> using namespace std; int main() { for(int i=0; i<2000; …

Software Development c++
Member Avatar for tesuji
0
205
Member Avatar for beatlea

Hello, I coded binary and Fibonacci search algorithms in Fortran and was trying to determine for what size of array Fibonacci search would become faster than the binary search. Unfortunately, what I get is the binary search being quicker on any given array. Here is my implementation of the Fibonacci …

Software Development
Member Avatar for Adak
0
142
Member Avatar for sweety0

Hello!! this time i got mad because i didnt even got a single answer from your site regarding shortest path. please tell me how to embed vb.net and C++. [B]can anyone please tel me the code of dll import function??[/B] Vb.net at the front end and coding in C++ at …

Software Development c++ vb.net
Member Avatar for VernonDozier
0
120
Member Avatar for era_chatterbox

I jst wanna knw...how to pass the value of a text box, of a form as the caption of command button of another form? Please do lemme knw... :)

Software Development visual-basic
Member Avatar for JLCantara
0
111
Member Avatar for Black Magic

Hey, When i say right i mean is this the best way to do it. The program works fine and I just put it together in about one minute. [CODE=C++]#include <iostream> using namespace std; int main() { srand(time(NULL)); const char* words[] = {"silly", "bafoon", "monkey"}; int i = rand() % …

Software Development c++
Member Avatar for Black Magic
0
92
Member Avatar for ninjaneer

I've been floating around the web looking for a way to add a cap to my Cpp program's processor use, and so far I've only come across a few painful looking Cpp-to-assembly tutorials and a bindprocessor function in an IBM API. I was wondering if any of you wizards knew …

Software Development api assembly c++ windows-api
Member Avatar for ninjaneer
0
112
Member Avatar for Jennifer84

In a Form Window you have in the upperright corner, Minimize, Maximize and the other red control that you close the Form with. I wonder what this control is named and if it is possible to put code inside this control. Because if I doubleclick on it, I doulbeclick on …

Software Development c++
Member Avatar for Jennifer84
0
83
Member Avatar for Jennifer84

This perheps is a strange question but if I have a buttoncontrol on the form I could programatically make this button invisible like below: [code] button1->Visible = false; [/code] What I wonder is if it is possible to make the button Visible = false; by fading the button away so …

Software Development c++
Member Avatar for Jennifer84
0
146
Member Avatar for Zolookas

Hi, I am new to C++ and Qt and despite that i am thinking of using threads in my app. Here is an example code which outputs "." and then "QThread: Destroyed while thread is still running" error after pressing button. [CODE=C++] class MyThread : public QThread { public: void …

Software Development c++ qt
Member Avatar for Zolookas
0
1K
Member Avatar for emilio

can i drag from label and drop inside form and set the form backcolor as the labels backcolor ?

Software Development
Member Avatar for emilio
0
104
Member Avatar for dinilkarun

Hi all, I want to append our own images with nodes and their children in a tree control. I am using wxPython and it has wx.ART feature which contains many custom images, but if I want some other images to be appended in a tree, what should I do? Please …

Software Development python
Member Avatar for kabila
0
121
Member Avatar for mhil_joy

guys.. please give me some idea on how to program tic tac toe using user to user.. thank you.. god bless you all...

Software Development c++
Member Avatar for Nick Evan
0
103
Member Avatar for maaply

Hi everybody, I have interview on next week. I know some question will come from link list. What kind of question will come in face-to-face interview's?. If some one post that kind of question, that will be very helpful to me. In this interview Question will be in C only. …

Software Development c linked-list
Member Avatar for Jishnu
0
65
Member Avatar for SGoel

hi, I have a very weird question and since i cant find the answer to it even after surfing ALOT, i HAD to ask for your help... i have created an OS of my own... everything is complete... the bootstrap loader is done, the kernel (16-bit, monolithic and segmented - …

Software Development assembly
Member Avatar for SGoel
0
142
Member Avatar for bpacheco1227

I am a C++ beginner and I am stuck. I can't get the random number generators to run properly, specifically the random number generators are all coming up with 1 . The point system is not running properly either, I'm sure it has something to do with my do-while loop. …

Software Development c++ ios session
Member Avatar for bpacheco1227
0
177
Member Avatar for Clockowl
Member Avatar for bhoot_jb

I have used the Package & Deployment Wizard to put my Visual Basic Program on CD, I then copied over my database 'calculations.mdb' onto the cd also so that the VB program can access the database when installed on another PC. However, the program still searches the same path as …

Member Avatar for selvaganapathy
0
205
Member Avatar for xyzt

hello I need to do something like this: for ex. if the N is 12 then, i will produce strings like "001" "002" "003" "004" ... "012" if the N is 6 then, I will produce strings like "01" "02" ... "06" is it possible to do that with standart …

Software Development c++
Member Avatar for Duoas
0
93
Member Avatar for &rea

I am trying to use Elements (a property of matrix) that will save all the elements as an array so I could access the different elements but now I don't know how works this property. I have written that [code] L->Elements(cli::array<int>(1)^get()); [/code] and I get these errors: [code] error C2143: …

Software Development c++
Member Avatar for &rea
0
116
Member Avatar for champnim

I have made a singly linked list that holds an integer & a string. The creation of the list works fine but deletion of a node is giving an error. Previously I was not adding a string to my list(only adding int)& at that time the code was working. please …

Software Development c linked-list
Member Avatar for LouPascalou
0
141
Member Avatar for regent_royal

Hi friends, I have[B] build swing based application on windows os and I want to run this application in linux.[/B] The .jar file runs perfectly on windows. but not running on linux. gives error as below. pls. help regent@regent:~/main the law$ java -jar thelaw.jar Exception in thread "main" java.lang.NoClassDefFoundError: while …

Software Development java java-swing
Member Avatar for regent_royal
0
175
Member Avatar for marcusbarnet

Hi to all! Is there a way to go and read a particular line in a text file? For example, i have a text file like this: 15 nick 25 marcus 18 sarah where each line contains an integer (age) and a string (a name). I'd like to write a …

Software Development c client-server
Member Avatar for marcusbarnet
0
981
Member Avatar for radnik

I made a little program in which i read double values from file and store them in vector of vectors. So i have one vector pairs which is collection of coordinates (numbers from one line in txt file) and vector trajectories which is vector of vectors pairs (collection of all …

Software Development c++
Member Avatar for jencas
0
120
Member Avatar for Prathvi

Dear all, I have to create a customized SoftInputPanel for my program. My question is that ==>Is it possible to create our own SIP for Windows Mobile? ==>Pls give some info for the same

Software Development c++
Member Avatar for Prathvi
0
93
Member Avatar for Azurea

Hey guys. I'm having an issue with my Dev-C++ IDE where whenever I try to compile my code, I get a " [Linker error] undefined reference to `__cpu_features_init' ld returned 1 exit status " error. Even with simple programs with just sending information to [I]cout[/I] I get this error. Something …

Software Development c++ ide
Member Avatar for Azurea
0
169
Member Avatar for Aamit

[code] Day: printf("\n1:Mon\t2:Tue\t3:Wed\t4:Thu\n5:Fri\t6:Sat\t7:Sun\nEnter value-> "); scanf("%d",&x); char dd1[5]="MON"; char dd2[5]="TUE"; char dd3[5]="WED"; char dd4[5]="THU"; char dd5[5]="FRI"; char dd6[5]="SAT"; char dd7[5]="SUN"; if(x==1){ strcpy(dd,dd1); } if(x==2){ strcpy(dd,dd2); } if(x==3){ strcpy(dd,dd3); } if(x==4){ strcpy(dd,dd4); } if(x==5){ strcpy(dd,dd5); } if(x==6){ strcpy(dd,dd6); } if(x==7){ strcpy(dd,dd7); } //printf("%s",dd); if(x>7 || x<1) { cout<<"\nPlease Enter Valid Option\n"; …

Software Development c++
Member Avatar for mitrmkar
0
146
Member Avatar for era_chatterbox

hello frnz...How to code for a login form by taking data from Oracle db? M having a table Employee having attribute as emplogin and emppwd...from there i want to check that whether the user has entered the correct data or not... I mean i want to match the entered data …

Software Development oracle visual-basic
Member Avatar for era_chatterbox
0
792
Member Avatar for &rea

Hello, I have got a matrix and I want to get his elements so I can work with them in an unsigned int[][] or in a similar way. I have proved to get them with the method Element but it returns an array and I think it don't do what …

Software Development c++
0
73
Member Avatar for &rea

Hello, I want to make a matrix like this: [code] System::Drawing::Drawing2D::Matrix^ L; L=gcnew( System::Drawing::Drawing2D::Matrix::Matrix(rect,plgpts)); [/code] rect works properly but not plgpts plgpts is an array of Points. So I make that: [code] cli::array<System::Drawing::Point>^ plgpts; plgpts=gcnew(cli::array<System::Drawing::Point, 3>); [/code] and I have this errors: Error C3149: 'cli::array<Type,dimension>' : cannot use this type …

Software Development c++
Member Avatar for &rea
0
158
Member Avatar for sawant_nitesh

I am working on a JAVA project which needs to set the System date and time. I want to open Date and Time Properties of Windows through my Project. When I click on JButton, it should open Windows Date and Time Properties. How to do it ? Please Reply.

Software Development java
Member Avatar for sawant_nitesh
0
79
Member Avatar for tzushky

Hello, Here I go again. I have the simplest of ideas...yet cannot seem to find a solution to implement it: [CODE=Python] from socket import * import time BUFSIZE = 256 IP = 'localhost' PORT = 25000 ADDR =(IP, PORT) tcpCliSock = socket(AF_INET, SOCK_STREAM) tcpCliSock.connect(ADDR) tcpCliSock.send('I want a response from you …

Software Development python
Member Avatar for tzushky
0
150
Member Avatar for WillMcc

Okay, so I'm a bit confused... here are my instructions for making a program: 1. Input each test result (i.e. a 1 or a 2). Display the message " Enter result" on the screen each time the program requests another test result. 2. Count the number of test results of …

Software Development c++
Member Avatar for VernonDozier
0
140
Member Avatar for jainendra.shah

hi frends, I have a problem of selecting a specific substring from a string.... such as---- i have a string "sneha". i have to search "eha" in this string .how can i do this? Thanks

Software Development
Member Avatar for jainendra.shah
0
65
Member Avatar for raul15791

Hi, I'm a beginner for Perl. Just want to ask a few simple question: 1. Which Text Editor tools is the best for Perl? 2. Some recommend JEditor. I installed it but having problem with the Exuberant CTags. After i downloaded it I cant seem to install and apply it. …

Software Development perl
Member Avatar for KevinADC
0
204
Member Avatar for fishwater00

Question 1: [code=c] typedef struct { int x, y, z ; float *wave; float *velocity; }Model; void a(Model *domain); void b(Model *domain, int t); int main() {int i; int j=10; Model Domain; Domain=(Model *)malloc(sizeof(Model); for (i=0; i<10; i++) a(domain); return; } [/code] if I block "Domain=(Model *)malloc(sizeof(Model)", the compiler doesnt …

Software Development c
Member Avatar for fishwater00
0
257
Member Avatar for raj_3y2k

Hi, I'm new to Perl, I installed ActivePerl in my machine and it is running properly. But when I'm trying to open a CGI using Tomcat I'm getting HTTP Status 404 error. I also did the following Altered Tomcat's C:\apache-tomcat-6.0.10\conf\web.xml file a) There's a CGIServlet that's commented out; so I …

Software Development apache perl web-browser xml
Member Avatar for katharnakh
0
191
Member Avatar for nishanthaMe

Hi all I am developing a simple socket application which fetch a given URL from the web and save it in the local hard drive. But my internet connection goes through a proxy and I would like to know that what is the connecting URL and the port for my …

Software Development c hard-drive
Member Avatar for jephthah
0
63
Member Avatar for seesy123

hey,all of you.do you know how to make self-learning remote control car.For example if i control the car using remote control and let it move to 1 track or 1 around.when i press a switch ,it will follow back the previous track that i control without controlling by user.The problem …

Software Development assembly
Member Avatar for seesy123
0
233
Member Avatar for Duki

Hello all, I'm looking for a good VB.NET book. I know a little about c++ and am looking for something along the lines of a text book. Anyone have any good suggestions?

Software Development vb.net
Member Avatar for jbennet
0
139
Member Avatar for tiggerk33

Hello, I have been searching everywhere to find out how I can save a picture from a PictureBox into SQL. Someone told me the best way to do it, is to convert it to a binary file and save it like that. This is what I have, it probably makes …

Software Development file-stream image sql visual-basic
Member Avatar for tiggerk33
0
978
Member Avatar for scream2ice

hi, does anyone know if there is a code in c++ that allows print on paper instead of monitor? i mean instread of using [B]'cout<<'[/B] to see what you want on monitor, use a code to print your info on paper.......cheers

Software Development c c# c++
Member Avatar for Duoas
0
1K
Member Avatar for QuantNeeds

So I finally I got this to work, but my problem is that it gets very messy when I try to print it as a chart. I have to print the output in a neat tabular format that minimizes the number of lines of output while remaining readable. When I …

Software Development c++
Member Avatar for QuantNeeds
0
218
Member Avatar for mattsh

I have a problem here that's stumping me. OK, more than one. :) But only one for now. This program reads two input files. The second file is processed first in a loop. Then, I want to use this information to update information in the first file. Here's the section …

Software Development java
Member Avatar for Ezzaral
0
144
Member Avatar for uompearl

Hello I have a C++ program which is supposed to encrypt plaintext via keyboard input using AES-CCMP algorithm. The problem is that whatever plaintext I enter, it displays same ciphertext. The code listing is about 1500 lines. How can I post my code so that programmers can help me out?

Software Development algorithm c++ encryption
Member Avatar for VernonDozier
0
109
Member Avatar for Dionysus
Member Avatar for Duoas
0
320
Member Avatar for sweety0

[TEX=how to find the shortest path between undirected countries] Heloo! i m again sending my code with few more modifications. please tel me how to find the shortest path between undirected countries. thanks.[/TEX] [CODE= C++] #include<iostream> #include<fstream> #include <string> using namespace std; class Node { friend class list; friend class …

Software Development c++ ios
Member Avatar for VernonDozier
0
121
Member Avatar for mrjoli021

i am having problems appending txt to a file. it overwrites the file instead of appending [code] private StreamWriter outputfile = new StreamWriter("c:\\testfile.txt"); public void SetFile() { this.outputfile.WriteLine("Test",FileMode.Append, FileAccess.Write); this.outputfile.Close(); } ----------------------------------------------------------------- main class FileRead Testing1 = new FileRead(); Testing1.SetFile(); [/code]

Software Development
Member Avatar for mrjoli021
0
99
Member Avatar for SteveDB

Well, apparently, I jumped the gun a little. My code for the program I wrote still doesn't work. It compiles fine and throws no errors, but when I run it, only my main menu list runs-- over and over, regardless of my input, and the esc key no longer works. …

Software Development c++
Member Avatar for SteveDB
0
121
Member Avatar for dad45

I have borrowed code that I don't understand but it serves my purpose. The code saves Text data in a TFile, i.e. MyNewStuff.txt. I want to put it into a TSringlist pronto. Immediately after saving the TFile and closing same, is the data still in memory when I say "MyTStringlist.loadfromfile('MyNewStuff.txt');" …

Software Development delphi hard-drive pascal
Member Avatar for dad45
0
157
Member Avatar for inventer

Hi! I am new to C programming, so this question might sound foolish. I have a problem with output of a program (sometimes the output is wrong) Following is the program: (I am using Turbo C compiler) /* Calculate simple interest */ #include <stdio.h> main() { int p, n; float …

Software Development c
Member Avatar for ssharish2005
0
244

The End.