Simple Console Calculator
Hello everyone, I'm trying to make a simple calculator that doesn't care about priority and only do operation linearly. Example: 4 + 5 * 2 = 18 Here's my code so far: static void Main(string[] args) {...
View Articleprinting unexpected output
i am just learning about a++, ++a, a=a+1 .....so i write a code to understand it. but it is printing unexpected output. i think output should be 1 2 2 but i am getting 3 3 1. what does it mean ?...
View ArticleEfficient removal of duplicates in unsorted linked list
I've written a method that accepts as a parameter an unsorted linked list and removes any duplicates found. The following is my code: public static<T> void remove(java.util.LinkedList<T>...
View Articletrouble with If statements
Well I've always had some problems with this, but I can't seem to find any answers. I'm asking for you to look at the second section of code, when I run this code and reply to "so your name is (name)?"...
View ArticleDynamically allocate an array and find the mode.
This is the Question? In statistics, the mode of a set of values is the value that occurs most often or with the greatest frequency. Write a function that accepts two arguments: • An array of integers...
View ArticleDynamically allocate an array and find the mode.
This is the Question? In statistics, the mode of a set of values is the value that occurs most often or with the greatest frequency. Write a function that accepts two arguments: • An array of integers...
View ArticleJava Video Game Selector Errors
Hi, I am currently struggling with this code i am working on and was wondering if someone could help me determine what i am doing wrong or where my mistakes are. If you could please help, I would...
View Articlevhost not working
hi i am unable to define vhost on local machine. please check below enabled Include conf/extra/httpd-vhosts.conf httpd-vhosts.conf <VirtualHost *:80> ServerAdmin ramesh@thegeekstuff.com...
View ArticleWrite data into text file
Hi. I have to write simple program in assembly (using tasm for compiling) which will add to numbers and save their sum into text file. I have managed to do first part, but when trying to save sum into...
View Articlefrom c to c++
please how can convert this code from C to C++ #include <stdio.h> int main() { int N; for(;scanf("%d",&N) && N!=0;printf("%d => %d\n",N,N*N-N+1)); return 0; }
View ArticleBasics of Page Replacement
Hey there, I'm fairly certain I understand how page replacement works (and I did very well on all of this class' exams). I'm onto the programming project now and I am stuck at a bit I cannot figure out...
View ArticleIm having issues coding css
HI all, so first of all the following code works, it pulls out cars from a database and displays it on a table on my website. The problem I am having is formatting the table with css code I want to be...
View ArticleUnable to properly Implement KeyListener class
Hello everyone, I am new to the site, and also to programming. I have been watching some tutorials and trying to research best i can on the java language for about a week, and believed i was getting...
View ArticleProblem Calling Function Twice At The Same Time
Hello There, I am currently making a game using Qt and C++. In the game I have a small function called MoveTo and this function moves an NPC to a specified location. This works perfectly fine. However,...
View ArticleHaving trouble with comparison of MergeSort and BubbleSort
Hey everyone! First time here! As the title suggests, I'm having trouble making a comparison between a slow sort, specifically MergeSort, and a faster sort, specifically BubbleSort. According to the...
View ArticleLinked List with PNode
I am trying to implement a linked list that defines a PNode class. The data field of PNode points to a Person object, and the link field points to the next PNode in the list. The user enters in a name...
View ArticleError Messages
I don't understand what i am doing wrong. I am getting the following error messages: invalid conversion from `const char*' to `char' missing template arguments before '.' token I am making a inventory...
View Articlehow can convert this code from C to C++ because i don't have any i
mmm no i'm not IT person i wanna just make a small comparison between two codes and i spend a lot of time to study this is code i know its very easy but i need it please #include <stdio.h> int...
View Article"Navigation to the webpage was canceled" webbrowser error
Okay, so i fixed my error that i posted about in another thread, but now i'm having a new error. Whenever i try to make the webbrowser redirect, i keep getting the error of "Navigation to the webpage...
View Article[C] Dynamic array of structs or pointers?
Hi DIC, I just have a quick question, and I might follow it up with a more involved problem with code later. Note: I'm referring to character arrays as strings here, for simplicity. I want to make a...
View Article