Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
6
Posts with Upvotes
5
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #12.3K
Ranked #2K
~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for techie929

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 …

Member Avatar for shashwat_2010
0
132
Member Avatar for c1979h

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 …

Member Avatar for c1979h
0
202
Member Avatar for jprogram

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?

Member Avatar for craig_ka
0
111
Member Avatar for Takarakujin

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 …

Member Avatar for Software guy
0
74
Member Avatar for johndoe444

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?

Member Avatar for craig_ka
0
141
Member Avatar for Slobodino

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 …

Member Avatar for craig_ka
0
128
Member Avatar for gregarion

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; …

Member Avatar for metdos
0
102
Member Avatar for Rmitboy

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 …

Member Avatar for Salem
0
152
Member Avatar for Schottenhemir

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 …

Member Avatar for Schottenhemir
0
207
Member Avatar for kjock002

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 …

Member Avatar for craig_ka
0
71
Member Avatar for wale89

[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 …

Member Avatar for craig_ka
0
630
Member Avatar for bsdbum

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 …

Member Avatar for bsdbum
0
424
Member Avatar for Someguynamedpie

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] …

Member Avatar for mrnutty
0
848