132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jetsetivan

Hi everyone, For practice I am trying to code a simplified version of the template "std::list" but have come accross the LNK1120 + LNK2001 errors. After looking in Visual Studio's documentation and some investigation, it seems the two most common causes are: 1) invalid calls in the code to things …

Software Development c++ linked-list visual-studio
Member Avatar for Jetsetivan
0
239
Member Avatar for Shaikh Mohsin

Hello Friend i want C program to scan Operating System on network,and display the output and can it is possible to connect to that particular OS.....or is there any other way to achieve this thing.

Software Development c operating-system
Member Avatar for tux4life
0
148
Member Avatar for jerim

I am working on a class assignment that doesn't meet for a few more days. The assignment is to open a text file, and parse the file one word at a time, reading each word into one of 26 arrays based on the first letter of the word. I can …

Software Development c++ file-system oop
Member Avatar for jBat
0
496
Member Avatar for Pilot Boy

Well hello! I'm having problem with reading data from notepad.. So here is what I'm trying to do. etc.. I have notepad file "Doc" and in it there are few things: Level= 5 Cash= 100 And what I want from my program to do is to read Level and Cash …

Software Development c c# c++
Member Avatar for Pilot Boy
0
405
Member Avatar for kinnu

[B]how to display text on [U]right side of window in caption bar[/U] (titlebar) .Is there any function available to do this ?[/B] [B]plz help.[/B] [MFC]

Software Development c++ display
Member Avatar for marco93
0
66
Member Avatar for FatimaRizwan

[CODE]// basic file operations #include <iostream> #include <fstream> #include <string> using namespace std; int main () { char* pch; string line; fstream myfile; myfile.open ("Ahoo.txt"); if (myfile.is_open()) { while (!myfile.eof()) { getline (myfile,line); cout<<line<<endl; pch = strtok (line," ,.-"); while (pch != NULL) { cout<<pch; pch = strtok (NULL, " …

Software Development c++
Member Avatar for jonsca
0
447
Member Avatar for nathanurag

[CODE] #include<stdio.h> void reverse(char s[], int i); main() { int i,c; char s[1000]; for(i=0;(c=getchar())!='\n';i++) { s[i]=c; c=getchar(); } void reverse(s,i); [B] //getting error in this line[/B] return 0; } void reverse(char input[], int n) { int i; for(i=n;i>=0;--i) { printf("%c", input[i]); } } [/CODE] i am writing a program to …

Software Development c
Member Avatar for nathanurag
0
315
Member Avatar for GregPeters

Hi all, I have been creating a program that checks the length of an inputted value. The value inputted needs to be between two specific bounds, e.g. 10 < length < 120. However, I want to ensure that an individual cannot enter text, or a value which is not between …

Software Development pascal
Member Avatar for FlamingClaw
0
122
Member Avatar for popo_prince

i can't get this to run. my math functions at the end have messed up logic. and the superfluous function headers and such. i don't think the math output is linked to the desired output of the payment. [CODE] #include <iostream.h> #include <math.h> #include <cstdlib> #include <iomanip> //here i am …

Software Development c++
Member Avatar for jBat
0
233
Member Avatar for gunbuster363

The situation is this: I use opensuse, which bundled with a python 2.4.X version, I installed it. Then I think python 2.6.4 is better, so I installed python 2.6.4 and all the later package I installed, were with python 2.6.4. In my project, I need a module named tkinter (python-tk) …

Software Development python tkinter
Member Avatar for gunbuster363
0
5K
Member Avatar for eikal

hi, i just learned how to use the while code and put it in a simple program im working on, i however am stumped on how to use it in a part of it here is a snippet of the program code [code=java]String classname, faction; Scanner inputDevice = new Scanner(System.in); …

Software Development java
Member Avatar for peter_budo
0
126
Member Avatar for makan007

"I am trying to display an array of digits using rand. My final result need to be: 1) Output all digits <=40 to the left side of array 2) Output digits > 40 to the right side of array Prob: The random digits does seems to change & result incorrect …

Software Development c++
Member Avatar for kvprajapati
0
102
Member Avatar for torokun

[URL="http://img686.imageshack.us/img686/3380/hw1.jpg"]http://img686.imageshack.us/img686/3380/hw1.jpg[/URL] Okay so I got homework from my IT programming. I am completely oblivious in programming so I need a bit of help getting me into the right direction. Here is the question to understand my flowchart: Above is the link to my flowchart. Consider N students receiving the marks …

Software Development algorithm c++
Member Avatar for tedroger
0
86
Member Avatar for deftech69

I have a question about handling binary files. I am trying to create a method called read in a user defined class called Record that will handle the data from the file. Each record has 84bytes and the first 20bytes is a String, and the rest, 64bytes is for 16 …

Software Development java
Member Avatar for ~s.o.s~
0
145
Member Avatar for haseeb1431

i have three integers per line in a text file but when i read a file it prints four integers Code: [code] #include<iostream.h> #include<conio.h> #include<fstream.h> void main() { int clas; ifstream inf; inf.open("kash.txt"); do { inf>>clas; cout<<clas; } while(!inf.eof()); } [/code] here is the file kash.txt (no enter after the …

Software Development c++ file-system
Member Avatar for vmanes
0
153
Member Avatar for thehivetyrant

Hi there, using TKinter Is it possible to change a buttons text after you've clicked it? So if a button has text of "hi" and when clicked has text of "Goodbye"? [icode] button_switch = True def click(): global button_switch if button_switch: button_switch = False else: button_switch = True [/icode] This …

Software Development python tkinter
Member Avatar for thehivetyrant
0
12K
Member Avatar for jaybstory

Hello, I am new to perl and I would like to parse a csv file in perl. The current code I have opens a file and prints new output to the terminal. I'm wondering how to write to print this information into the file instead of to the terminal. I …

Software Development perl
Member Avatar for jaybstory
0
103
Member Avatar for Ghost

Hi, I was wondering if there was a way to compare two images for similarity (i.e. checking to see if signature is same as signature on a credit card). Thankx in advanced. -- C++

Software Development java
Member Avatar for JavaHelper
0
2K
Member Avatar for rkulp

This function is suppose to randomly chose 2 out of 16 dice, swap their positions, and then chose what side of the dice is facing up. The problem is, when I run the function (I loop it 250 times). It only changes a few dice and the board looks close …

Software Development c++
Member Avatar for hag++
0
247
Member Avatar for trevorthecat

Hi, I have to create a program that takes 20 random numbers between 0 and 100 and sorts them in order from smallest to largest. Then, I have to used File I/O to output the list into a .txt file.My code is compiling, and I'm getting the random numbers, but …

Software Development c++
Member Avatar for WaltP
0
130
Member Avatar for Ap0ca1ypse

Hello all, I am creating a project for myself to practice Database connectivity, updating, deleting and adding items. I am having an issue updating one of the tables i have added, within a table there is a column called Today's Date which will contain the date the last time the …

Software Development dataset open-source vb.net
Member Avatar for Ap0ca1ypse
0
127
Member Avatar for Avner .H.

Hello everyone! I want to use bash from python, however the os.system([I]command[/I]) seems to act only on one command at a time. I want to use complete commands, also containing control flow statements, like If and While, and to call them from python. something like this code in bash: T1="foo" …

Software Development python shell-scripting
Member Avatar for sneekula
0
862
Member Avatar for Grovespaz

Hi all, a friend told me to take a look at this board whenever I got in trouble coding. At the moment I'm studying a game, disassembling it, mapping out parts of the scripting engine, etc. I have a proxy dll which I use to hook certain functions (d3d8.dll), and …

Software Development c++
Member Avatar for Grovespaz
0
69
Member Avatar for arva

Hey, I have a big problem. I want to do a program which will get a part of the screen of a program. After that It will show this small rectangle in Image component in BCB. But the problem is, it has to refresh it at least 10 times in …

Software Development c++ image
Member Avatar for arva
0
188
Member Avatar for NatalyC

Hello everyone I have a problem using a "search" statement in mysql, using c#, here is my code: [CODE] private void btnBuscar_Click(object sender, EventArgs e) { SearchBook(txtBuscar.Text); } private void SearchBook(string bookID) { String connStr = "Server=localhost; Port=3306; Database=biblioteca;Uid=root;Pwd= -----;"; DataTable dt = new DataTable(); const string query = "SELECT …

Software Development c# mysql seo sql
Member Avatar for NatalyC
0
193
Member Avatar for Adami

I wrote an Ansi C# code that finds the smallest number in a several unknown function calls. You can see the code, it is very clear. just need help with how to make the program to not ignore always the first number in the list of each argument list... and …

Software Development c
Member Avatar for Adami
0
121
Member Avatar for jonnybgood

Hi, I need your help. I'm searching for very tough C++ tests over the net. Can you send me links of such a tests. Thank you!!!

Software Development c c# c++
Member Avatar for Narue
0
118
Member Avatar for Excizted

Hello. I'm needing to store the IP adress as a variable in my application. I was then wondering, what the most efficient way of doing this would be? I would simply make 4 integers, and then in a setter function, read four arguments, and pass them into those four integers, …

Software Development c++
Member Avatar for Excizted
0
207
Member Avatar for gamerchick

Hi, i have to create a algorithm called find2D, to find an element x in an n × n array A. The find2D function iterates over the rows of A, and it calls the algorithm findArray shown below, on each one, until x is found or it has searched all …

Software Development algorithm c++
Member Avatar for abdelhakeem
0
129
Member Avatar for sehsa6

Hey frenzz I wanna make a Web content filter as my project. I have been looking for some help from past one month. I want ur help in making my project. Please help me explaining about its implementation or provide me with some links If u can. Any kind of …

Software Development c++
Member Avatar for sehsa6
0
248
Member Avatar for Lukezzz

I wonder how the try, catch, finally function works. I know how try and catch works. What I wonder is if the try block is successful then I know that the catch block doesn´t execute. Is it true that the finally block doesn´t execute either ? [code] try { } …

Software Development c++
Member Avatar for Lukezzz
0
133
Member Avatar for Draculaboy1014

I have to do this simple project: (a) A new project named LetterCountExample (b) A main class for the project named the same of the project. (c) A class called LetterCounter, with the following members: i. A eld of type char named letter. ii. A method of return type int, …

Software Development java
Member Avatar for tux4life
0
118
Member Avatar for chaienbungbu

As I see in some code having something like "[b]ClassName[u]&[/u][/b]". For example: [code] // this demo // check if a parameter passed to a member function is the object itself #include <iostream> using namespace std; class CDummy { public : int isitme ([b]CDummy[u]&[/u] param[/b]); }; int CDummy :: isitme ([b]CDummy[u]&[/u] …

Software Development c++
Member Avatar for jbennet
0
228
Member Avatar for Gonbe

Hello Daniweb, I'm trying to create a very simple shell for practicing purposes, but i'm a little bit puzzeled about the usage of execve, the function i use to execute a file. The code fragment underneath shows my usage: [CODE="C"] childPID = vfork(); if (childPID == 0) { execve(input.process, input.parameters, …

Software Development c
Member Avatar for gerard4143
0
273
Member Avatar for Phil++

Hey, I'm to work on GUI interfaces with C++ but I have loads of classes that I want to use, will I have to re-code the whole classes or can I still use them? + Are they hard to implement and use? Thanks

Software Development c++ gui
Member Avatar for Ancient Dragon
0
96
Member Avatar for makan007

I would like to know how can the swapping function be implemented using pointers, void swap (int*, int*) [CODE] //function prototypes void swap(int& a, int& b); //function (passing by ref) void swap(int& a, int& b) { int t = a; a = b; b = t; }[/CODE] Is this correct? …

Software Development c++
Member Avatar for problemkid
0
468
Member Avatar for nathanurag

hi is there any way by which we can write a program that displays its own source code???????:?::-/

Software Development c
Member Avatar for Ancient Dragon
0
152
Member Avatar for malloc84

Hello. I am still a beginner in C# and FileWriting is my new learning step. I created a project. Among other complicated things It needs to do the following: 1. Open EXE file 2. Click a button 3. Write&Save EXE information to a TXT file Explanation: There is a program …

Software Development file-system
Member Avatar for malloc84
0
110
Member Avatar for jogendar

i have used the following code to save the text in a textpane into a file [code] final RTFEditorKit kit = new RTFEditorKit(); jta.setEditorKit(kit); jfr.setTitle(fname.getName()); OutputStream out = new FileOutputStream(fname); kit.write(out,doc,0,doc.getLength()); out.close(); [/code] where jfr is the main frame,jta is the textpane,fname is the filename given by the user,doc is …

Software Development java
Member Avatar for jogendar
0
74
Member Avatar for eikal

hi, this is a program where you type a name of a class and it gives a brief description, what i want to do is after it gives the description of a class it goes back to the beginning of the script and asks you to enter another one. How …

Software Development java
Member Avatar for verruckt24
0
241
Member Avatar for GregPeters

Hi all. I have another problem. Basically I have a project where I need to create a number of folders in one go. This is the code I have: [CODE] program create_folders; uses crt, sysutils var value, name : string; i : integer; begin for i := 1 to 10 …

Software Development pascal
Member Avatar for finalist
0
196
Member Avatar for jemz

hello please help me on this i have txtaddress.text . it can accept number only in the beggining but not in the last i dont know how to trap in the last ...and also it will not accept special character specially the period sign..example.... this is okey...23street complexsub division example …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
78
Member Avatar for Nubie2001

Hello all together first of all sry for my bad english Well i got a problem with some of my application. First of all i had to write an application which can drag rooms from a source window to 4 destination windows. That works fine . But if i drag …

Software Development open-source os-x python
Member Avatar for Nubie2001
0
110
Member Avatar for Namrata.Bibodi

In which Java's library is binary search tree found ?

Software Development java
Member Avatar for Andreas Hollman
0
71
Member Avatar for Consus

so this is my first homework ever in Java so heres what I need to do: 1)a project named LetterCounterExample(done) 2)a main class for the project of the same name as the project (done) 3)a class called LetterCounter (done) with the following members: i. field of type char named letter …

Software Development java
Member Avatar for javaAddict
0
116
Member Avatar for makan007

'a' was not declared in this scope. I can't spot the error. Pls advise. [CODE] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; const int MAX = 10; void constructArray_2 (int*, int); int main () { srand (time (NULL)); constructArray_2 (a, MAX); } void constructArray_2 (int *a, int size) …

Software Development c++
Member Avatar for makan007
0
238
Member Avatar for zakir123

i want programme in c++ a car stand 3hours in 2$ then another car stand 24hours in 10$

Software Development c c# c++
Member Avatar for adcodingmaster
0
133
Member Avatar for problemkid

Hi I am a beginner in C++ programming. I am required to use the power function for one of my programs and keep getting the error message. Below is my program [CODE] 1 #include <iostream> 2 #include <cmath> 3 using namespace std; 4 5 int main(){ 6 7 //Declare and …

Software Development c++
Member Avatar for adcodingmaster
0
142
Member Avatar for tqmd1

Dear Experts DataGridView has 3 columns as Sno----name----marks While entering data, if sno column is empty and user press Enter or Tab then Focus must go to me.textbox1 Please help

Software Development vb.net
Member Avatar for kvprajapati
0
906
Member Avatar for cascade3891

Hello Python community, I have a basic question about the wx.DirDialog method/event handler system and how it works. I had a problem today, but solved it. Basically what I'm trying to do is have a frame, then use event handler wx.DirDialog to open up another dialogue where I can choose …

Software Development python
Member Avatar for Stefano Mtangoo
0
437

The End.