- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 4
An apple a day keeps the doctor away.
Don't make me angry )
- PC Specs
- Pentium 4 3.2 Ghz 1 Gb Memmory 200 Gb hard drive NVIDIA GefForce 6600GT
Re:
Please help me to solve the following program in C++ array. After compile message appears [B]"Possible use of "i" before definition.[/B] [code=c++] #include<iostream.h> #include<conio.h> void selsort(int [],int); void main() { int AR[50],N,z; clrscr(); cout<<"How many elements do U want to create array with?(max.50)....."; cin>>N; cout<<"\n Enter Array elements.....\n"; for(int i=0;i<N;i++) … | |
Re:
Code works, however i'm having problems with reverse string- i cant figure out how to index the elements. for cycle returns errors, what else could i use? The end goal would be to compare string line with string reverse. If adequate elements match its a palindrome. [code=c++] #include <iostream> #include … | |
Re:
Is there a C++ command that restarts the application. The program I'm making is just a console application that acts like a calculator. But once you enter your number and press enter you have to close the console and re-open it to find another number. [CODE] int yes = ; … | |
Re:
Hello, I am having a few problems with my image class using OpenCV. I am getting the errors: [CODE]src/image.cpp: In constructor ‘Image<T>::Image(const char*, bool)’: src/image.cpp:21: error: there are no arguments to ‘cvLoadImage’ that depend on a template parameter, so a declaration of ‘cvLoadImage’ must be available src/image.cpp:21: error: (if you … | |
Re:
I've looked all over and haven't found an answer on this that I can understand. I included my code (most of it, anyway.) Obviously, I'm trying to make class Square a subclass of class Rectangle. However, I can't get my display() method to work properly in the derived class. The … | |
Re:
i am writting program for digital calculator.and i have brought calculator image using graphics on outputscreenand i want to give dual interface of keyboard and mouse.how can i do that in graphics? thank you in advance. | |
Re:
Hello guys You rookie here. been trying to run a code but I am getting this weird error that I have not seen before. I have attached a copy of the error and the part of the code it refers to. Thanks for your help GCard 1>------ Build started: Project: … | |
Re:
i want to show output like this [code] A B C D E F G F E D C B A A B C D E F F E D C B A A B C D E E D C B A A B C D D C B … | |
Re:
How do I reverse the numbers in my program to produce the orginal numbers and the numbers in reverse? int magic_box (int N) { int digit1, digit2, digit3; digit1 = N / 100; digit2 = N % 100 /10; digit3 = N % 10; return digit1 + digit2 * 10 … | |
Re:
the problem lies when the move checks to make sure it is valid, every move will display valid or not valid, and the code always displays not valid everytime [code=cplusplus] #include <iostream> #include <fstream> using namespace std; int initialmenu(); void initialboard(char board[][8]); int moveoptions();//function prototypes void appropriatemove(char board[][8], int move, … | |
Re:
I have a checkedListBox1 wich consist of a many lines with text. What I am trying to do is to search trough this checkedListBox1 to see if "Hello" could be found in this box and if it is found, this Item(Line) will be selected. I am not sure what could … | |
Re:
hello I have an error with template class and I can not understand what is the problem? the code illustrate the arrangement of many of books by its publishers' names and if the books have same publisher arrange them by the title of the book . [COLOR="Red"]the error is instantiated … | |
Re:
I am trying to use OPT++ for multidimensional optimization with Visual Studio 2005. I added the include directory to my project. I added the lib directory to my project. When I try to compile the example that ships with the package, i get 102 of the same error: NEWMAT is … | |
Re:
/* I'm new on c ++ and i been strugling with this problem. create the special functions used by this routine and write the functions so it can be used by the main routine as shown*/ [code=c] #include <stdio.h> #include <stdlib.h> Void powerArgs(int *parmA, int *parmB) { int temp = … | |
Re:
Hi. (I am using Windows XP) I would like to know how you can use the function SetFileAttributes to hide a file or folder, I would also like to know about the declarations associated with this function. I would like to use this to develop a program that hides program … | |
Re:
/* I'm new on c ++ and i been strugling with this problem. create the special functions used by this routine and write the functions so it can be used by the main routine as shown*/ #include <stdio.h> #include <stdlib.h> void divideArgs(&parmA, &parmB); { int temp = *parmA; *parmA = … | |
Re:
/* I'm new on c ++ and i been strugling with this problem. create the special functions used by this routine and write the functions so it can be used by the main routine as shown*? #include <stdio.h> #include <stdlib.h> void swapArgs(int *parmA,int *parmB) { int temp = *parmA; *parmA … | |
Re:
Good evening, I'm basically doing a program that does something like this: You enter two integers -4 and 6 which represent intervals Then the loop does this: (-4) + (-3) + (-2) + (-1) + 0 + 1 + 2 + 3 + 4 + 5 + 6 After that … | |
Re:
How to set font style color and bg color; the online examples are very tough ; can ayone give me a easy and understandable code ?? | |
Re:
typedef struct Individual{ int number_of_la; double cost; }Individual; void deleteIndividual2(Individual **ind){ if((*ind)==NULL) return; freeLists2(&((*ind)->MSC),1); freeLists2(&((*ind)->BSC),1); freeLists2(&((*ind)->LA),1); freeLists2(&((*ind)->BS),1); (*ind)->MSC=NULL; (*ind)->BSC=NULL; (*ind)->LA=NULL; (*ind)->BS=NULL; free((*ind)); (*ind)=NULL; } //LAList-LA-LA_BS ,if includeGroup=1 remove all LAList-LA-LA_BS otherwise List and element will be removed void freeLists(Network_Element_List *head,int includeGroup){ Network_Element_List *temp=head; while(temp !=NULL ){ Network_Element_List *x=temp->next; if(includeGroup) freeLists(temp->element->groupHead,0); … | |
Re:
I was asked this question in an interview. Am looking for answers for this: A rectangular array of cells (say m*n) are selected in a spreadsheet (eg: MS excel). Assume that the cells contain only integer values. They need to be pasted to some location within the same spreadsheet after … | |
Re:
I have a form that is used by say 250 employees right now but soon to grow company wide. This form has several line items listed down the page. Every few days I get several sheets in which right now I use tick marks (on a blank pcs of paper) … | |
Re:
I have another question for my homework. Here is the problem: Keep inputting numbers from the user until the user enters a 0. After each number, print a "running average". That is, print the average of the last three numbers entered. Be careful how you handle the first two numbers … | |
Re:
I can make a box with a char quite easily where the user enters two values L, and W using a for loop but I don't know how to make just the outline. I'm told there are 2 if else statements needed and I've nested my for loop. I don't … | |
Re:
[QUOTE]This program was suppose to make a bingo chess game.. but i am totally clueless.. so far the notes i got was jumbled so i have no clue at all.. anyone mind helping me out? This is a sample image that it suppose to look like a bit: [URL="http://img86.imageshack.us/img86/2594/55923788ip0.jpg"]http://img86.imageshack.us/img86/2594/55923788ip0.jpg[/URL] What … | |
Re:
hello sir i'm a new user,i just want to ask if you have sample programs which deals on linked list....if possible not the add.edit,delete program | |
Re:
im having trouble programming , but its suppose to look something like this,, can anyone help out? im a beginner in c++ so i don't know much... tthis are my notes and im not sure how to do it image that it suppos to look like: [url]http://img86.imageshack.us/img86/2594/55923788ip0.jpg[/url] what it would … | |
Re:
Hi, I have been making a program that searches in another process's memory for a value from the user. It works, but it's [B]very[/B] slow. I have used other searchers like TSearch that are really fast. If anyone has a way to make it faster, please help.:-/ Here's my code … | |
|
Re:
Write code to prompt the user to input a character and a number. Then print out the character that number of times. This is one of many questions I must answer, but it will help me get started on my code. |
Re:
I'm trying to use the switch function to compute the resistance of resistors. Basically, a person types in 3 letters, each representing a color; each color has a different value. Then v throws back the resistance by going through the equation. This is what I have so far. [code=c++] #include … |