Posts
 
Reputation
Joined
Last Seen
Ranked #20
Strength to Increase Rep
+15
Strength to Decrease Rep
-3
85% Quality Score
Upvotes Received
374
Posts with Upvotes
286
Upvoting Members
99
Downvotes Received
50
Posts with Downvotes
43
Downvoting Members
25
245 Commented Posts
16 Endorsements
Ranked #90
Ranked #88
~612.41K People Reached
Favorite Tags

1,088 Posted Topics

Member Avatar for moderate_rock48

Thrusday, October 4, 1582 was followed by most Catholic countries by Friday, October 15. Pope Gregory XIII decided that it was the best way to correct the inaccuracies accumulated since Julius Caesar presented the Julian calendar. Ten days where struck from the calendar. I going to struck down more than …

Member Avatar for Dani
2
16K
Member Avatar for kacete
Member Avatar for theekshani
2
17K
Member Avatar for comwizz
Member Avatar for Smartfitness33
1
5K
Member Avatar for tracethepath

[code=c] /* void is not good*/ int main() { /* clrscr(); remove this */ int r, ones=0, zeroes=0; long int n; printf("Enter A Binary Number "); fflush( stdout ); /* use when you are not terminating a printf with a \n */ scanf("%ld", &n); /* n is a long integer, …

Member Avatar for Saba_6
0
6K
Member Avatar for pavankumar77

[QUOTE=pavankumar77;535217]how to add numbers with out using any arthematic operators in c[/QUOTE] I would be more concern in learning how to add numbers using the adding operator correctly.

Member Avatar for pritaeas
0
643
Member Avatar for needs_help

[QUOTE=WaltP;299118]I doubt it's a hotlinking problem. My avatar as of today is sitting on my site. Another try: [img]http://pattinson.net/mousehp.jpg[/img] Oh, look!!!![/QUOTE] HP is hiring any one theses days as a technician. Outsourcing must not be working for them.

Member Avatar for Ciara_1
0
883
Member Avatar for vegaseat

[QUOTE=vegaseat;696080]Some people consider the US $1 bill unlucky because there are so many 13's on it: 13 stars, 13 stripes, 13 steps, 13 arrows and even an olive branch with 13 leaves on it.[/QUOTE] I would be willing to take the risk away from people. Send them to me.

Member Avatar for vegaseat
11
9K
Member Avatar for Dave Sinkula

I thought of posting some links I have found about free tutorials or free books to download with the permission of the author. # Optimizing C++ Optimizing C++ provides working programmers and those who intend to be working programmers with a practical, real-world approach to program optimization. Many of the …

Member Avatar for shahidali6
11
10K
Member Avatar for LostnC

[QUOTE=LostnC;1029569]I'm sorry, but I don't understand. I keep looking at my code, but I really don't know what I need to do.[/QUOTE] [CODE]void swap(int *num1, int *num2) { int tempvar1; tempvar1 = *num1; [COLOR="Red"]*[/COLOR]num1 = *num2; /* learn the difference between num1 and [COLOR="Red"]*num1[/COLOR] */ [COLOR="Red"]*[/COLOR]num2 = tempvar1; } [/CODE]

Member Avatar for deceptikon
0
3K
Member Avatar for Adnan S.

>Could you give me an dea? A [URL="http://www.daniweb.com/forums/thread91115.html"]search[/URL], perhaps?

Member Avatar for sneekula
0
960
Member Avatar for devnar

>[ICODE]swap(&a[x][y], &a[[COLOR="Red"]++[/COLOR]x][y]);[/ICODE] pre-incrementing here is undefined behavior. Explanation can be found [URL="https://www.securecoding.cert.org/confluence/display/cplusplus/EXP34-C.+Do+not+depend+on+order+of+evaluation+between+sequence+points"]here[/URL].

Member Avatar for anveshnaidu
0
162
Member Avatar for ricciola

[quote=rajuss;338719]hi i m trying but couldnt able to do the progrm. the program is in c & its on finding a string from a text file. so please help me out to doing it:sad:[/quote] Sorry, I can not make sense of what is your question or problem. Could you state …

Member Avatar for shentong
0
3K
Member Avatar for wilhemina

[B]wilhemina>[/B] Secondly I am using eclipse C compiler in linux and I keep getting the warnings: "too few arguments for format" when using my printf statements which doesn't affect the code execution but it is a bother. Any ideas? It is just a warning since normally, [ICODE]printf()[/ICODE] expects a literal …

Member Avatar for yunda
0
551
Member Avatar for satish_dukkipat

[quote=satish_dukkipat;411504]int i,j=4; i=j++*++j*j--; what is the result of i and how it is evaluated please help me. the result is 125 and i don't understand the evaluation part[/quote] First an increment occurs in i = j++ * [COLOR=Red]++j [/COLOR]* j--; Now j = 4+1 = [B]5[/B]. Second: expression [COLOR=Red]i = …

Member Avatar for deceptikon
0
224
Member Avatar for debasisdas

[I]Before you criticize someone, you should walk a mile in his shoes. In that way when you do, you would be a mile away and you would have his shoes.[/I]

Member Avatar for James_28
8
17K
Member Avatar for pavani2006

>how to complile and execute a c pro in editplus Editplus is a full featured text editor. Only to produce the source code. You need to use a compiler after writing the source code. Integrated development environment (IDE) is what you are looking for, if you don't want to do …

Member Avatar for sujitha77
0
2K
Member Avatar for hey_shishir

[CODE]#include <stdio.h> int main( [COLOR="Green"]void[/COLOR] ) { printf("1 5 7 11 13 17 19 23 25 29 31 35 37 41 43 47 49 53 55 59 61 65 67 71 73 77 79 83 85 89 91 95 97 "); [COLOR="Green"]fflush( stdout );[/COLOR] return 0; } [/CODE]

Member Avatar for akshit.arora.14224
0
4K
Member Avatar for dhingra

>1)Atomic Storage That must be the memory involved in nuking your program when the water cooling system fails in your computer. [Edit:] I know it was an "innocent misspelling". Just making a funny comment.

Member Avatar for salil_ag
0
170
Member Avatar for policeachan

[URL="http://cboard.cprogramming.com/showpost.php?p=710554&postcount=8"]Maybe this will help you understand.[/URL] Don't be afraid next time of creating a new thread when you want to ask something. People frown upon old threads that get bumped to a current active state.

Member Avatar for Nishant_2
0
1K
Member Avatar for jessicaphillips

[QUOTE=Ekbal;767688]Hey I am Ekbal , i working in software company I am working on c,c++,VC++,VC# Ok u giv me assignment i will do it my email id is <snipped email> I am from india Thanks Ekbal[/QUOTE] Sorry, the job was filled already, but we will keep your resume just in …

Member Avatar for Schol-R-LEA
1
657
Member Avatar for jared_masc

[QUOTE=jared_masc;715761] is this right??[/QUOTE] No. scanf() returns an int, representing how many formats conversion was able to fulfill. You use an array of chars [ICODE]string = scanf("%c", &phrase);[/ICODE] Therefore string needs to be change to int, furthermore, every call to scanf will bring a new return. [ICODE]int result; [/ICODE] [ICODE]result …

Member Avatar for deceptikon
0
5K
Member Avatar for MadnessCow

>*hides even further away* There's nothing hidden there. Obfuscated, perhaps. Quite often, hard to read code, it is associated with cleverness, when the opposite it is true. An abstraction layer is the only place where "hiding" some "goring details" of a program should be used. And interesting enough, it is …

Member Avatar for Adak
0
6K
Member Avatar for khess

Best distribution is the one I am using right now. After that your list is perfectly fine.

Member Avatar for eldergeek
0
2K
Member Avatar for The Dude
Member Avatar for >shadow<

John A> I dunno, 30,000 songs Whoa! Quite an investment. Thirteen songs in my Library. I am very picky choosing music. Nevertheless, I have a growing collection of audio books.

Member Avatar for stultuske
0
453
Member Avatar for wollacott

>n.c:12: warning: passing argument 1 of 'fopen' from incompatible pointer type [iCODE]infile=fopen([COLOR="Red"]filename[/COLOR],"r");[/iCODE] Needs to be a string. You are passing it an array of pointers, [iCODE]char[COLOR="Red"]*[/COLOR]filename[256]; [/iCODE]and none of them have a valid string. Where's the name of the file to be read? >FILE * infile[COLOR="Red"]=0[/COLOR]; Just delete that in …

Member Avatar for Miorfs
0
2K
Member Avatar for rrreeefff

The last call to printf(), it is being made before variable c has anything meaningful assigned to it. That while() loop doesn't have a way of stopping. Of course, it would not even get there if [B]a[/B] is greater than [B]b[/B]. [Edit:] Why do you think you need to #include …

Member Avatar for deceptikon
0
348
Member Avatar for IwalkAlone

[code=C]/* myconcat.c */ #include <stdio.h> int main(void) { char first_s[] = "Hello"; char second_s[] = "World"; int i = 0; int x = 0; char long_s[sizeof(first_s) + sizeof(second_s)]; while(first_s[i]) { long_s[i] = first_s[i]; ++i; } long_s[i] = ' '; ++i; while(second_s[x]) { long_s[i] = second_s[x]; ++i; ++x; } long_s[i] = …

Member Avatar for ahmedhamdy
0
2K
Member Avatar for Serunson
Member Avatar for boiishuvo

[QUOTE=nezachem;1218189]> 'fork' undeclared (first use this function) This is really surprising. Is it the only error message? Does it maybe complain about unistd.h not being found?[/QUOTE] No really. Dev-C++ is for MS Windows, and Windows do not have the ability of forking, regardless of how many <unistd.h> header files we …

Member Avatar for rakeshbiswal
0
4K
Member Avatar for predator78

Agilemind >>Could you please explain how this can be when the gap between the rich and poor continues to expand rapidly in the USA After hearing and reading those almost exact word inumerable times in my life, I must wonder why everyone that regugitates it, always stops there, and they …

Member Avatar for mike_2000_17
2
734
Member Avatar for GrimJack
Member Avatar for GrimJack
3
534
Member Avatar for Aia

Self-teaching Java, I am following a video tutorial about simple windows. Encountered a warning error using the example provided in the tutorial. Here's the piece of code. [CODE=Java]import java.awt.Frame; import java.awt.Label; import java.awt.AWTEvent; import java.awt.event.WindowEvent; public class HowdyByeWindow extends Frame { public static void main( String[] args ) { new …

Member Avatar for flash901
0
937
Member Avatar for lehe

[CODE=bash]echo $1 | sed -e "s/^[^=]*=\(.*\)$/\1/"[/CODE] [ICODE]echo $1[/ICODE] is the argument from the shell piped to sed but it doesn't have any thing to do with [ICODE]\1[/ICODE] What's \1? The first group remembered from the original regex, and it is represented by[ICODE] \(some match inside\)[/ICODE] So if I have the …

Member Avatar for Pooja#
0
166
Member Avatar for aasi007onfire

A slightly modified version of it. Now indeed the function returns something. [code=C]/* * char *stringcpy( char *s, char *t ) * copy a string into another. * parameters: * accepts two strings as arguments. * returns: * a pointer to the first string. */ char *stringcpy( char *s, char …

Member Avatar for Ancient Dragon
0
193
Member Avatar for WhYuLoOkIn

[quote=WhYuLoOkIn;338208]Please help I'm trying to write a program in C using nested loops which has an output of 1-8 (newline) 2-9 (newline) 3-10 (newline) 4-11(newline) 5-12. I wrote a program but I know it has to be a simplier way and I don't think I used nested loops correctly because …

Member Avatar for Namsisi
0
562
Member Avatar for aasi007onfire

[quote=Ancient Dragon;400673]The correct answer is that the result is undefined, or unpredictable. It depends on the compiler -- the answer by some compilers may be 5,5,5 because only the last version is stored. Yet other compilers, such as VC++ 2005 Express will give 6,5,5.[/quote] And others will give you 6, …

Member Avatar for deceptikon
0
278
Member Avatar for vvidyadhara

In order for you to understand the answer to you question you need to know about XOR, AND and SHIFT bitwise operators. Let's add 3 + 5: [code]integer1 = 3 = 0011b integer2 = 5 = 0101b first operation second operation third operation 0011 0011 shift by one 0101 0101 …

Member Avatar for karthi.k.s
0
378
Member Avatar for gemni7

> Any idea?? [code=C]#include <stdio.h> int main( void ) { float d_n = 123.45; char s_cp[13] = { '\0' }; char s_cnp[4] = { '\0' }; /* * with sprintf you need to make sure there's enough space * declared in the array */ sprintf( s_cp, "%.2f", d_n ); printf( …

Member Avatar for sujeeth.ramesh
0
677
Member Avatar for nishant3316

[QUOTE=nishant3316;682169]hi, can anyone tell me what exactly this line of the code does? [code=c] val &= val - 1; [/code] [/QUOTE] That's the same than: [ICODE]val = val & val - 1;[/ICODE] Search for bitwise AND assignment, if you want to know more.

Member Avatar for SHIVANGII
0
627
Member Avatar for Alfy

[quote=IwalkAlone;320668]Yeah this works.But my problem is that I am not allowed to use islapha function since its not been taught yet. I have to do my assignment without using functions from cstring.h:rolleyes: :sad: So can someone tell me how to do it without that? [/quote] Well, my friend. You were …

Member Avatar for zeroliken
0
2K
Member Avatar for blackarchan

[QUOTE]sed 's/$wfind/$wreplace/g' ~/file.txt > ~/file.txt[/QUOTE] A couple gotchas. You are reading and modifying file.txt at the same time. "No bueno!" Quotes is always something to be mindful due to the shell. [CODE]sed [COLOR="Red"]"[/COLOR]s/$wfind/$wreplace/g[COLOR="Red"][COLOR="Red"]"[/COLOR][/COLOR] ~/file.txt > tmp.file && mv tmp.file ~/file.txt[/CODE] [QUOTE]want to remove somthing from a file eg. #deb http:// …

Member Avatar for blackarchan
0
164
Member Avatar for vtskillz

This is C forum. Not C/C++ ;) Take the time to read how properly tag your code so instead of looking like this: #include <iostream> int main(int argc, char**argv) { char *insert = "abcdefg"; for (int i = 0; i < 7; ++i) std::cout<<insert[i]<<"\n"; } It would look like this: …

Member Avatar for arunsolo1984
0
5K
Member Avatar for Majoni

End Of File. It is operating system depended. In Windows for example is iqual to the value -1.

Member Avatar for gourav1
1
365
Member Avatar for animefun2
Member Avatar for etm9413
Member Avatar for ankit_the_hawk

What upset me sometimes is that any book or video tutorial that tries to teach you C programming, all of them teach you to use gets() and scanf() as the default to read input. I understand that is easy for learning but it should be shown what problems you get …

Member Avatar for thisun
0
13K
Member Avatar for seo2005

[QUOTE=gerard4143;1033801]Its just an example that I made up..The numbers signify nothing.[/QUOTE] It doesn't matter, if she follows your advise she will get a square. [QUOTE]Can anyone please do the complete program for this so that stars are printed in the manner as given above.[/QUOTE] Then you'll learn nothing. Some clue: …

Member Avatar for archi vachhani
0
206
Member Avatar for harikrishna439

[QUOTE=harikrishna439;1599513]int a[3]={1,2,3}; printf("%d",a[3]); While I'm executing this snippet, I'm getting the output as 2. Is 2 a garbage value here? I don't think so... Can anyone explain how 2 comes instead of a garbage value? Any answer could be appreaciated.[/QUOTE] 2 is the representation of what just happen to be …

Member Avatar for arindam31
0
164
Member Avatar for Sadun89

[QUOTE=Narue;1599537]False. My code while under the influence is the stuff of legends. The only drawback is that it rots quickly, like in a couple of hours or so. ;)[/QUOTE] Suddenly, doubles and loops start making more sense? ;)

Member Avatar for Aramant Coral
-3
174

The End.