- Upvotes Received
- 6
- Posts with Upvotes
- 5
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
Hi everyone, I am trying to save ip addresses and mac addresses of a node in a structure.I dont know how to assign values.Please help. [CODE] #include <stdio.h> #include<iostream> #define nodes 15 using namespace std; struct nodes_struct { char ip[19]; char mac[19]; } ; int main() { char ip[19],mac[19]; nodes_struct … |
|
Re:
I have one error in my code Error 1 fatal error C1075: end of file found before the left brace '{' at line 50 The program is suppose to ask the user for a filename, read and display the file. Then show 24 lines per screen. I thought I checked … |
|
Re:
I have tried to fill an array with randoms numbers between zero and nine. The code I have used so far is this. int a[40], b[40]; for (int i=0; i<39; i++) { a[i]=(0 rand() % 9); b[i]=(0 rand() % 9); } Why will this not work? |
|
Re:
I want to hold user input strings in an array and be able to print it. Is there a way for me to hold string 1 in arr[0], string 2 in arr[1] and so on and so forth? heres what Im thinking [CODE] int p=1, r=3, l=0; char arr[255]; while(p … |
|
Re:
In some c++ source code I wrote this: [CODE]#include <iostream.h> using namespace std; [/CODE] [CODE]error: iostream.h: No such file or directory[/CODE] I compiled it using g++. But when I changed it to #include <iostream> it started working. Why? |
|
Re:
I need an algorithm for the following problem: There's a tree with N fruits each with its own weight w[i] and height h[i]. I can only reach a fruit if it's no taller than H inches. Also every time I pick a fruit, all the other fruits in the tree … |
|
Re:
Hey guys, i been looking through at questions regarding roman numerals and i have a question. i ran some of the coding which i found and i dont quite understand this part.. [CODE] int number = 3000; int number2 , i ; number2 = number / 1000; for(i = 1; … |
|
Re:
I write a C program that reads a text file and copies it to standard output, adding to the start of each line the line number and the number of characters in the line. For example, if file contained the following: Hello Daniweb forum How are you today? Good day … |
|
Re:
I'm supposed to output a program that comes out like this: [URL="http://img638.imageshack.us/img638/4135/screen3t.jpg"]http://img638.imageshack.us/img638/4135/screen3t.jpg[/URL] And here is the top part of the code. It is supposed to read a .txt file that has the numbers of the: flight; passengers; and miles; [CODE]int flight, passengers, miles; float income, cost, profit, base, fuel; ifstream … |
|
Re:
the question is: "Sum of a series of numbers entered by the user until the value 999 is entered but 999 should not be a part of the sum" at first i thought the question was asking for the sum of user entered numbers until the sum reaches 999. after … |
|
Re:
[QUOTE]Hello..can anyone help me in order to solve this problem regarding the collision that happend.. I use the modulo-division hash function and intended to use the chaining solution method to resolve this collision but i got stuck.. because i dont really have the full knowledge in link list..Can someone that … |
|
Re:
Hello. This is my first posting so I will try to be as detailed and clear as possible. I am running into a problem with a method returning an incorrect value and I can't quite seem to figure out why. I'm building a Rolodex which is really just an object … |
|
Re:
I'm making a library for myself, and I keep getting that error :( Pib.h: [code=cpp] #pragma once #include "stdafx.h" #include <iostream> #include <string> using namespace std; class Pib{ public: void echo (int Text); void test(void); }; void Pib::echo(int Text){ printf("Haha: "+Text); }; void Pib::test(void){ cout<<"Text"; }; [/code] Main File: [code=cpp] … |