5,676 Posted Topics

Member Avatar for phreaqhopp

[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.

Member Avatar for WaltP
0
143
Member Avatar for Dani

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 …

Member Avatar for iamthwee
0
547
Member Avatar for nirmala.s

[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]

Member Avatar for John A
0
376
Member Avatar for bala24

[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 …

Member Avatar for ~s.o.s~
0
100
Member Avatar for matrimforever

[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]; …

Member Avatar for bala24
0
208
Member Avatar for Francis Waldron

I don't see a question, nor code. Please read the post at the top of the forum about homework...

Member Avatar for WaltP
0
115
Member Avatar for davvid

[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 …

Member Avatar for davvid
0
84
Member Avatar for TylerSBreton

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 …

Member Avatar for mathematician
0
185
Member Avatar for Ancient Dragon
Member Avatar for jbennet

Yeah, code tags are missing making any indentation you have for readability nonexistant -- therefore readability is very low.

Member Avatar for jbennet
0
127
Member Avatar for ivy_sls06

[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] …

Member Avatar for WaltP
0
88
Member Avatar for The Dude

[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 …

Member Avatar for WaltP
0
130
Member Avatar for John A

[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... :)

Member Avatar for WaltP
0
209
Member Avatar for ReDeViL

[QUOTE=iamthwee;277706]Time library?[/QUOTE] Time Library. Look into [INLINECODE]time()[/INLINECODE], [INLINECODE]asctime()[/INLINECODE], and related functions.

Member Avatar for dwks
0
140
Member Avatar for d1e9v85

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...

Member Avatar for WaltP
0
139
Member Avatar for mattyd

From [B]Tom Lehrer[/B]'s [I]Bright College Days[/I]: [quote]Sliding down the razor blade of life[/quote] Ouch! :eek:

Member Avatar for mattyd
0
249
Member Avatar for aznballerlee

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].

Member Avatar for John A
0
147
Member Avatar for adkozak
Member Avatar for The Dude

[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 …

Member Avatar for blud
0
370
Member Avatar for dmmckelv

[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 …

Member Avatar for ~s.o.s~
0
261
Member Avatar for snedan

[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 …

Member Avatar for WaltP
0
91
Member Avatar for Acquire

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 …

Member Avatar for WaltP
0
108
Member Avatar for Acquire

[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 …

Member Avatar for majicbeans
0
241
Member Avatar for majicbeans

[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 …

Member Avatar for majicbeans
0
129
Member Avatar for dmmckelv

The question I have is with your switch statement. What is the difference between all the cases? Could you describe the differences between each?

Member Avatar for johnpeter1989
0
102
Member Avatar for boujibabe

[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 …

Member Avatar for boujibabe
0
331
Member Avatar for rbinc

Try it, [B]JRM[/B], enter [I]12A[/I] and see what happens. Be sure you put your [I]cin[/I] in a loop.

Member Avatar for Lerner
0
221
Member Avatar for Gunner54

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 …

Member Avatar for WaltP
0
168
Member Avatar for centos123

[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 …

Member Avatar for centos123
0
197
Member Avatar for aznballerlee

[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 …

Member Avatar for ~s.o.s~
0
119
Member Avatar for Kevin101491

[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.

Member Avatar for WaltP
0
35
Member Avatar for mcosciel
Member Avatar for nasduck

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 …

Member Avatar for iamthwee
0
97
Member Avatar for gemacjr

[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 …

Member Avatar for may4life
0
78
Member Avatar for kie

[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. …

Member Avatar for WaltP
0
258
Member Avatar for Sin-da-cat

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 …

Member Avatar for Sin-da-cat
0
212
Member Avatar for mattyd

[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 …

Member Avatar for mattyd
0
135
Member Avatar for teddy13

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 …

Member Avatar for may4life
0
84
Member Avatar for Troy

[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]...

Member Avatar for WaltP
0
541
Member Avatar for Roxsy3392

[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 -> …

Member Avatar for Nick Evan
0
328
Member Avatar for mcweezle

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. …

Member Avatar for WaltP
0
196
Member Avatar for jetyan

With your desktop active hit F3. This will allow you to search your system for a file.

Member Avatar for jetyan
0
139
Member Avatar for Chaky

I can't find the spot that shows comments for reputation. Where did it go?

Member Avatar for iamthwee
1
482
Member Avatar for CurtisBridges

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 …

Member Avatar for CurtisBridges
0
103
Member Avatar for Flightless

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

Member Avatar for GreenDay2001
0
320
Member Avatar for dev.cplusplus

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 …

Member Avatar for jbennet
0
87
Member Avatar for kumarangopi

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 …

Member Avatar for WaltP
0
291
Member Avatar for mattyd

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 …

Member Avatar for nanodano
0
238
Member Avatar for octopus1991

[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 …

Member Avatar for QVeen72
0
122
Member Avatar for taruj83

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.

Member Avatar for iamthwee
0
125

The End.