43 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for joshl_1995

Hello Daniweb Community, I have recently been thinking about switching from a Wi-Fi connection to a direct connection over ethernet, however when I tried an ethernet connection from my router to my PS4, I calculated the average download speed after about 5 Wi-Fi connection tests and 5 ethernet connection tests …

Member Avatar for joshl_1995
0
448
Member Avatar for DS9596

The total bill doesn't add up correctly, don't get where I went wrong? Total bill is way off. #include <iostream> #include<cmath> #include <iomanip> #include <string> using namespace std; const float Small = 1.20; const float Medium = 1.50; const float Large = 1.70; const float less_inches = 3.75; const float …

Member Avatar for DS9596
0
253
Member Avatar for Auroch

Hello everybody! I'm trying to count the number of occurrences of each word in a text file. Problem situation requires to realize menu using "switch" statement (If file exist or not). There are following errors in my program ("case b" and "default" is not working): **[C++ Error] 03_int.cpp(61): E2126 Case …

Member Avatar for Auroch
0
966
Member Avatar for Damian_2

Okay so I have an `inventory` class that accesses a static vector from my base class `MainShop`. I also have a `SwordShop` class which inherits from `MainShop`. (Both Inventory and SwordShop are derived classes). //SwordShop class void SwordShop::Shop { //I have a setter function where it takes an integer and …

Member Avatar for Damian_2
0
332
Member Avatar for Emma_3

This program is supposed to run through the menus to eventually display the area or volume of a shape depending on the user's menu choices and input. However, it won't run the final menu and I'm not sure why. There aren't any problems when it goes through the debugger, it …

Member Avatar for AndrisP
0
217
Member Avatar for adil.ghori

hey everyone, hope you people alright there. I got a computer lab and it is on 16 computer, had done networking and switches and everything of basic, what else I can do with the but dont have a server and i dont need one, but i want to apply some …

Member Avatar for KOFI_1
0
254
Member Avatar for Ikanda Simeon

Am having problems converting from if-else statements to switch statements and vice-versa

Member Avatar for L7Sqr
0
190
Member Avatar for Triryche

I know I have a fundamental problem, I do not fully understand List objects. Based on a user input from a list box I want to creat a different list named `icons`. I previously had issues with the `switch` function, seemed I was doing it at the class level, so …

Member Avatar for Triryche
0
259
Member Avatar for dannybarh

Hi all, am trying to use bootstrap switch in my form. Am at a lost as to how to get the value of name="onoffswitch" from that field and insert it into mysql db, here is my code... div class="onoffswitch"> <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" checked> <label class="onoffswitch-label" for="myonoffswitch"> <div class="onoffswitch-inner"></div> …

Member Avatar for dannybarh
0
3K
Member Avatar for mrgreen

I was just curious to see if anyone has dealt with HP Procurve switches (preferably 8200zl or similar). If so do you know of any tools to practice configurations? I have found several config examples on HP's website, but they are pretty basic and don't go into too much depth.

Member Avatar for rubberman
0
179
Member Avatar for ddanbe

I have no problem of putting a break statement in the default option of a **switch case** statement, just wondering why it is needed. Anyone any ideas? int a = 42; switch (a) { case 1 : case 2 : //statements for case 1 and 2 break; // probably more …

Member Avatar for ddanbe
1
356
Member Avatar for JavaGr33nh0rn

import java.io.*; import java.util.*; import java.util.Scanner; public class cooperativeCanteen60 { static Scanner console = new Scanner(System.in); static Scanner sc = new Scanner(System.in); public static void main(String[]args) { //throws java.io.IOException { Scanner in = new Scanner (System.in); int type; int discountRange; int discount; int customerType; int number; int rtotal; int vtotal; …

Member Avatar for JavaGr33nh0rn
0
254
Member Avatar for enkitosh

Hey everoyne. I'm wondering If it's possible to construct a switch statement which takes in a character and determines weither that character is a number or not, or an alphabetical number. switch(i) /*character*/ { case '0': /*ok it's a number, doesn't have to be zero, any number from 0-9*/ case …

Member Avatar for enkitosh
0
307
Member Avatar for PriteshP23

I would like to know the best way to manage the two drop down menu on the PHP page. 1st menu : Select Type of House (House1, House2, ) 2nd menu : Select Number of Rooms (1,2 .. 12) The system should be displayed price based on selected items. Need …

Member Avatar for PriteshP23
0
287
Member Avatar for 111100/11000

When it gets to cout << "Chose direction of rotor 1:" << endl; cout << "*(i.e.:enter 1 for left and 2 for right)" << endl; and i enter 1 or 2 it couts "Wrong choice" #include <iostream> #include <string> #include <cmath> using namespace std; //global varibals: char alphabet_of_rotor1[26]; char alphabet_of_rotor2[26]; …

Member Avatar for Schol-R-LEA
0
114
Member Avatar for chirag_mittal

Hello, I was given a question a few few days back to write a program that lets a user enter a value for an angle and quadrant in which the angle lies is printed using switch statement. I was able to make this program using if-else very easily but making …

Member Avatar for chirag_mittal
0
464
Member Avatar for zacharysr

Im building a control panel on my website to cover a bunch of stuff for my website. It makes viewing each member and video, website etc alot easier. But im building a table for my members. And i have it layed out pretty good. but there's one issue. When you …

Member Avatar for weekendrockstar
0
300
Member Avatar for konman795

Hi all, this is a homework assignment that I'm not sure how to begin with. We are given all the code and I just need to finish a function to convert digits to words. For example, the string "1, 2, and 3." becomes "One, Two, and Three." The String "10" …

Member Avatar for konman795
0
338
Member Avatar for DevNet

Hi guys. I just having a little problem about creating a good console GUI for our homework. My program is just a simple shopping cart program where in we were asked to create a GUI that asks for the user if he is either a ADMIN user or a CLERK …

Member Avatar for rushikesh jadha
0
150
Member Avatar for dee101g

Am setting up a remote access server in an environment that includes a DellConnect 2824. This office was 'given' this device, no documentation. Problems: 1) I have downloaded the manual and read it, but have not been able to access the device to get into the management. Am planning to …

Member Avatar for dee101g
0
208
Member Avatar for Adami

Hello All ! I'm trying to write a Robot Class who have several methods. One of its methods is move() that move the robot the direction his looking at, one step ahead. I'm getting an error on this: [CODE]switch (Direction) {[/CODE] If some one can help me find the mistake, …

Member Avatar for Adami
0
375
Member Avatar for Octet

I am creating a database search and I am having a bit of issue when I want to return to my main menu. I have attempted to use loops with no success, could anyone suggest how I can do this? [code] #include <iostream> #include <fstream> #include <windows.h> #include <string> using …

Member Avatar for Octet
0
298
Member Avatar for javaNooblet

Hi All, I am currently trying to figure out to finish this project. Below is my code that I have so far. There are some blank methods that I am not sure where to even begin on how to complete them. I have a description of what the methods should …

Member Avatar for NormR1
0
2K
Member Avatar for meyumi_lelouch

I am trying to make a program that will list all the National Heroes of our Country. We used the switch statement. [CODE]#include "stdafx.h" #include "iostream" #include "stdio.h" #include "conio.h" using namespace std; int main() { int choice,desc; char repeat; cout<<"\t\t\t\tPhilippine National Heroes\n\n"; cout<<"[1]Dr.Jose Rizal\n"; cout<<"[2]Andres Bonifacio\n"; cout<<"[3]General Gregorio Del …

Member Avatar for Anuradha Mandal
0
834
Member Avatar for Efficience

I have written this C code in which I'm declaring a variable inside switch body with initialializing it to 10.But when I'm running this code it is printing some garbage value. [CODE]#include <stdio.h> int main() { switch(2) { int x=10; case 1: printf("Case 1: %d\n",x); break; case 2: printf("Case 2: …

Member Avatar for Efficience
0
447
Member Avatar for baby_c

Dear friends, I'm developing a software for one of our assignments. But the problem is I's still learning these things.But since I have bunch of Java expert friends I have no fear to face it ;) .So friends this is the code. [CODE]package census; import java.io.*; public class Main { …

Member Avatar for baby_c
0
158
Member Avatar for naffan

Hi all, I'm just finishing the code part of an assignment I think I have everything working as intended with the exception that After either the prime number or stamp duty methods complete (A & B options) they don't "flush" the char choice (under the getChoice method ) The vowel …

Member Avatar for JamesCherrill
0
5K
Member Avatar for reezox

i try to change this scrip into jsp but i stuck at switch statement - switch ($_GET['action'].. Please someone help me.. (T_T) [B]menu.php[/B] [ICODE]<li><a href="index.php?action=home">Home</a></a></li> <li><a href="index.php?action=aboutus">About Us</a></a></li>[/ICODE] [B]index.php[/B] [ICODE]<td width="20%" valign="top"> <?php include ('menu.php'); ?> </td> <td width="85%" valign="top"> <?php switch ($_GET['action']){ case 'aboutus': include 'aboutus.php'; break; case 'home': …

Member Avatar for reezox
0
137
Member Avatar for Robbie Y.

Hey guys! I'm trying to write a program that involves a switch/case on Microsoft Visual Studion 2010. Unfortunately, some of my variables are not being initialized. I am a very novie programmer so please have mercy on me! Two of my options (1,4) are working but options (2,3) are not. …

Member Avatar for Robbie Y.
0
168
Member Avatar for The physicist

Hi all, I'm sure it's an error by me, but I'm having a problem with ifstream inside a loop. The reason for the loop is read in a piece of text from multiple files, and cases within the switch statement change the filename, path is previously declared. The first iteration …

Member Avatar for The physicist
0
2K

The End.