- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 13
- Posts with Downvotes
- 10
- Downvoting Members
- 11
Wish u Very Happy Independence day to all my Indian Friends, brother and sister.........Make it Independent for ever
- Interests
- Interested in programming c,c++,c#
72 Posted Topics
Re: HI As I understand your problem is to sort an array in ascending and place the zero at last, and you have done up to sorting one last step[ u have to is that pick the first element to a temp. variable and shift the array element to one step … | |
Re: [CODE]#include<dos.h> #include<stdio.h> #include<conio.h> void main() { union REGS i,o; int max_row=20; int num[5]; clrscr(); i.h.ah=2; //positioning the cursor i.h.bh=0; for(int j=0;j<5;j++) { clrscr(); printf("Enter number at %d : ",j); scanf("%d",&num[j]); } clrscr(); for(j=0;j<5;j++) { i.h.dl=2+j;//x-direction for(int row=max_row-num[j],n=0;row<max_row;row++,n++) { i.h.dh=max_row-num[j]+n;//y-direction int86(0x10,&i,&o); printf("*"); } } getch(); }[/CODE] | |
Re: Hi, I just want give u idea how to do that, try to convert my idea into code if it work for u then ok other wise post your work fo futher help... See what all you have to do step 1. binarynumber=101 step 2. rtmostdigit=101 mod 10 step 3. … | |
<?php session_start(); if(!isset($_SESSION['userid'])) { print '<script type="text/javascript">'; print 'alert("Login to submit resume.")'; print '</script>'; header('location:login.html'); }?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> i try every thing still im getting the same problem Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/royal/public_html/submitresume.php:1) in /home/royal/public_html/submitresume.php on line 2 … | |
Re: [QUOTE][/QUOTE] Use some thing like that definitely it will work for you. You want that program to ask user the Grade Letter then the Credit hours, then the Grade Letter, then the Credit hours...all the while these are addign up in the background? Your problem is that your using two … | |
Re: There are more than one way to solve your problem its all upon you, for help you have to show your code | |
Re: This Not working for me Iam working on visual stdio 2005 | |
Re: Sorry its not a keylogger this just save data into file what u write on that console screen not from other screen | |
Re: If you carefully read about If...else statement then you must know that else is always used for a matching if that means [CODE] if(condition) {block-of-statement; } else {block-of-statement; } [/CODE] rules says that this a structure you have to use for if else statement, if you use more then one … | |
[B]Problem in connecting internet on ubunto 10.04 through idea netsetter.............[/B] Hello I try a lot to connect my netsetter usb modem but it ubuntu 10.04 os not detected as modem..........please help me Thanks in advance | |
Re: Hello Neural_jamk, please try to define what you try to do by using following code it will more help full for you to get help earlier, because without knowing your purpose how can solve your problem. [B]Lastly alternate of looping is recursion.[/B] You may try recursion in place of looping. … | |
Re: Use structure for reading or writing to file [CODE] struct student { //require variable } [/CODE] | |
Re: /* Name : Praveen Kr. E-mail: [email]prvnkmr449@gmail.com[/email] Mobile no.:+918808130075 please reply if my post is help for u or if any problem on c ask me on my email. */ #include<conio.h> #include<stdio.h> void main() { for(i=0;i<4;i++) { for(j=0;j<=i;j++) printf("0"); printf("\n"); } getch(); } | |
Re: [CODE] char c='\0'; userChoice=0; cout << "Please enter a number from 1 to 10: "; while(c!=13) { c='\0'; c=getche(); if(c>47 && c<58) userChoice=userChoice*10+(int)(c-'0'); } [/CODE] here I use getche to take input from use and check the assic code if its character skip this other wise put it in userChoice … | |
Re: 1st problem u try to call [CODE] double calcAverage(Student& stu) [/CODE] before assigning the value for student 2nd problem you have to use loop to pass for each and every student some thing like this [CODE] for(i=0;i<total_number_student;i++) { avg[i]=calcAverage(list[i])//it ll store the average of every student in a array avg … | |
Re: Where you insert your node, at the beginning or at the end? You problem is that when delete a node your pointer is move forward. and pointing next element of deleted node and you did not able to get desired result so first store the address of your pointer in … | |
Re: [CODE] LOOP num from 1 to N if(num%2==0 && num%3) { print num counter++ } end loop [/CODE] I hope it will help you Best Of Luck | |
Re: I think ur new to Object Orientated Programming because ur logic is wrong Try understand understand little bit about object 1st for example [CODE] class rectangle { int a.b; public: void set_value(int t) {a=t} void set_value2(int r) {b=t} int area(){return a*b} } int main() { rectangle r1,r2; } [/CODE] when … | |
Re: Use getche() in place of scanf. why scanf is not working, answer of this question is here [QUOTE] orignally posted by waltp[/QUOTE] [url]http://www.gidnetwork.com/b-59.html[/url] [CODE] repz=getch(); or repz=getche();//echo the character on screen [/CODE] Best Of Luck | |
Re: Your problem just similar to finding the greatest number out of 4 number for this use a variable and initialize it to ZERO and check with every number if variable is less then value then assign the value to the variable some thing like this [CODE] int data=0; int num[4]={4,10,15,12}; … | |
Re: Write the code in code tag (CODE)...... My suggestion to is that try to do some, your problem is that did't want to do any thing your a lazy person and no one is here to help a lazy person. In your not a single is mention related to file … | |
Re: Please try to paste your full coding related to this problem so that some can able point out your because I did't get fault in this code may I miss that point although paste your enough code to compile mainly your class. | |
Re: [QUOTE]rodel~[/QUOTE] Well come to daniweb, its your 1st post in daniweb so I would like to tell some thing abt this site no one is here help the person who did't try any thing before asking, so suggest you 1st try your self and if get any problem we fill … | |
Re: Use semicolon at the end of line number 10 correct the spelling mistake at line number 133 [CODE] if (numberOfResistors == 2){ // in your code you use if (numberOfResistors == 2){ [/CODE] every thing fine accept this, I dont any thing about logic of your program and output is … | |
Re: [QUOTE]VernonDozier is correct[/QUOTE] If we go though the structure of array It lock some thing like this [CODE] int num[2][3]; [/CODE] ----------------------------------- | num[0][0] | num[0][1] | num[0][2] | <- row 0 ----------------------------------- | num[1][0] | num[1][1] | num[1][2] | <- row 1 ----------------------------------- column 0 column 1 column 2 … | |
Re: Hi rajeshmithy Well come to daniweb your new to this so I would like inform something about this site, if think user of daniweb is ur worker and do your work then just forget that concept coz no one is here to give Copy paste coding you have to start … | |
Re: [QUOTE] originally posted by kes166[/QUOTE] Error is in your loop. your loop should be like this [CODE] for (i=0; i<number_of_element;i++) { if(input[i]>avg count++; } [/CODE] [QUOTE] originally posted by kes166 for (int e = 0; 0 > 50; e++) [/QUOTE] check your loop this loop not going to execute Best … | |
Re: How your project work internally I don't have any idea in which form your close button is not working for you as you want........please explain little bit more | |
Re: No one is here to give you a copy paste code, you have to do work for that. You work quite fine until now.......... Further what you have do thats I will explain bellow Take user input in a integer type variable for example num Use a string variable to … | |
Re: I don't think you work hard to solve this problem or you attach wrong code please try once more you have many more exception then you mention even not provide the list also............Basic logic behind finding prime number is that prime number is only divisible by itself and 1 thats … | |
Re: Use switch statement to solve this match the case and call particular function according to that Best Of Luck | |
Re: I don't why you try such a complicated procedure all though I am not an expert but I give you what you want as I understand your problem is sending text box text from form1 to form2 simply create a public variable on form2 of string and example [CODE] //form2 … | |
Re: Your problem is not so clear so If you attach your code as well and explain little bit more what you trying to do with your code, may be some one help you | |
Re: If you don't want store that value then just use simple variable for getting input from user by using loop and and three other variable for storing sum [CODE] int number,total,total_positive,total_negative; total=0; total_positive=0; total_negative=0; cout<<"Enter 10 number:"; for(i=0;i<10;i++) { cin>>number; if(number<0) total_negative+=number; else total_positive+=number; total+=number; } [/CODE] Best Of Luck. | |
Re: Hi did you have any predefine text, which you want to print in following way a ab abc abcd [CODE] for(r=0;r<no_row;r++)//for row for(c=0;c<r+1;c++)//for column [/CODE] | |
Re: Is it ur equation is like this a(x)^3 then both is correct as you say and if you say about readability then e is good | |
Re: Open audio file into binary mode and copy data into different file.............. as | |
Hi all of you, Iam creating a Inventory System on vb.net and I need some image for like new,search,delete copy cut edit etc can any Help me from I get all this Images, I try to search in google bt I did't get thanks In Advance | |
| |
Re: Hi BryantFury, First I want suggest you that mention your problem facing point rather than just explaining your question. In in your problem there is two phase 1. Creating a function and 2. Calculating the power Logic behind calculating the is so simple for example 2^4=16 what happen here 2 … | |
Re: Hi , Example >>5 output 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 If you want this type of output then initialize x and ctrl by inpt variable [CODE] while(ctrl>=1) { while(x>=1) { cout<<x<<" "; x--; } cout<<"\n"; ctrl--; x=ctrl; } [/CODE] Best … | |
Re: Use [B]item.Selected[/B] in place of [B]item.Checked[/B] on "form_target" [CODE] public void CopySelectedItems(ListView _lstviewSource) { foreach (ListViewItem item in _lstviewSource.Items) { if (item.Selected ) { lstviewTarget.Items.Add((ListViewItem)item.Clone()); } } } [/CODE] And on source_form i think you miss a line [B]myform.show();[/B] [CODE] private void btnAddImages_Click(object sender, EventArgs e) { form_target myform = … | |
Re: Did do any thing for that then show your work then only accept for help, If don't do any thing for that, then do hard work before posting your question here. Best Of Luck. | |
Re: Use this simple loop [CODE] for(i=0;i<9;i++) { for(j=0;j<9;j++) { if(j>2&&j<6&& i<3||j>2&&j<6&&i>5) printf(" "); else printf("*"); } printf("\n"); } [/CODE] Best Of luck | |
Re: [CODE] #include <stdio.h> int main(void) { char string[80]; printf("Input a string:"); gets(string); printf("The string input was: %s\n", string); return 0; } [/CODE] Use gets() in place of scanf() take without space. Best Of Luck. | |
Re: Use this may it will help but mind data type before entering the number of term [B] 2^2+(2^2+4^4)+(2^2+4^4+6^6)+.... [/B] [CODE] #include<conio.h> #include<iostream.h> #include<math.h> void main() { clrscr(); int n,t=2; long int total=0,subtotal; cout<<"Enter term :"; cin>>n; cout<<"\n\t"; for(int i=0;i<n;i++) { cout<<"("; for(int j=0;j<=i;j++) { subtotal=pow((j+1)*2,(j+1)*2); cout<<(j+1)*2<<"^"<<(j+1)*2; if(j<i) cout<<"+"; } total+=subtotal; … | |
Re: You can also use string variable that means char pointer[CODE]char *ch;[/CODE]to store large data but problem is that on using this, is that you have to manipulate data by your own function.Try to solve or give me some time I will give some function to manipulate these type of data. … | |
Re: [B]Code for form1[/B] [CODE] namespace form { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public Form1(System.Drawing.Image i) { InitializeComponent(); pictureBox1.Image = i; } } } [/CODE] [B]Code for form2[/B] [CODE] namespace form { public partial class Form2 : Form { public Form2() { InitializeComponent(); } … | |
Re: [CODE] protected void Page_Load(object sender, EventArgs e) { int i = DateTime.Now.Year ; for (i = i - 1; i <= DateTime.Now.Year + 3; i++) DropDownList1.Items.Add(Convert.ToString(i)); } [/CODE] Use this simple code, it will take current year from your pc. Best Of Luck. | |
Re: Here is short program demonstrating how to read and write data from binary file using structure I don't the structure so I use my own simple structure change this to your on structure [CODE] #include<stdio.h> #include<conio.h> struct NODE { int roll_no; char name[30]; }; void write_binary(FILE *f1) { struct NODE … |
The End.