needhelp Programming Software Development by Growl Hi, friends! I got a serious problems... Tomorrow I need to send this assignment to my professor. I tried a lot of hours but still no useful results.. :( You guys are my last hope :(! > There is an integer n. > Find numbers that: > *can be expressed in the form 2^k-1 (http://en.wikipedia.org/wiki/Mersenne_prime#… Re: needhelp Programming Software Development by NathanOliver So what is the problem you are having? If you want to generate all numbers less than n that equall 2^k-1 than you can do this for(int k = 0; k < (int)pow((double)2,k) - 1; k++ { // check if (int)pow((double)2,k) - 1 is prime } Re: needhelp Programming Software Development by Growl This is how it compile: > IF n=12 > PROGRAM PRINTS: > 1 > 2 > 3 > 5 > 7 > 11 > > IF n=7 > PROGRAM PRINTS: > 1 > 2 > 3 > 5 > 7 > > IF n= -1 [ IF cin numbers in interval (-∞; 0] ] > PROGRAM PRINTS: > " " [empty space] > > Ja n=1 > PROGRAM PRINTS: > 0 > 1 >… Re: needhelp Programming Software Development by NathanOliver Technicly 1 is not prime so all you need to do is in your prime function check to see if it was passed 1 and if it was just exit the function. Looping and bool call help, please!!! Programming Software Development by DMBoston …// function prototype void incorrectMessage(); // function prototype bool needHelp(int, int); // function prototype int main() //…} if ( count = 10 ) { cout << needHelp; } } // end while cout << "That… Re: Looping and bool call help, please!!! Programming Software Development by DMBoston [QUOTE=jackmaverick1;1778635]By "run" do you mean re-start the program, or loop through the program multiple times?[/QUOTE] I want to loop through the program 10 times then call the needhelp function at the bottom to get the results. Need Help with HTTP strings Programming Web Development by Vbsyntax … like this .... [url]http://www.reboot.com/donotemail.asp?email=NeedHelp@hotmail.com[/url] I need to figure out how to… grab email [email]NeedHelp@hotmail.com[/email] out of the HTTP string so that… Mail not send Programming Web Development by pranto157 … mail it shows bellow error---- Error sending e-mail. function needHelp() { if (confirm('Some data will be submitted to InterAKT. Do… Homework HELP!!urgent!! Programming Software Development by sds234 … problem and i am new to C++ so I really needhelp!! Consider the following file called "raw_points.txt". The… "Parse error: syntax error, unexpected $end in home/....................... Programming Web Development by azzahar … business page for you to go thru www.royalfatman.com/needhelp.html As far as I am concern, when I try… Huffman Code Comments, I need help with putting in the comments to this code,needhelp Programming Software Development by DylanWright [code=c++] #include<stdio.h> #include<conio.h> #include<alloc.h> #include"C:\windows\desktop\input.h" #define MAXBITS 32 #define MAXNODES 512 #define MAXSYMBS 256 int hmin(void); void hinsert(int,int); //First structure struct codetype{ int bits[MAXBITS]; int startpos; }; //second structure … Re: Huffman Code Comments, I need help with putting in the comments to this code,needhelp Programming Software Development by Salem So why didn't you put the comments in when you wrote it? Also, how come you missed all the hints to use [code][/code] tags when posting code. Re: Huffman Code Comments, I need help with putting in the comments to this code,needhelp Programming Software Development by DylanWright It is a group project on Huffman algorithm and we are suppose to go out and find the code. It is bonus points to put the comments in and I am a first year math major and got stuck in this class I find it interesting but lost most of the time I understand the algorithms and the sorts but not C++ Re: Huffman Code Comments, I need help with putting in the comments to this code,needhelp Programming Software Development by Ancient Dragon >>I am a moth major what is a [b]moth[/b] major? An Entomology major perhaps? >>and don't understand C++ programming language What you posted isn't c++. Its C, which is a different language. What are the prerequisits for the class you are now taking? Is one of them at least one semester of C or C++ languages? Any other … Re: Huffman Code Comments, I need help with putting in the comments to this code,needhelp Programming Software Development by Ancient Dragon I merged the two threads because they were the same question. Re: Huffman Code Comments, I need help with putting in the comments to this code,needhelp Programming Software Development by Salem How about you begin with commenting the bits you do understand, to the level you think you understand it. Sure I could add some comments, but you might still be in the dark. Re: The ^ < v Game Community Center Geeks' Lounge by ahihihi... ^master poster.. >[I]needhelp[/I] monster.. v loves scab collecting.. Re: Looping and bool call help, please!!! Programming Software Development by jackmaverick1 By "run" do you mean re-start the program, or loop through the program multiple times? Re: Need Help with HTTP strings Programming Web Development by agrothe With ASP, you want to use the QueryString Collection of the Request Object. [URL="http://www.w3schools.com/ASP/coll_querystring.asp"]http://www.w3schools.com/ASP/coll_querystring.asp[/URL] So, you would code something like this: [CODE] Dim email email = Request.QueryString("email") [/CODE] I would also suggest … Re: Mail not send Programming Web Development by webmaster.think HI x I also new to PHP but by friends said me that if we like to send mail using our server we want to get rights from our ISP.The same problem would occur to me. Re: Mail not send Programming Web Development by Mrtony instead of using localhost, use your ISP's smtp adress in php.ini Re: Mail not send Programming Web Development by dr4g The issue is definetley connecting to the mailserver. I agree trying a public SMTP server. One i know of is: smtp.blueyonder.co.uk (Port: 25. SSL: No) Let us know how u get on. Cheers Re: Homework HELP!!urgent!! Programming Software Development by ArkM Well, and what's your problem? May be better start from two wonderful ballades on this forum rules?.. [url]http://www.daniweb.com/forums/thread78223.html[/url] [url]http://www.daniweb.com/forums/announcement118-2.html[/url] Re: Homework HELP!!urgent!! Programming Software Development by sds234 What I need to know is do i have to open both the files in the program and what conditions i have to use in the while loop. Re: Homework HELP!!urgent!! Programming Software Development by mrboolf [QUOTE]Open the file "raw_points.txt" as an input filestream. Open the file "normalized_points.txt" as an output filestream. Read in the count of how many points there are from the input file. Write the count out to the output file (with an endl) and then repeat the following that many times[/QUOTE] 1) Yes you do 2) start … Re: Homework HELP!!urgent!! Programming Software Development by ArkM Answer#1: Look at the assignment. Of course, you must open file before use (read or/and write) it. There are two files in your assignment... Answer#2 - counter-question: where is that while loop? No loop - no condition... Apropos (about the original post): in my opinion, no ideas - no problems... Re: Homework HELP!!urgent!! Programming Software Development by iamthwee I still see no code from the OP. Code would be a nice start. Re: Homework HELP!!urgent!! Programming Software Development by Endersama lol, this person must be in my class. I hate to sound like an asshole, and honestly the reason i found this forum site was looking up code for this exact assignment, but the instructions that were given to us actually give us the code for what is being asked here. but im a nice person, so here is what i have for you. sorry if im breaking forum … Re: Homework HELP!!urgent!! Programming Software Development by StuXYZ This just doesn't work, your read the file into line one line at a time and each time overwrite the previous line before actually doing anything. Move the } below c++; down one line but still it doesn't do much. (other than actually print 1 lines 2 lines .... Normalize means divide a vector by a number such that the length of the … Re: "Parse error: syntax error, unexpected $end in home/....................... Programming Web Development by LastMitch **@azzahar** >"Parse error: syntax error, unexpected $end in /home/royalfat/public_html/mystore/storeadmin/inventory_edit.php on line 581" You got this code from a guy on **Youtube** and this person also has a website forum of his own that you can ask questions about his stuffs but instead you post this code on **Daniweb**? I just …