- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- Interests
- I wanna believe!
45 Posted Topics
Re: You have always the choice cause it C++ it just direct track of the keyboard using terminal for linux just add its segment all will work fine.. like clrscr() also does not work for that is you can use the system() function and type the console command In the program … | |
Re: Some how the program is correct but the algorithm is not efficient of the large no. see this link [url]http://www.daniweb.com/code/snippet809.html[/url] | |
This is the program to print all possible combination of the string. It was orginally written in C++. Now i'm trying to write it in C but stuck with this problem of strings and pointers + some warnings. INPUT is taken from argument, which is "const **char" . I tried … | |
i don't know how it happen but the exe formed after compilation was 1.23 MB which has never happen before. | |
I am trying to move the huge no of file into different folder.. the files in the style of "HNI [0-9]{3}.*.jpg" i.e [ICODE]HnI 001.Sunday Party.jpg HnI 002.Car.jpg . . . and so on[/ICODE] I want to place the certian no of files in the single folder like.. .[ICODE]mv file1 file2.... … | |
[CODE] #include <iostream> int main() { for(int i; i<3; i++){ volatile char str[]="hello\n"; std::cout<<str<<std::endl; } return 0; } [/CODE] Why? its gives output [ICODE] 1 1 1 [/ICODE] | |
what is this "Werid charaters" its screwing my downloads... but echo seems to be find can any one know the solution pls!!! THis is what i did.. .only 1st seq goes fine... something goes stupidly wrong with this stuff.... [CODE] rhohit@64box:~/383 Anxious Friends$ for i in $(seq -w 1 18 … | |
How to fill array with any no like using zeros and ones. i'm new to python and i can't find the answer.... | |
I was trying to Compare the 5 Sorting Algorithms using 4 test cases. [U]Sorting Algorithms[/U] [LIST=1] [*]Selection Sort [*]Insertion Sort [*]Bubble Sort [*]Quick Sort [*]Merge Sort [/LIST] [U]Test cases[/U] [LIST=1] [*][URL="http://the.nube.googlepages.com/Sort.Analysisplot1.svg"]Random Data [/URL](completed) [*]Reverse Sorted Data (completed) [*]Almost Sorted Data (can't generate Data) [*]Highly Repetitive Data (can't generate Data) [/LIST] … | |
hi every one.... i was trying to rename the no of files [QUOTE] Like "Prison.Break.S01E01.HDTV.XviD-LOL.srt" to "Prison Break.101.srt" and so on to the following files Desktop/1/Prison.Break.S01E01.HDTV.XviD-LOL.srt Desktop/1/Prison.Break.S01E02.HDTV.XviD-LOL.srt Desktop/1/Prison.Break.S01E03.HDTV.XviD-LOL.srt Desktop/1/Prison.Break.S01E04.HDTV.XviD-LOL.srt Desktop/1/Prison.Break.S01E05.HDTV.XviD-LOL.srt Desktop/1/Prison.Break.S01E06.HDTV.XviD-LOL.srt Desktop/1/Prison.Break.S01E07.HDTV.XviD-LOL.srt Desktop/1/Prison.Break.S01E08.HDTV.XviD-LOL.srt Desktop/1/Prison.Break.S01E09.HDTV.XviD-LOL.srt[/QUOTE] i tried to use [CODE]$mv "Prison.Break.S01E0[1-9].HDTV.XviD-LOL.srt" "Prison Break.10[1-9]" mv: target `Prison Break.10[1-9]' is not a directory … | |
Little bit help here i wanna cp the no of files listed in text file... i tried to use [CODE]for songs in $(cat "~Desktop/1/list.txt"); do cp $songs NewSongs/; done[/CODE] but my text file has the path with spaces like /home/rhohit/Music/00 Database/Albatroos/Albatroos/Albatroos - 01.आवाज.mp3 /home/rhohit/Music/00 Database/Albatroos/Albatroos/Albatroos - 02.खसेका तारा.mp3 /home/rhohit/Music/00 Database/Albatroos/Albatroos/Albatroos … | |
[CODE=cpp]struct Table { char* aTag; char* bTag; }; int main() { Table T1; cout<<T1.aTag; cout<<T1.bTag; return 0; }[/CODE] This might be crazy but... i really need to know is there any way to so that we can only write [CODE=cpp]cout<<aTag cout<<bTag [/CODE]instead of [ICODE]T1.aTag[/ICODE] like we do in [ICODE]namespace [/ICODE] … | |
01 Why i am not able to do this [CODE]int* px; px = new int[2][2]; [/CODE] other the [ICODE]px = new int[2*2];[/ICODE] is there any other method 02 Why i am not able do access through pointer dx by [ICODE]dx[1][2][/ICODE] other than by using [ICODE]dx[1*7+2][/ICODE] [CODE=cpp] static float mat[5][7] = … | |
| |
Just playing with the no. points used in the program: 1. Even no cannot be prime except 2 2. % division of odd by even cannot be 0 | |
Just playing with the no. points used in the program: 1. Even no cannot be prime except 2 2. % division of odd by even cannot be 0 | |
Nothing but the VERY HARD Work out for long day and night. It was actually i made it for my project work which my friend loved it very much. This might be the useful stuff to you also. Ya Now days rarely anyone uses the BGI stuff but also it … | |
I was writing the program for revised simplex method in devc++ (windows) and it was working fine... Now I am using ubuntu and trying to run the same program.......(with few changes) i compiled successfully using g++ but when i run it run but showed error some what like: [QUOTE]rhohit@Trashbox:~$ g++ … | |
Re: create one more construtor without argument autop() { } | |
cout<< worked out for every other pointer data type but... when char is fed it show the pointed address.....(which every one knows) but i want to see the address stored in the char pointer how to see it.. i was thinking using `printf()` but ruined out by not knowing what … | |
Why Can`t member function be called by pointer object of class/struct. i was trying to call the member fuction of struct though pointer object it showed me error like request for member 'Table::reveal' in `T1`, which is of non-class type 'Table*' where, Table is structure reveal is member function T1 … | |
Re: Ya only two choices .... 1. Keep track of insertion and deletion as said above. 2. OR Count all over again | |
hey my task manger look like something else... without the menu... Just cheak the picture... Does any one has the clue.. | |
Re: try this out i will work i used fgetc, iguess you should know that its interger not some string to store in. ASCII 48 = 0 and so on.... [CODE=c++] #include <iostream> using namespace std; #define size 10 int main() { int no[size], temp=0, i; FILE *fp=fopen("textfile.txt","r"); int ch=fgetc(fp); for(i=0; … | |
I was creating some sort of text editing program. Whose display and file writing are going parallely. How to clear the character in the file when i dont back space. I tried clear character by replacing with Space(32), NULL(0), but it didn't workout fine.. just replacing the character...how do delete … | |
Re: [QUOTE=Lerner;740687]your coded logic reads something like this:[code] get information from user, but ignore it for as many songs as there are in the list if list is longer than two delete the second song in the list else assign a value to a flag but never evaluate the flags value[/code] … | |
Re: Nice thought to use the recursive function... recursive function should have the terminating point which in the conversion always turn to 1 at last. [CODE=cpp] void binary(int num) { if(num!=1) { int rem=num%2; binary(num/2); cout<<rem; } else cout<<num; } [/CODE] | |
I decided to learn the template any how.... but... Each level is giving me the trauma staring up with the domino one after another.. please help.... Problem is I use both printf(); and cout<< for the console output... now the problem lies that i can't just leave one of them.. … | |
Re: dont just copy the code,match the braces it is just a code snippet so use the correct syntax [CODE]Private Sub cmdSwitch_click() if picture1.picture ="D:\hehe\Winter.jpg" then picture1.picture = LoadPicture("D:\hehe\Sunset.jpg") else picture1.picture = LoadPicture("D:\hehe\Winter.jpg") end sub[/CODE] also check the button name....i mean ur caption is switch ,so i assumed ur button name … | |
Re: it is becoz of the scope of the variable one declare out side the function is in the Global Scope and other one is inside the Function having the Function Scope ... now how question is if the variable name is same then... how does it works... Answer is ... … | |
Re: ya using the getch is the good idea to tap the keyboard.. but i guess its not pretty good idea to use the getch() directly since it waits for the keystroke.. always and pause the screen... you can use it like this.. for eg.. [code=cplusplus] if(kbhit()) { switch(getch()) //monitor key … | |
I am new to the templates.. I was trying to implement templates in my x programs.... and i am stuck ... help me... problem is with the "search" function when i was not using templates search function was [B] Stack::Nodeptr Stack::search(char item)[/B] and worked perfectly fine.. when using templates... i … | |
Re: This is one of the most crazy style of programming which i have ever seen... ok let me make it in point wise 1. What kind a for variable the mean is? [CODE] void ComputeMean (double mean, int sum) { { mean = 1.0 * sum / MAX; } cout … | |
Re: Its the simple question ... When we use to learn the C++ This type of Sorting is known as [B]Selection sorting[/B]... Rest you figure it out...:D | |
Re: [QUOTE=anny**;709326]hi to everyone !!! anny here ,. i want to make a program using c which can calculate following functions :: [COLOR="red"][B][I]sin,cos,tan,+,-,*,/,iverse,log,ln,exp,sqrt,raise to power 100,10,2[/I][/B][/COLOR] plz plz if anyone can help me by giving me some idea about it and which is somthing of beginners level !! thanxx alot ![/QUOTE] … | |
Re: I guess using string is not the good idea. What we use to do was.... some how take the binary in the int or long. then take a loop and extract the element one by one form the last... I guess this is the efficient method.. some how you are … | |
Re: Character can be inserted to an no. eg. int. I that situation the char ASCII code is copied to the int. like for example A=65 a=97 As you program look confusing i'm sorry i can't tell you more. But if you are really up to linking pointer and array this … | |
Re: This might help you... [CODE] #include <iostream> #include <stdio.h> #include <conio.h> using namespace std; typedef struct node *linklist; struct node { node *head; int info; node *tail; }; struct dqueue { linklist front, rear; }; void insert(dqueue &, int, char); int remove(dqueue &, char); void display(dqueue &); void menu(); int … | |
I create the simple template structure like this [CODE] #include <iostream> template <class info> struct box { info data; }; int main() { box<int> b1; b1.data = 1; std::cout<<b1.data; return 0;typedef box square; } [/CODE] Now i want to use the typedef for this template structure. I could not figure … | |
Re: Can i have 4 Grater-cake and 2 Icy-mint Please .... You can send me bill after you have finish writing the program...:twisted: | |
Re: I'm just creating the simple independent function to show how to it. Since don't have seen the full program... and don't know what you have declare...etc.. Replace the element at the "n"th position of the link list.. Considering .. node as [CODE] typedef struct node *Nodeptr; struct node { int … | |
I am trying to built the program for handling polynomial... using linklist.... and so far i tried to implement in the Class to add the 2 polynomial using the operator overloading i got messed up with the some objects.... i have commented the parts please help..... [CODE] #include<iostream> using namespace … | |
Re: #include <iostream> int stripspaces(char *); using namespace std; int main() { char ar[100]; cout<<"Enter a sentence and I will strip out the spaces: "; cin.getline(ar,100); cout<<"No of spaces: "<<stripspaces(ar) <<"\nYour sentence without spaces is \n\t"<<ar; return 0; } int stripspaces(char *str) { int spacecounter = 0; char *p= str; int … | |
I'm just a new to autocad and I am quite familariar with the engineering drawings. Since in the othographic view we need to draw some view like top view, front and the side view. I came to know about the something transform of 2D figure to the 3D using more … | |
Re: [QUOTE=masonbill;571931]Spell check acknowledges miss spelled words but the suggestions are grayed out. I have tried a detect and repair of Office. I even went as far as reformatted the hard drive and the same thing when I install Office 2003. Any ideas on how to fix this?[/QUOTE] Ok dude, I … |
The End.