No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
9 Posted Topics
Re: With regard to C++ books, I'll just echo the advice here .[/list]Proper credit: vawjr, who now has this posted. The following is also recommended. C++ Coding Standards : 101 Rules, Guidelines, and Best Practices , Herb Sutter, Andrei Alexandrescu Book reviews can also be found at www.accu.org : Beginner's C++ … | |
#include<stdio.h> #include<string.h> main() { int n; char aan = 'y'; while (aan == 'y') { printf("entr ") ; scanf ("%d", &n) ; printf("sq of %d is %d", n, n*n ); scanf ("%c", &aan); printf("\n want aan y/n""\n"); } } I want to make this using while loop. kindly tell me … | |
i wann multiply two matrix but the part of given code is not working...i wanna input the value from the user using pointers.. [CODE]#include<stdio.h> #include<conio.h> void main() { printf("This is matrix multiplication program"); printf("\nEnter the dimensions of two array "); int Row1 = 0, Col1 = 0, Row2 = 0, … | |
[CODE]mport java.net.*; import java.io.*; class Ur { public static void main(String[] arg) throws Exception { URL u = new URL("http://www.whitehouse.gov/"); InputStream ins = u.openStream(); InputStreamReader isr = new InputStreamReader(ins); BufferedReader whiteHouse = new BufferedReader(isr); System.out.println(whiteHouse.readLine()); } }[/CODE] It shows the error.. when i changed the site to [url]www.google[/url] .com \Program … | |
i just learned how to get input from keyboard...' [CODE] import java.io.*; class Fish{ public static void main(String[] args) { BufferedReader Keey = new BufferedReader(new InputStreamReader(System.in)); System.out.println(Keey.readLine()); } } [/CODE] But whenver i compile it..its shows me the follwing exception.. C:\Program Files\Java\jdk1.6.0_22\bin>javac Fish.java Fish.java:7: unreported exception java.io.IOException; must be caught … | |
[CODE] #include <iostream> using namespace std; class vector1 { float vector[]; int y; public : vector1(int x) { y=x; cout<<"enter the elements of the array"; for(int i=0; i<=y; i++) { cin>>vector[y]; } cout<<"elements of vectors are"; cout<<"{"; for(int i=0; i<y; i++) { cout<<"\n"<<vector[i]; } cout<<"}"; } void modify(int z) { … | |
char* ...is it similar to char var[5]; int *x; x = & var[0]; ? | |
Re: [QUOTE=bookmark;1392314]Why won't this output my string vertically? THanks in advanced, bookmark. [CODE]#include <iostream> #include <string> using namespace std; void print (const string & s); void main(){ print("blah"); system("pause"); } void print ( const string & s){ int i; int clrscr(); for(i=0;i<4;i++) { cout << "\n %c", s; } } v[/CODE][/QUOTE] … | |
[B]friend istream & operator >>(istream &, vector &); [/B] Its a operator overloading code. which should follow the genric syntax like "returntype class operator op(argu)" to declare the function.. Here istream is class and >> op....arguments going to have referal type.... [B]Question is what "&" signifies, the one is before … |
The End.