5,676 Posted Topics
Re: [QUOTE=valtikz;891535]thanks arkM, but what do you mean not defined? [/QUOTE] Where is the method [ICODE]SipDialogPublish()[/ICODE] defined in the class? You are calling it, so what is it supposed to do? [QUOTE=valtikz;891535]can I know how to define it?[/QUOTE] That depends on what it's supposed to do and what parameters are necessary … | |
Re: [QUOTE=jephthah;888250] I am always ready to answer your question, but not until you get a modern compiler that isnt gimped[/quote] Then stop replying posts you have no intention of of adding [B]constructive[/B] responses to! [B]Adatapost[/B], you do not have to use a [B]jephthah[/B]-approved compiler. | |
Re: In other words, test text/binary on your system and write your code accordingly. And that test is so much faster than posting on a forum and waiting 4 days, 3.5 hours for the only really definitive answer you've received so far. :icon_wink: | |
Re: [QUOTE=star34;889065] what else am I missing, thanks for the help[/QUOTE] Code tags --AGAIN!!!! It seems that with the warning above, and the information posted all over this site about CODE tags, like 1) in [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies]the Rules[/url] you were asked to read when you registered 2) in the text at the … | |
Re: Load 19 random values. If a 0 is generated during these 19 values, remember that fact. For the 20th value, if a 0 was not generated, load a 0, otherwise get one more random number. | |
Re: Unfortunately, most new users leave out the most important information and just say "help me" leaving us to guess what they need help in. At least the way it is currently, we have a minor clue. | |
Re: Or just give them the [b].h[/b] and [B].obj[/B] files. Others can link those in with their code. [B].obj[/B]s are the output from the compiler and used as input to the linker. | |
Re: Although not a solution for Daniweb, there's a program called [url=indev.no]Flashmute[/url] that works quite well. It will filter all sounds from the internet while allowing local sounds to the speaker. This program works everywhere. Now as I surf, I don't get talking ads, background music, and automatic videos interrupting the … | |
Re: Loop through the buffer byte by byte and send each byte to a function that outputs the binary value of the parameter. Look up boolean operators & | << >> for this function. | |
Re: [quote=antonybls;273217]Since you declared the variables as integers, you could convert the string values to integer by using cInt function. try like this num1 = cint(txt1.text) num2 = cint(txt2.text) num3 = cint(txt3.text) num4 = cint(txt4.text) avg = cint(cint(num1 + num2 + num3 + num4) / 4) this should work without any … | |
Re: Consider this loop: [code=c] for (i = 0; i < 5000; i++) { sprintf(ifile, "file%04d.dat", i); sprintf(ofile, "output%04d.dat", i); //process the files } [/code] Look up the pieces of this code to understand what is happening. | |
Re: Also, your [INLINECODE]coinToss()[/INLINECODE] function needs to be formatted properly. It'll only take you 30 seconds... ;) | |
Re: [QUOTE=Sune;870009]... what the difference is between [I]condition[/I] and [I]expression[/I] in these statements? [/QUOTE] None. The [I]condition[/I] simply evaluates to a TRUE/FALSE. [I]Expression[/I] is a statement that will evaluate to a TRUE/FALSE. In the context of these loop definitions, they are interchangeable, and probably 'conditional expression' is more accurate. [edit]Wow, a … | |
Re: Are you building the programs as Windows application or console app? I've had no trouble with BGI on XP when built for console. | |
Re: Read my post again, that is NOT what I told you to do. I'll bet this statement was all Greek to him:- implements a thin wrapper, say myRunner() round say CreateProcess() What he means is call CreateProcess() to start the program you want to run without the console window. | |
Re: Why are you guys still trying to help someone who posted [QUOTE=gdreisen;864938]Beautiful. Thank you so much![/QUOTE] He got his answer! ![]() | |
Re: Saving keystrokes is the worst reason. That way you get statements like [ICODE]x1=-b+(sqrt((b*b)-(4*a*c))/(2*a));[/ICODE] rather than [ICODE]x1 = -b + ( sqrt( (b*b) - (4*a*c) ) / (2*a) );[/ICODE] and are prone to make parenthetical mistakes at the very least and write other indecipherable code. AAMOF I find it faster to … | |
Re: Actually, FC did not bump a really old thead. [B]NetworkExpert[/B] did. He just tried to help out what he saw was a [I]current[/I] thread. | |
Re: [QUOTE=dev565;870001]I'm developing in c++ but yet need to use FILE * from c [/quote] Why? [QUOTE=dev565;870001] 1) What if my line is over 1024 chars????????? how should I fix my code to handle that situstion[/quote] If there is no '\n' at the end of the buffer you only got part … | |
Re: We are not a homework writing service. Read the rules and start over. | |
Re: [QUOTE=ArkM;869729]>i hope i did tag right on code posted. Alas, correct tags are: [noparse][code=cplusplus] source [/code][/noparse][/QUOTE] But you did get the CODE tags correct. The [ICODE]cplusplus[/ICODE] part [I]is[/I] optional. Also, the [icode]PREVIEW[/icode] button would show you if the tags are correct. | |
Re: [QUOTE=losh177;869592]How would i clear the buffer? Can i use the call cin.ignore('/n')? [/QUOTE] Did you try it? What happened? | |
| |
Re: [QUOTE=dmachop;867708]Yes, I admit that there are a lot of loopholes in the program given but it solves the purpose for alphaeis............[/QUOTE] But what we like to do here is [I]help[/I] them solve their own problems, not hand them a solution. After all, [I]you[/I] don't get their grade. Therefore, it doesn't … | |
Re: [QUOTE=gretty;868468]Thanks for the advice so far but it stll doesn't seem to be working. I have tried the code in the previous post & that doesn't work. --- This code here I made should terminate whenever it finds a number in Array A that does not occur in Array B … | |
Re: Is there something about CODE tags you don't understand? If not, you can either ask or read those words on the back of the input box for information. The project states "[I]Test it with a main program that takes as input an integer count followed by that many values[/I]." Where … | |
Re: [QUOTE=Sky Diploma;865962]So any improvements ?[/QUOTE] Yes. Stop using TABs to indent. Set your editor to use 4 SPACEs when the TAB key is pressed. As for exiting, you can exit when ENTER is pressed all by itself. And about Ctrl+C, look it up. | |
Re: [QUOTE=ulisse0;863857]I just double-click on the executable or I run it from VS if I have just modified some line..[/QUOTE] Those two ways will generally give different results. Give us more data and we can give you a complete answer. | |
Re: [QUOTE=jephthah;863288]i'm just wondering, "where's the love?"[/QUOTE] Good question. And from the person that posted: [list] [*]i thought you were leaving anyhow? dont let the door hit you in the ass on the way out. [*]well, hell, i dont care really. [*]...but i dont know WTF the OP is saying. [*]well, … | |
Re: You didn't tell us the most important thing about your program. What is happening to make you think it's weird? | |
Re: [QUOTE=Xlphos;854267]Hi I have just been looking at the tutorial section and noticed their is very little there. [/QUOTE] [RANT] What is it about [I]there/their/they're[/I] that no one seems to know that the words are not interchangeable! Are the definitions that ambiguous? [/RANT] :icon_rolleyes: | |
For some reason on my new laptop I can't seem to turn off that annoying BEEP when I change the speaker volume. I got everything else turned off but this beep seems to be bypassing the "Sounds and Audio Devices" properties. Any ideas? | |
Re: [B]Problem 1:[/B][code] Add 14 to days. If days > days-per-month set days to days - days-per-month increment month [/code] This is the idea, which isn't complete. You can flesh it out. [B]Problem 2:[/B] First output the number of elements in the structure (active people/books). 1 integer. Then set up a … | |
Re: Narue, Because [icode]fgets()[/icode] reads a line up to the \n and loads everything up to the RETURN, isn't it simply a matter of testing the last character in the buffer with \n and if it isn't, they entered more than the requested data? Simple use of [icode]strlen()[/icode] and a test? | |
Re: [url=http://bdn.borland.com/article/21751]Turbo 1.01[/url] [url=http://bdn.borland.com/article/20841]Turbo 2.01[/url] | |
Re: After reading in the password call functions to test each individual rule. Don't try to test all things in one function, or ghod forbid right after the read. ![]() | |
Re: [QUOTE=Sam-J;863235]... but the problem is that when my data get bigger(i.e. more than 100 words) my program does a partial sorting on'em and it does not print the file in the end at all.. and i think it gets into an infinite loop cuz it does not end successfully [/quote] … | |
Re: [QUOTE=siddhant3s;863624]The God has sent me to say "C++ compiler is not a pocket calculator."[/QUOTE] Then why did he package the computer with the program [B]calc.exe[/B]? It seems he [I]does[/I] -- if you have a pocket big enough! :icon_twisted: | |
Re: [QUOTE=siddhant3s;864093]You must have missed the 'OR' part of the post #3. [/QUOTE] You must have missed the smiley to show you were kidding. Reread post #3 through the eyes of an extremely new (albeit lazy) student. What's it say to you [I]then[/I]? | |
| |
Re: [QUOTE=bunnyboy;863083]For what I know, those to are equal...? char *a = "aeiou"; char a[] = "aeiou"; [/QUOTE] In general terms, yes, they are [I]equivalent[/I]. [ICODE]*a[/ICODE] is a pointer that points to the string [ICODE]a[][/ICODE] is an array, and [ICODE]a[/ICODE] itself is the address to the string -- effectively a pointer. … | |
Re: The closest thing I can figure out is 1) you need to use consitant indenting so someone can actually follow the code easier 2) [I]quit[/I] is never set to [B]1[/B] followed by [INLINECODE]break[/INLINECODE]ing out of the inner endless loop. | |
![]() | Re: [QUOTE=siddhant3s;859843]>>Dear NathanOliver, your code is working perfectly after changing.............. It may be working on your implementation but the code is in a state of undefined behavior.[/quote] How so? [QUOTE=siddhant3s;859843]>>Edit:: Some additional information on if (test != input) as 'input' is a double >>and 'test' is an integer, 'test' will be … |
Re: You need to define some arrays first. Then we might be able to help you. You also need to [url=http://www.gidnetwork.com/b-38.html]format your code[/url] so we can follow the code. Don't instructors teach proper formatting techniques these days? | |
Re: [QUOTE=VernonDozier;860206]If you are asking about ways you can improve it, if you look at [URL="http://www.cplusplus.com/reference/clibrary/cstdlib/itoa/"]itoa[/URL], it needs to be able to handle negative numbers and it needs to be able to handle different bases: [code] char * itoa ( int value, char * str, [COLOR="Red"]int base[/COLOR] );[/code][/QUOTE] Agree with negative, … | |
Re: Can't read the darn thing! Did you bother to read any of the requested information posted all over this site about CODE tags, like 1) in [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies]the Rules[/url] you were asked to read when you registered 2) in the text at the top of this forum 3) in the announcement … | |
Re: [QUOTE=tux4life;859047]If you really want to use a loop do something like this: [/QUOTE] Your first and second examples are just as broken as most other loops using [ICODE].eof()[/ICODE]. But if you combine the two: [code] string x; infile>>x; do { /* your other instructions here */ infile>>x; } while (!infile.eof() … |
The End.