199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for BestJewSinceJC

After compiling the code found [URL="http://beej.us/guide/bgnet/output/html/multipage/clientserver.html#simpleclient"]here[/URL], I immediately got a number of errors. (Unfortunately, Beej is the starting point my instructor suggested to implement our FTP client's "minimal" commands, but that's another story). Anyway, I got rid of a few of them, then ran into this: [CODE]client.c:32 - error: storage …

Member Avatar for BestJewSinceJC
0
188
Member Avatar for alien2006.happy

I have a algorithm problem to ask: There are N persons, and each of them knows one distinct gossip message. The two of them just make a phone call, so they could share messages they know. Then at least how many phone calls do they need make , so that …

Member Avatar for alien2006.happy
0
89
Member Avatar for GPXtC02

what i have so far - [code]void do_handleclient(int connsock,struct sockaddr_in *client_addr) { // Communicating with our new friend. string buffer, execmd, filename; int b, n, nstr, str; char buf[25000]; char *cbuff=(char*)buf.c_str(); while((n=recv(connsock,buf,25000-1,0))!=0) //receiving request. buffer[n]=0; while(buffer[nstr]!=' ') { //pulling GET or POST command out of request. execmd[nstr]=buffer[nstr]; nstr++; } while(buffer[nstr]!='\r' …

Member Avatar for dkalita
0
118
Member Avatar for Goalatio

Hey all, I've been working on this little program in NASM 16 bit assembly, under a windows operating system. It works, I just have a problem. If you don't pass it any arguments, it fails to see that there is an end of line character. You pass arguments as.. INKEY …

Member Avatar for Goalatio
0
1K
Member Avatar for avirag

Hi ,I have made an application in which I am matching a string entered in textbox with the Text property of the forms.In that , I am matching 0.75% characters of strings and the text of the result forms are displayed in listview. But the problem is that the string …

Member Avatar for abc16
0
244
Member Avatar for mymyzzz

CSCI 1170: Open Lab Assignment #5 Program due: Thursday, Oct 29, 2009 at midnight as the day turns to Friday Oct 30, 2009. Professor: c8296800 code: ola5 Purpose of this assignment: The purpose of this assignment is to understand the while loop programming construct. This assignment will let you 1. …

Member Avatar for Clinton Portis
0
163
Member Avatar for cjwilkins

Help! I think that this should be easy but I have not been able to find the correct VBA code to get the Form to print only [U]the current record [/U]not all 1651 records. I have a command button (Print) and walked through the wizard correctly to print "only the …

Member Avatar for semky
0
151
Member Avatar for brando|away

yeah i can't find this on google but i understand how to output data using 16bit (with int 21h/ah=02) say im doing some math calculations, how can i output something in a 32bit register (eax, edx...)?

Member Avatar for NotNull
0
143
Member Avatar for RobertMW

I am trying to write a program that will input a bunch of names into an array of structures under the .name heading. Currently I have what is below to get it to work. But it's not very flexible. You have to input [U]both[/U] a first and a last name …

Member Avatar for Aia
0
120
Member Avatar for lotrsimp12345

Error 1 error LNK2019: unresolved external symbol "public: __thiscall vector::my_vector<int>::~my_vector<int>(void)" (??1?$my_vector@H@vector@@QAE@XZ) referenced in function _main test.obj Error 2 error LNK2019: unresolved external symbol "public: __thiscall vector::my_vector<int>::my_vector<int>(void)" (??0?$my_vector@H@vector@@QAE@XZ) referenced in function _main test.obj Error 3 fatal error LNK1120: 2 unresolved externals C:\Users\...\Documents\Visual Studio 2008\Projects\Iterator and Generic Vector Container\Debug\Iterator and Generic Vector …

Member Avatar for Dave Sinkula
0
144
Member Avatar for dylank

Hi, I have posted in a previous thread about this problem, but this seems not related enough to post in it. My problem is with this code: [code]//This is VERY simple, will just graph a y=mx+b type formula into 2 arrays. #include <iostream> using namespace std; int main() { //Counters …

Member Avatar for Clinton Portis
0
118
Member Avatar for mymyzzz

i got to do this for my class and i am a total noob! i don't know what to do from this point on. first, i need to use fstream to do this. 3 Tracy 80 91 67 Dana 0 66 44 Scott 50 41 64 Jamie 82 90 87 …

Member Avatar for Clinton Portis
0
290
Member Avatar for runtogetdone

Hi, I do not understand how the x86 processor chooses whether to not to jump for a conditional jump. My professor told me that conditional jumps are based on the OF, ZF, SF, and CF flags, but I do not understand which flags are checked under a given jump instruction... …

Member Avatar for runtogetdone
0
115
Member Avatar for johndoe444

Why is this regular expression (pat) not working? According to documentation, scan takes both string and regexp. [CODE]irb(main):001:0> pat = '\d+ (\w+) \(\d+\)' => "\\d+ (\\w+) \\(\\d+\\)" irb(main):002:0> string = 'dfasdf 1 up (2009) sdfasdf 2 walle (2008) adfasdf' => "dfasdf 1 up (2009) sdfasdf 2 walle (2008) adfasdf" irb(main):003:0> …

Member Avatar for johndoe444
0
118
Member Avatar for mymyzzz

i have this Tracy 80 91 67 and it is read from a file, making it fstream. i want the computer to reconize the numbers and add them and divide them, excluding the name. how do i do it? i can't use fuction so please make it easy.

Member Avatar for mrnutty
0
108
Member Avatar for sugumarclick

Hi All, I went Through the tutorial of zend framework. . I can able to validate the forms outside the index controller. But the same form which is called in index controller is not validating. I searched in web but none helped me. . I wanna know why the form …

Member Avatar for sugumarclick
0
443
Member Avatar for cjf90

Alright, I have an assignment in which I have to use ANSI Escape Sequences to colorize output on the console. So "\033[0;31m" colorizes text after it to be red for example. When I run the following: [code]cout << "\033[0;31mhello \033[0;37mworld";[/code] It works as it is supposed to, with "hello" printing …

Member Avatar for cjf90
0
121
Member Avatar for ajay_p5

Hi everyone Well I have been trying to install some modules like Bundle::DBI, DBD ::mysql and latex::Parser on my apple comp running mac OS X operating system. Every time I am trying to install a module I get an error like this : make had returned bad status, install seems …

Member Avatar for ajay_p5
0
156
Member Avatar for DaveyMoyes

Hi everyone, its been a while since i kast posted on here, Im trying to make the following menu open on the mouseover event, but im having loads of problems, Whilst the menu system works great on the click event, Copy and paste this code if you are looking fro …

Member Avatar for DaveyMoyes
0
259
Member Avatar for bunnyboy

So I would like to make a function which would add elements in container in sorted manner. Let's say we have a struct with two integer. I randomly initialize them and the add it to deque. And now what I want is that my function would add them in a …

Member Avatar for Clinton Portis
0
137
Member Avatar for bennettgirl99

So I have spent some time on this.... Write a program named TrafficLightcontroller Program should have a main method Construct three TrafficLight objects named:light1,light2,light3 Repeatedly print a menu that allows a user to type in responses and control the three lights. Menu: Select traffic light (0 to quit): 1 1)change …

Member Avatar for quuba
0
157
Member Avatar for nightninja12

i have a project for my programming class where we have to create a binary search tree and then when the program exits we need to save the tree to a text file and then restore it when the program opens. the basic functions were given to us, but the …

Member Avatar for Lerner
0
161
Member Avatar for Grn Xtrm

Hello friends. I am experiencing problems using the getline function in C. I want to use the function to print line numbers next to the text of each line of an input file. I have successfully read in the file and printed its contents line by line. But when I …

Member Avatar for Grn Xtrm
0
116
Member Avatar for reese27

I'm trying to figure out how to even start a program that removes suffixes like if i were to enter programs, are, not, limited, to, drawing, composition, it would output.... program are not limit to draw composi

Member Avatar for Lerner
0
115
Member Avatar for johndoe444

Hi, My knowledge of c++ is limited to basic syntax used in basic programming assignment while I have some years of software development experience (particularly web application) using java. I have not created any thing big in c++ ever. Now coming back to c++ at present, I am confused how …

Member Avatar for johndoe444
0
127
Member Avatar for lovely ari

hey every one happy Halloween ^__^ i'm trying to make a log in system but i have a small problem the problem is i want the user name to be not Sensitive to the capital letter and small letter e.x if the user name is ari and password is IT …

Member Avatar for sknake
0
93
Member Avatar for jmoran19

Hi, hope someone can help with an issue I'm having. Basically, I've got an input file containing, amongst other things, an int on each line representing a time stamp in the form of hhmmss. I needed to make a comparison from line to line to make sure that no more …

Member Avatar for jmoran19
0
102
Member Avatar for shane_tactical1

Hi guys, Can anyone tell me why this script no longer works in firefox? It works in the older version but since it got updated to version 3.5.3 it doesnt work anymore. It works fine in IE. [code] <script type="text/javascript"> function show_popup(s_file, msg, msg2, msg3, w, h) { var p=window.createPopup() …

Member Avatar for shane_tactical1
0
151
Member Avatar for lancevo3

Hey guys I am trying to print the contents of a map container I have. I seem to be getting a nasty error from the compiler which seems to come from the pos = wordList.begin() part. any suggestions? [code=cplusplus] map<string, unsigned>::iterator pos; for(pos = wordList.begin(); pos != wordList.end(); ++pos) { …

Member Avatar for twomers
0
509
Member Avatar for asong

have a java program that have evaluate thefunction,calculate the derivative and roots haw can i demonstrate numerical methods to solve the runge kutta method. This ma functiuon package Iterative.Newton; import java.io.*; import java.text.DecimalFormat; public class Newtonlastest { public static void main(String[] args) throws Exception{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); …

Member Avatar for quuba
0
677
Member Avatar for panagos

Just another way to check if a word is palindromic or not. In my country (Greece) if a word is palindromic we say it is "καρκινική" that's why i named the fuction in the code kark(). -What it does? If we would say that word has n letters,then this compares …

0
239
Member Avatar for joelol

[CODE]#include "stdafx.h" #include <iostream> #include <string> // say what standard-library names we use using std::cin; using std::cout; using std::endl; using std::string; int main() { // ask for the person's name cout << "What's your name? "; // read the name string name; cin >> name; // build the message that …

Member Avatar for wingless
0
88
Member Avatar for Star Frost

I know this might seem like a repeat of an already existent thread, however give me a moment to explain... What I have so far is a function that reads in a script file and stores each word in an array of custom objects. function: [CODE] void fileTester::readFile( string tempName …

Member Avatar for Star Frost
0
187
Member Avatar for thehivetyrant

Greetings Pythoneers. I've got this problem and the problem is thus: i have drawn a shape using [B]pygame.draw.circle[/B] i am finding it hard to make it move. i tried [icode]self.move_to(self.x-5,self.y)[/icode] and also [icode]self.forward(random.randint(0,10))[/icode] (Where forward is defined as a function as [icode]self.x,self.y + 10[/icode])<== I dont think i defined the …

Member Avatar for vegaseat
0
8K
Member Avatar for notuserfriendly

basically i am trying to search for similar strings in an array which is hardcoded into the script and compare them to and find the line they exist on the text file here is my code so far [CODE=perl] #!/usr/bin/perl %fruit=(banana=>1,apple=>2,orange=>5); $target = %fruit; open(INPUT, "<fruits.txt"); while (<INPUT>) { if …

Member Avatar for d5e5
0
247
Member Avatar for CFROG

I'm having a few problems with a function that I would like to call from within a while loop. Obviously I can't include the function itself within the loop but it seems to me that the function requires variables created by the loop so calling the function from within the …

Member Avatar for CFROG
0
99
Member Avatar for P3run

I just started to learn Python before a week or so and i found this example and rewrited it in Notepad++ (btw it was really painfull to figure out how to connect Notepad++ with python.exe but i like notepad++ more than Python GUI) and this program just wont work nor …

Member Avatar for snippsat
0
130
Member Avatar for neithan

I'm focusing now on this I/O thing, even writing a guide by looking some sources. I want to cover it all i can about stdin i/o and if it looks good in the end i'd love to share with you. But that's still OT. I can't get rid of the …

Member Avatar for neithan
0
137
Member Avatar for feoperro

Hi, I would just like to know if it's possible to ping a certain port from a jsp page. For example: If I had a Apache_Status.jsp on my machine and I wanted to ping it on another machine at: 123.456.78.90:8080 And I had a Glassfish_Status.jsp on my machine and I …

Member Avatar for feoperro
0
374
Member Avatar for shahab03

I have written a program that multiplies 2 decimals. My multiplication output is fine. However I would like to do multiplication by passing in two parameters via command line. So far e.g. lets say if I just put '3 4' in the command line without the quotes.. nothing happens... however …

Member Avatar for wildgoose
0
3K
Member Avatar for snapppy

Hi, was wondering if anyone could put this simple pseudo code into c++, i have not yet learned the code to do it and dont want to wait. If someone could post it i would appreiciate it a lot, thanks! BEGIN Enter # Clear Screen Count = 0; WHILE (Count …

Member Avatar for Grn Xtrm
0
207
Member Avatar for python.noob

Hello geeks, First of all thanks to the members of this forum for their active participation, contribution and willingness to help. Now i'm in need of your valuable suggestions for my project in python. 1) I want to have GUI interface in my project and now i'm using python 3.1.1. …

Member Avatar for vegaseat
0
139
Member Avatar for riahc3

Hey I have a file named filetext.txt with the text: One word Two words Three words Four words and the program should read this filetext.txt and output to another file called filecopied.txt this text: One Two Three Four I have this so far: [code] #include <assert.h> #include <complex.h> #include <ctype.h> …

Member Avatar for Tom Gunn
0
925
Member Avatar for opt!kal

Hi there, So im working on this assignment where the user is supposed to input a variety of UNIX commands and they must behave as if one typed it into the terminal. My current problem lies with when a user tries to redirect the inputted commands to some file. Currently …

Member Avatar for opt!kal
0
102
Member Avatar for cloisterham

I am trying to write a little program with a do while loop and if statements. I'm having trouble getting this to work the way I want. When I run the program, it produces two menus after making a selection. I would like it to produce one menu after making …

Member Avatar for Tom Gunn
0
553
Member Avatar for richard bach

hey i'm starting with a dbms project on commonwealth games . i want to use sql . can anyone please suggest me with what all i can include in my project??

Member Avatar for debasisdas
0
93
Member Avatar for Vandithar

Hi, I have strings like this: [code] $string="OWN - NLM STAT- Publisher DA - 20091005 AU - Gannon AM AU - Turner EC AU - Reid HM AU - Kinsella BT AU- XYZ AD - UCD School of Biomolecular and Biomedical Sciences"; [/code] I want to parse these tags and …

Member Avatar for eggmatters
0
151
Member Avatar for DaraPsy

Hello guys, I have a simple form with 2 input fields (name, age). On submit the values should be sent to the php file where I print them. The problem is that on submit the php file is not rendered - IE just shows me the php code, Mozilla doesn't …

Member Avatar for Froger93
0
180
Member Avatar for icon512

Hello all! I came here through Google searching for PHP load balancing... and got to this thread: [url]http://www.daniweb.com/forums/thread171839.html[/url] I am trying to do something similar, but what I'm trying to do is a one time, one day, quick and cheap load balancing solution using PHP. The idea is to use …

Member Avatar for Froger93
0
775
Member Avatar for whitestream6

This is my script, which is intended to show a different page depending on day of the week. [CODE]<html> <? error_reporting(E_ALL);?> <body> <? $i=$_GET['day']; switch ($i) { case 0: include("2.php"); break; case 1: include("3.php"); break; case 2: include("4.php"); break; case 7: include("5.php"); break; default: echo "page not found!!!!"; } ?> …

Member Avatar for pritaeas
0
210

The End.