- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 8
- Posts with Downvotes
- 4
- Downvoting Members
- 7
23 Posted Topics
Hello, I am trying to make a page which has some pictures and the user can view more pictures by clicking an arrow to scroll horizontally. So, how I can do the horizontal scrolling?. Thanks, | |
Hello.... I am running a C++ program that takes an N array and reads a from a file. One requirement of this project is that it returns an elapsed time of each function so the function efficiency can be calculated based upon an input. I am attempting to implement the … | |
Hi, I need to store each path in a tree as a row in a two dimensional array of size #of paths x N. I couldn't find the appropriate indexing scheme for the array. Any ideas would be appreciated. Thanks, | |
Hi, When I run my program it crashes and a message that an asseration failure happened appears. when I debug the program it points to following: [CODE]for ( i = 0; i < delta*d; ++i) delete [] o[i]; delete [] o;[/CODE] I create this array as follows: [CODE] int **o; … | |
Re: U need to divide by 60 not 100 to convert minutes to hours. | |
Re: Your assigment operation is wrong . You should write it this way: [CODE]if(side==1) socost=0.89;[/CODE] You initialize socost as an integer so you shouldn't assign a string to it. To display the order you can do the following: [CODE]if(side==1) {cout<<"French Fries: 0.89"<<endl; socost=0.89; }[/CODE] And do the same for the rest … | |
Re: the array has positions from 0 to size-1. so if u declare operation[1] then the array have one element which is operation[0] not operation[1]. | |
Re: I think the problem is that ur code is entering an infinite loop in the I_simpson function.. because in the for loops u didn't put a condition like (i<n-1) for example . also the same thing for the other for loop u just put n. the value of n is … | |
Re: Could u plz show us the format of the file? also when u are reading the file u declare the variable as char or some thing else? | |
Re: if u use separate loops .. then u are only saving the last value of e in the first loop. | |
Re: [CODE]cout << "enter number 1": << endl;[/CODE] the " should be after : not before. [CODE] total salesprice (after salestax) = sales_price + tax[/CODE] u didn't declare the variable total and u can't name variable like this don't put spaces and ( ) in the name of the variable.. u … | |
Re: In the cout statements u don't but ; before << operator. for example if u want to display a variable between text u write it this way: [CODE]cout << "Your 2005 Ford Bronco costs "<< cost << " $ after sales_tax"; [/CODE] | |
Re: Try this for the Draw() function: [CODE]for(int i=0;i<width;i++) {cout<<"%"; for(int j=0;j<lenght-2;j++) { if(i==0 || i==width-1) cout<<"%"; else cout<<"@"; } cout<<"%"<<endl; }[/CODE] In the set functions i don't thing u need to declare the variables already declared in the class.. | |
Re: Initialize the z variable before the loops and increment it in each iteration of the j loop. | |
Re: [code]#include <iostream> #include <fstream> #include <sstream> #include <string> #include <stdio.h> #include <stdlib.h> #include<cmath> using namespace std; int main() {int d; char mon[10]; cout<<"Enter the date"<<endl; cin>>d; cout<<"Enter the month:"<<endl; cin>>mon; if(( (0 == strcmp ("dec",mon)) && ( d>=22 && d<=31)) || ( (0 == strcmp ("jan",mon)) && ( d>=1 && … | |
Re: I think u need to remove the equal from this statement if(num/10>=1) | |
Re: Where is the main function ! you can't run C++ code without the main function | |
Re: Try this: double sum=0; for(double i=1;i<=10;i++) sum= sum+(1.0/i); | |
Hi, I want to write a java program that send a file through cable to another PC automatically in specefic time.. I don't know which cable to use(crossover or usb) and how to read and write from the serial port.. i tried to do it in VB(with help from some … | |
Hi... [code]// read the whole file through one line at a time while(getline(in, line)) { // check does this line start with the tag string 'SER(FIT):' ? // note: there must be no tabs/spaces at the start of the line if(0 == line.find(tag)) { // yes it does, then use … | |
hello .... I need a java code that convert from eqn ( or bench ) format to verilog format.... Does anyone has an idea?! Thanks in advance.... | |
hello... I need a c++ ( or java ) code that convert from eqn ( or bench) format into verilog format... Did anyone has an idea?!! Thanks in advanced...... | |
hi.... I need a c++ code that read a log ( Contains numbers and letters) file and compute the average.... This is a sample of the log file.... ********************************************************** Input vector # 99: OUTPUT: 0 1 0 1 0 **** Vdd = 1.8 **** Tclk = 0.1 **** SER(FIT): 1.1e-002 … |
The End.