Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
21% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
5
Posts with Downvotes
3
Downvoting Members
4
3 Commented Posts
~6K People Reached
Favorite Tags
c x 35
php x 6
c++ x 3
sql x 3

16 Posted Topics

Member Avatar for urbangeek

Hello, there is a simple code I'm writing but can't find exactly where I'm going wrong. $data = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis eget tellus cursus, ultrices justo at, ultricies libero. Vivamus consequat ante vel nunc dapibus, non tempus elit vehicula. Nulla facilisi. Proin leo urna, …

Member Avatar for urbangeek
0
295
Member Avatar for urbangeek

hi everyone. i want to list and show the table names in a database in a php page. how to do that? in phpmyadmin 'show tables' works in query window. bt showing it through a php script i think i would have to SELECT?

Member Avatar for veedeoo
0
145
Member Avatar for urbangeek

well...i tried in google...but actually i didn't quite get it. :) [url]http://www.thinkage.ca/english/gcos/expl/c/lib/fflush.html[/url] in the above link they are saying, user should definitely NOT write code of the form [CODE]printf("Prompt: "); fflush(stdout); gets(s);[/CODE] but before we used fflush after printf...for example [URL="http://www.daniweb.com/forums/post1168561.html#post1168561"]here[/URL] jephthah gave a solution where he used fflush after …

Member Avatar for Narue
0
2K
Member Avatar for urbangeek

hi guys, i'm just starting out c++. Now the problem is, no matter whatever program i write, i'm getting this warning. [QUOTE]#warning This file includes at least one deprecated or antiquated header. \ Please consider using one of the 32 headers found in section 17.4.1.2 of the \ C++ standard. …

Member Avatar for urbangeek
0
300
Member Avatar for urbangeek

hi guys, can't understand why the answer of the following program is 7? Please explain.. [CODE]#include <stdio.h> #define SQ(x) x*x int main() { int a,b; a=5; b=-SQ(a+2); printf("%d",b); return 0; } [/CODE] thank you..

Member Avatar for urbangeek
0
163
Member Avatar for urbangeek

[CODE]#include<stdio.h> #define sqrt(x) x*x int main(){ int x=5; int y=sqrt(x+1); printf("%d\n",y); return 0; } [/CODE] The answer is 11. Can anyone explain why? thanks

Member Avatar for urbangeek
0
90
Member Avatar for urbangeek

the code is: [CODE] slen=strlen(str); for(count=0;count<=slen;count++) { flag=0; if((int)str[count]!=32) { for(count2=count+1;count2<=slen;count2++) { if(str[count]==str[count2]) { flag=1; break; } } if(flag==0) { ar[ar_count]=str[count]; ar_count++; } } }[/CODE] at line 5 the != operator working fine but when i put [ICODE]if(((int)str[count]>=65 && (int)str[count]<=90) || ((int)str[count]>=97 && (int)str[count]<=122))[/ICODE] it's not working.. if you've some …

Member Avatar for WaltP
0
167
Member Avatar for vino4all

[QUOTE=jephthah;1184353] just open the source file as a binary file and use a while loop to copy each byte one at a time to the destination, until the EOF charater is found.[/QUOTE] copying byte by bye using loop...uh...sounds like a complected process...:|

Member Avatar for jephthah
0
244
Member Avatar for rickymak

here FtoC is a function. Now what is function? [QUOTE=wikianswers]A function is a small set of instructions designed to operate on its given input (aka parameters or arguments) and perform some action or return some output. Generally in programming a commonly used strategy is to take a large program and …

Member Avatar for Narue
0
108
Member Avatar for urbangeek

hello guys, the output of the program should be like this: [ICODE] With how many numbers do you love to work with? 3 Enter no 1: 23.4 Enter no 2: 15.54 Enter no3: 55.48 In ascending order the numbers are: 15.54 23.40 55.48 [/ICODE] I've written this program: [CODE] #include …

Member Avatar for urbangeek
0
1K
Member Avatar for urbangeek

problem was first posted [URL="http://www.daniweb.com/forums/post1174806.html"]here[/URL]. lionaneesh got a problem with this question. I tried to solve that question myself. He solved himself, but i failed. the questions is: This program/function will delete all those characters in the first string i.e str1[] that matches any character in the second string i.e …

Member Avatar for urbangeek
0
114
Member Avatar for lionaneesh

well...i done this...why it's not working??:?: [CODE]#include <stdio.h> int main(void) { int i=0,j=0,k=0,flag=0; char str1[100] = "Hey wassup !!!!!!" , str2[100] = "Wow cool!!!!!", newstr[100]; while(i!='\0') //outer loop start { while(j!='\0') //inner loop start { if(str1[i]==str2[j]) { flag=1; break; } j++; } //inner loop end if(flag!=1) //value 1: char matched …

Member Avatar for urbangeek
1
269
Member Avatar for khan001

well...none of you gave the solution..so i'm giving it...correct me if i'm wrong...after all i'm rookie too..;) [CODE]#include <stdio.h> int main() { double fahr , celsius; printf("Enter the temperature in degrees fahrenheit:"); scanf("%[COLOR="red"]lf[/COLOR]",[COLOR="red"]&[/COLOR]fahr); //convert to celsius celsius = (5.0 / 9.0) * (fahr - 32.0); printf("%[COLOR="red"]lf[/COLOR] temperature in celsius",celsius); return …

Member Avatar for mitrmkar
0
143
Member Avatar for COKEDUDE

[QUOTE=Narue;1173866] [1] In some parallel universe where the standard C library contains a swap function, it would most likely be in <stdlib.h>.[/QUOTE] you meant there's no swap function in standard C library right?(oh..my bad english...:-/) i didn't find anything in the link or google too.. [QUOTE=COKEDUDE;1173384][CODE] input[999] = 0; [/CODE][/QUOTE] …

Member Avatar for Narue
0
168
Member Avatar for sudiptamondal

[QUOTE=sudiptamondal;1160878]We are forced to use turbo c at college I thought that MSVC wouldnt be able to solve the problem. the curriculum allows us to use only graphics.h that is the biggest problem Otherwise I would have used allegro.h I like allegro very much....Never gives problems[/QUOTE] @sudiptamondal... hello mate...i can …

Member Avatar for hkdani
0
459
Member Avatar for urbangeek

hello guys...i'm rookie in C...just starting out...:$ Well...the program i was trying to write was make a series like: 0 10 010 1010 . . . Now i wrote a program. But it's kinda behaving weird. Let me show your the output: [ICODE]enter the no of rows you want: 4 …

Member Avatar for urbangeek
1
557

The End.