int

  1. garfield_56

    C++--tricky one

    Hey all... I guess most of u will figure this out....but anyways, i found it interesting, so i thought i'll share it with u all!!!! C++ without main() #include<stdio.h> #define decode(s,t,u,m,p,e,d) m##s##u##t #define begin decode(a,n,i,m,a,t,e) int begin() { printf(" hello "); }...
  2. S

    java program..Notepad prob

    I have a source code for developing a notepad but the problem is that when i run it the buttons which i've used as shortcuts don't have there photos displayed on them... they just come across as a rectangular button rather than a cut or a copy photo...i've even saved those images in the c drive...
  3. Manojap

    Pointer Magic

    Find sum of 10 nos using array of size 1 and two *pointers int x[1],i,*xptr,i,*s; for(i=0;i<10;i++) { scanf("%d",&x[i]); } xptr=&x; for(i=0;i<10;xptr++,i++) { *s=*s+*xptr; } prnitf("%d",*s);
  4. C

    pls help c++construct timetable

    could anybody pls help mi!!!i do nt knw y my program go infinite loops.could anybody cn pls solve my problem.it is veri urgent!!!!!!no matter hw i change,i still cnnot gt the output tat i wan.cn anybody pls help 2 change my code.i will be delightful if anybody cn solve my problem!!!!! example...
  5. digitalage

    Compiler design

    i was struggling for A program on net that can check the variable declaration in a file for example int, char, etc. can anyone provide it to me,,,,,
  6. V

    L value reruired

    Friends i am getting an ERROR : L value required for the below program at line no :3. void main(){ int x=5; ++x++; printf("X = %d ",x); } Can any one please explain me the concept of L value.
  7. K

    Binary Search in C++ using old code, search doesnt register element in last position

    hey, Using old code(non-ANSI) The search detects elements in all positions in the 1-d array, except the last one pastebin- *pastebin.com/f4db70a8b Does anyone see my mistake? debugging is not my strong suit
  8. S

    C language programming

    Hello I made the following program with C language - but I do not know how to fix the error when the user enters characters instead of numbers; For Example: the values entered by the user must be numbers only not characters - and if he type character the program should give him error message...
  9. A

    Destructor problem in C++

    Hi Friends. I am Having some problems in running below program.. Please Help me.. #include<iostream> using namespace std; class mystring { char* storage; int size; public: mystring() { storage=0;size=0; } mystring(char* s) { size=strlen(s)...
  10. J

    sorting problem??? help please...

    hey guys, i am doin this program for sorting two-dimnsional aray in ascendin order, and it should accpt N inputs from user... whr N is 7 this is what i have done so far.... void sortLastNames(char name[][N], int N) { int count, count1; char tempname[20]; for(count=0...
  11. Tushar.bar

    Matrix multiplication in java

    HI all , one of my friend was challenged by me that to make a program to multiply two matrix and display result. but rule is using only one one dimensional array. he wright the prog in java, but i don't know java(only c,c++) so can any check that 1>Is the code is working...
  12. clmlbx

    c++ problems

    1. #include<fstream.h> main() { ifstream in("file.txt"); ofstream out("fi.txt"); char item[20]; int count; for(count=1;count<=164;count++) { in>>item; out<<item<<" "; in>>item; out<<item<<" "; in>>item; out<<item<<" "; } in.close(); out.close(); return 0; } problem is ..... in above programme...
  13. V

    Need Help!

    I need C code to save the output of the following program into a jpg file(any picture file)? i need to save the output of this program in to a picture file..i need to take printouts of those output..help me with the code that does the above thing... i executed this program...
  14. clmlbx

    what's the problem ?

    see this code.........this works perfectly in turbo c, borland c 4.5 but gives a error in visual c++ 2008. code:- few more questions :- what does "using namespace std;" means................. this above code is out dated as per visual 2008 ..............so what is outdated in...
  15. ajaybc

    Please debug this C program!!!

    I made a C program for my college labs for counting the number of alphabets digits etc. in an entered string.But it is not working.It is not showing any error but is not giving correct results.Please debug it for me.I have to use call by reference so please dont change that...
  16. zegulas

    Whats wrong with this C++ code?

    I attended my 1st C++ lecture yesterday and learnt this program, after trying to compile & run it in Dev C++, it just runs n goes away in fraction of a second, I don't even know if it shows correct answer or not!
  17. M

    Printf Doubt

    Hello, Recently, I came across a C Program. Its confusing to me. Please clarify how this program gives the output. #include <stdio.h> int main() { int i = 2; float a = 4; printf("%f %d\n",i/a,i/a); printf("%d %f\n",i/a,i/a); return 0; } i/a = 2/4 = 0.5 SO.. I expect the...
  18. H

    C# code

    int iNum = 16; // declaring a value type int object oVal1 = iNum; // boxing the value type int object oVal2; // creating a new object reference on the stack oVal2 = oVal1; // assigning the object reference to another reference oVal1 = 32; // changing the value of the boxed reference...
  19. debiprasad_sahoo

    Please Solve this C program

    int main() static int a=5,b=6,temp; #define swap(a,b)temp=a;a=b;b=temp; { if(a>b) swap(a,b) printf("a=%d b=%d",a,b); return(0); } The output is: a=6 b=0 How & why?
  20. anantkhaitan

    Alternate to some imp. "conio.h" functions

    Guys I want some alternative to getch(), gotoxy(), kbhit(), _setcursortype(), etc. So either recommend me a alternative or help me developing a function of similar kind Suppose for the program: int main() { int i=0; char a[]="Help Me! ",ch; do { ch=getch(); printf("%c",a[i%9]); i++...
Top Bottom