5,676 Posted Topics
Re: [QUOTE=phreaqhopp;281575]I appreciate you comments on the code I am posting below.... [/QUOTE]Does it do what you want it to do? What kind of comments are you expecting? And to prevent the :D's, use code tags. That will stop the :('s from happening. | |
Re: My personal preference: All the colors should be of a similar intensity. The switch from the keyword-yellow to function-underline/blue is too striking. To follow more closely what I've seen: [COLOR=Green]comments in green[/COLOR] [COLOR=RoyalBlue]Numbers, "Strings" and 'characters' in royal blue[/COLOR] [COLOR=purple][b]Keywords in bold purple [/b][/COLOR] All else is black C/C++ functions … ![]() | |
Re: [QUOTE=nirmala.s;281075]Joe, Cud u lemme knw whtz the difference between FPRINTF and FSPRINTF ???[/QUOTE] I'm finding it difficult to read your posts ithe all the made-up words you seem to like. Please read the [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies]FAQ[/url] section called [I]Keep It Clean[/I] | |
Re: [QUOTE=bala24;279969]Hi, I have this application in Graphics that has to print a report on a laser printer. Is there any way to do it.... The application has been designed in Turbo C++...[/QUOTE] Yes, output to [I]stdprn[/I]. [code] #include <stdio.h> int main() { fprintf(stdprn, "knvnovnsvn;lvns;lvn;lvnda;lvndsvnd\f"); return (0); } [/code] This worked … | |
Re: [QUOTE=matrimforever;277232]Not sure how to output using a loop? Can you show me please?[/QUOTE] Simple. Using your code, [color=blue]and formatting it correctly with proper indentation -- please learn this. As your programs grow, they will become unreadable without proper formatting[/color]: [code] const int SIZE = 100; int main() { char sentence[SIZE]; … | |
Re: I don't see a question, nor code. Please read the post at the top of the forum about homework... | |
Re: [QUOTE=davvid;280565]I wana make so many lines appear randomly (like heat beat rate) depend on the base line ..while I run the program . How can i make that works . pls give me some hints or code ,,[/QUOTE] Define what "[I]so many[/I]" means. Also "[I]depend on the base line[/I]". Not … | |
Re: I pretty much agree with [B]SOS[/B]. The act of passing a pointer seems to me to be a form of pass-by-reference since the [I]value[/I] is not passed but a [I]pointer[/I] that [I]references[/I] the value. Therefore pass-by-pointer is akin to pass-by-reference. And I would assume that rather than explaining all the … | |
Re: Yeah, code tags are missing making any indentation you have for readability nonexistant -- therefore readability is very low. | |
Re: [QUOTE=ivy_sls06;279149]good day to all!!!! can anyone help me with my project I dont really understand..... can anyone make a pseudocode for this problem..... the problem is: make a pseudocode that determine the biggest number.... pls.. reply.... i would really appreciate you if you can help me.... thnx...... luv yah!!!! friend!!!![/QUOTE] … | |
Re: [QUOTE=sharky_machine;278405]Besides this, I am quite happy with our system. I just see the need for vast improvements. There are scores (see, 100's of 1000's, if not more) of American people who go daily without their prescribed medicine, (the very medicine that just might cure their ills) because they cannot afford … | |
Re: [QUOTE=The Dude;279494]Well gotta must make things as easy for the staff as we can :) God bless![/QUOTE] Yeah, us mods are a lazy bunch of overworked.... Well, maybe not [I]all[/I] of us... :) | |
Re: [QUOTE=iamthwee;277706]Time library?[/QUOTE] Time Library. Look into [INLINECODE]time()[/INLINECODE], [INLINECODE]asctime()[/INLINECODE], and related functions. | |
Re: There are multiple threads in this forum to do what you are looking for. You might even find one in the "[I]similar threads[/I]" below... | |
Re: From [B]Tom Lehrer[/B]'s [I]Bright College Days[/I]: [quote]Sliding down the razor blade of life[/quote] Ouch! :eek: | |
Re: When you post a question, post details about what the problem is, not just "it don't work". [INLINECODE]*ptr + 1 = 20;[/INLINECODE] is not allowed. You can't have addition on the left the way you have it. Put parentheses around the terms [INLINECODE]*(ptr + 1) = 20;[/INLINECODE]. | |
Re: [QUOTE=~s.o.s~;276094]Same here, all in black and white. And what more, the dreams are hazy, cant see them very clearly.. :cheesy:[/QUOTE] Wear your glasses to bed then. :rolleyes: I've heard if you dream in color you're insane. Says a lot about the people here. If you only dream in black and … | |
![]() | Re: [QUOTE=dmmckelv;277878]warning C4996: 'strtok' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\string.h(164) : see declaration of 'strtok' Message: 'This function or variable may be unsafe. Consider using strtok_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'[/QUOTE] [B]Reinterpretation of this warning:[/B] [I]We at Microsoft know better than the standards … |
Re: [QUOTE=snedan;277838]so this program suppose to find number of primes (number that divides only by itself) in the given range. I know the problem is with my "for" statement.. i just cant find it :( Thank you[/quote] You're Welcome.... :D No wait... OK... First, here's the code (formatted properly) that contains … | |
Re: Your whole concept of arrays is missing some key ideas. Simply using the variable [I]invalid[/I] does not indicate invalid data. If [I]invalid[/I] = 2 and [I]valid[/I] = 2 then [i]player[valid].name[/i] is just [i]player[2].name[/i]. You might want to add an invalid key in your structure and keep track using [i]player[x].invalid[/i] And … | |
Re: [quote=Acquire;274083]:sad:[/quote] :mrgreen: don't bump posts. When someone that can help comes along, they will. :evil: [quote=Acquire;273882]I'm also having a problems with this section of my function. I am currently using a for loop, when it should be a while loop. The commented while loop there is what I'm trying to … | |
Re: [QUOTE=majicbeans;274915][CODE=c] #include<stdio.h> int main(void) { char letter; char *pletter; pletter = &letter; printf("%p", &letter; putchar('\t'); printf("%p", letter); putchar('\n'); puts("Understand?\nWhat is the right way? it is 4bytes different"); //*allows the value to be altered by the base adderess //&lets a datatype to value by its adderess from another datatype takes 2 … | |
![]() | Re: The question I have is with your switch statement. What is the difference between all the cases? Could you describe the differences between each? |
Re: [QUOTE=boujibabe;276740]I working on a program that summerizes text documents and I need a way to find the length of the longest and shortest lines in the file and display it in a log file. I've already done a character count and line count. [code] int main (void) { ... while … | |
Re: Try it, [B]JRM[/B], enter [I]12A[/I] and see what happens. Be sure you put your [I]cin[/I] in a loop. | |
Re: First you have this: [CODE]void WriteMem(DWORD MemOffset, DWORD DataPtr, DWORD dataLen) { ... } void EnableHack(BYTE* AddrToChange, BYTE* To, DWORD len); { for(DWORD i = 0; i < len; i++) WriteMem((DWORD)AddrToChange+i, (DWORD)To+i, 1); }[/CODE] and the recomendation was [QUOTE=Ancient Dragon;276652]>> void EnableHack(BYTE* AddrToChange, BYTE* To, DWORD len); { remove the … | |
Re: [QUOTE=centos123;276684]Hi[/quote]HI [QUOTE=centos123;276684]I have a text file which has 4 heading which will constitute the number of columns and based on values an array has to be populated. [/QUOTE] So you know there are only 4 headings, right? Do you know how many values there are? If only 9 you can … | |
Re: [QUOTE=aznballerlee;276383]Bump! Please help! My code is due very soon![/QUOTE] This is not a chat forum. Don't bump your posts. It's not necessary and we have lives outside the forums. Plus, your lack of planning is not an emergency for anyone but you ... sorry. We'll get to it when we … | |
Re: [QUOTE=Anonymusius;276788]You should at least ell what game your talking about. This is bound to make no sense to almost everyone.[/QUOTE] He did. Halo. | |
Re: You cannot compile FORTAN code with a C++ compiler...:rolleyes: | |
Re: Please format your code and use whitespace. It's practically unreadable in in't present form [code] #include "matrix.h" Matrix solve (const Matrix& A, const Matrix& B) { /* solve A x = B and return the answer. It is assumed that A can be factored without pivoting. The factors are not … ![]() | |
Re: [QUOTE=gemacjr;276290]Unable to correct this [code] [b]int[/b] main() [color=red]// manutd is correct[/color] { char string[20]; char *aString=string; function (aString); } void function(char *name) { cout<< "enter name"; cin >> name; [color=red]// name is already a pointer, remove *[/color] cout << name; } [/code][/QUOTE] And learn to format your code. It will … | |
Re: [QUOTE=iamthwee;276279][code] fgets(temp, 80, stdin); //get data input = strtod(temp, &endptr); [color=red] char *newline = strchr(temp, '\n'); /* search for newline character */ if ( newline != NULL ) { *newline = '\0'; /* overwrite trailing newline */ } [/color] [/code]This works if you type exit it would exit the loop. … | |
Re: This will load the hex values from smallest to largest: [code] make a character array ([I]hexval[/I]) about 10 characters long set whole array to spaces set [I]hexval[9][/I] to '\0' set [I]hexptr[/I] to 8 -- this will point into [I]hexval[/I] to load the hex chars. Read a line into an integer … | |
Re: [QUOTE=sharky_machine;275523]I considered the idea of converting all input to int (from float or char) but I have had little sucess with my research with this so far, converting an input value to int from any possible other type (float, char, double, etc.) Any advice, direction, or resources on this matter … | |
Re: Please learn to use [url=http://www.daniweb.com/techtalkforums/announcement8-3.html]Code Tags[/url]. Also learn to properly indent your code and use whitespace. It is unreadable in it's present form. Based on the information you gave about your code, that's all I've got. If you have a ploblem and need help, give us some details, including what … | |
Re: [QUOTE=~s.o.s~]Hmm...What have you been smoking lately Wolfie ?[/quote]So who's the one with the smoking avatar? :p [QUOTE=WolfPack;275149]Honestly I haven't got anything better to do in my freetime.[/QUOTE] Somebody needs a girlfriend... I can give you a discount on a slightly used [url=http://www.daniweb.com/techtalkforums/post274565-1.html]Girlfriend 1.0[/url]... | |
Re: [QUOTE=niek_e;274420]English This thread is a year old, why are you posting in it ? Dutch Dit onderwerp is een jaar oud, waarom reageer je hier op? ;)[/QUOTE] English: Because it is there! Piglatin: Ecausebay itway isway erethay! :p Oppish: Bopecopausope it is thoperope! :rolleyes: Oh, and Spanish -> English -> … | |
Re: Jeez, lot's of bad ideas here.... Read in all the numbers into an array ([b]ary[][/b]) first, do NOT store the -99. If you enter 5, 8, 6, 3, -99, your [b]count[/b] should be 4, not 5. Then set [b]lowval[/b] to your first element, [b]ary[0][/b] because it [I]could[/I] be the lowest. … | |
Re: With your desktop active hit F3. This will allow you to search your system for a file. | |
Re: I can't find the spot that shows comments for reputation. Where did it go? ![]() | |
Re: You REALLY REALLY need to format your code. Indenting is extremely important. [QUOTE=CurtisBridges;274993]At row 378 I have started search function, but I'm not sure where to go with it from here as far as setting up the recursive alg. part of the code [/QUOTE] First thing is read in what … | |
Re: I had Wife 1.0 [I]and[/I] Girlfriend 6.0 on my system. Everything was OK until they got loaded in memory at the same time. Ever since my system crashes and I have to keep upgrading my Attorney program -- I'm now on 75.4 ![]() | |
Re: Each byte is 8 bits. 8 bits can hold from the value 0 to 2^8th (2 to the 8th power) or 0-255. Therefore 4 bytes can hold up to 2^(4*8) or 2^32nd. That's 4,294,967,296. Now these are for [I]unsigned[/I] values. Normally, though, values are signed which means 1 bit is … | |
Re: I just remembered, there is a way to compile the BGI drivers into object code which then can be linked directly into your .EXE file. That's how I've done exactly what you're attempting. I forgot how to do it (it's been years) but if you have the manuals, check in … | |
Re: One more suggestion -- format your code properly and wayward braces will no longer be a problem. Don't indent 3 tabs then next line 1 tab, then 2 tabs. Your first brace should be far left and every line after indented 4 spaces. Each and every { indent 4 more … | |
Re: [QUOTE=octopus1991;274432]hey guys i need your help please [/quote]Duhhhh, we don't gots no intel'gint peeple here... [QUOTE=octopus1991;274432]really urgent[/quote]OTay, I get rite on it! After all, your need is more important than mine... [QUOTE=octopus1991;274432] can u give me visual basic codes for 1- a program that calculates the greatest common divisible(divisor) by … | |
Re: In your in[ut function, if you get one of the characters you want to ignore, just go back and input another character. It's just an addition to your already complex input loop. ![]() |
The End.