Beginners - April 2016 (Page 38)

Trouble with code
 
I got Part 1 to work, but having trouble with Part 2 of the problem. Question: Part 1: The program outputs a table of the last 12 months rainfall and ave...
[no replies]
Card Game problem
 
Hi, everyone, i am new to c++. I have been trying to write this code for a while. I am really stuck in converting my code into object oriented with structs. Th...
[no replies]
switch error
 
Why doesn't VS recognise my input as an int? (it says that case i.e. '0' has datatype char?!) int main() { int slct; cout << "\n\t\tWelcome to the De...
[2 replies] Last: Thanks. (by closed account D3R4216C)
very weird bit behaviour
 
Hi, like the title says I'm facing very weird behavior when trying to manipulate some bits. This happens only in VS 2015, in other places everything works fine ...
[3 replies] Last: Thanks you guys very much, did not know about this :) (by etrusks)
by enesdl
Removing elements from vector
 
Hi I have some homework and I am unsure of how to finish this part of the code. I need to remove an element from my vector, but I am unsure of how to do it. On...
[1 reply] : for removing items from a vector review this -> http://www.cplusplus.c... (by DirtyDan)
Operator precedence in C++
 
Can any one tell me operator precedence in C++. + - * / % Kindly arrange order of operator precedence...
[1 reply] : towards the bottom of the page -> http://www.cplusplus.com/doc/tutoria... (by DirtyDan)
problem with lubcurl curl_formadd data type
 
Actually since I am still sort of new to c++, I don't think my problem is really with "curl_formadd" but something to do with the data type that I am passing to...
[2 replies] Last: Well spotted, coder777!! That worked perfectly! My final code looked a... (by mimewear)
Rounding up.
 
Is there any way to force a variable to be rounded up? For example: Shipping is $4 for everything under 1 pound. It's $0.10 for every whole pound after the f...
[1 reply] : http://www.cplusplus.com/reference/cmath/ceil/ (by AbstractionAnon)
by Sam786
Converting decimal, hexidecimal, octal
 
I need this program to be able to convert decimal, hexadecimal and octal, don't know why it does not work. help please. #include<iostream> using namespa...
[2 replies] Last: Use std::hex, std::oct #include <iostream> int main() { //Take i... (by jedaiCoder)
by Kman
Can't find the source of unresolved external error.
 
I'm getting LNK2019, but as far as I know, nothing is wrong with how I called the function. The header file is as follows (BookTesting.h): #include "BookLi...
[4 replies] Last: Does that have anything to do with the error I posted above? No, you ... (by coder777)
need your help
 
Am a dummy in cpp I have been giving Assignment to write a c++ program that must have 1.function 2. Array 3.pointer 4.loop/loop control 5.recieve input...
[3 replies] Last: This is not a homework site. We won't do your homework for you. Howeve... (by AbstractionAnon)
Fuel costs Loop Assignment assistance
 
For the most part everything is executing perfectly. The only thing I cant seem to get to work is the formulas to calculate the miles per gallon; which register...
[4 replies] Last: You forgot to initialize a "totalFuel" variable. Currently all you ar... (by Lothcarn)
Putting 100 random integers into an array and displaying the sum,average etc.
 
Hello Guys!! Everything about my code is working perfectly fine the only thing Im trying to figure out is why when I try to print 10 integers per line I am unab...
[1 reply] : it worked for me, although I had to add in a couple brackets... //... (by DirtyDan)
by Sam786
need help with an assignment
 
need a program that will meet this criteria Write a program that does the following: Displays the message “Give me a number (X)” Asks for the b...
[4 replies] Last: @Sam786 Explaining to you how to best use this forum so that you get t... (by MikeyBoy)
Class template for stack in C++
 
Here is the original requirements: Write a class template for a linked-list implementation of a stack. The stack class must have the push, pop and isEmpty func...
[1 reply] : Your code looks good so far. The only comment i have is that you can ... (by dhayden)
by Amoun
Segmentation fault (core dumped)
 
I have a loop for in which I try to call a function sum float sum(cv::Mat img, int startedY, int startedX, int w) { std::cout << "started x=" <<startedX << "...
[2 replies] Last: Now I'm sure the function is called once,the problem is not about rows... (by Amoun)
Writing a code to multiply a multidimensional array by 2
 
I just have a question regarding an assignment that involves multiplying a multidimensional array by 2. This is what the assignment reads. "Write a program c...
[4 replies] Last: @ OP, to give you an idea, look at line 39 - 52. /* "Write a program... (by chicofeo)
Trim method in vb.net
 
( Trim ) method in vb.net my code : Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Butt...
[1 reply] : Please don't double post. I explained in the other thread. (by Thomas1965)
Nice Programme to find BINOMIAL COEFFICIENT
 
//programme to find BINOMIAL COEFFICIENT - formular - n!/k!(n-k)! #include<iostream> #include<cstdlib> using namespace std; bool validateInput(int n, int k); ...
[2 replies] Last: hmm.. ok, thanks here its done now.. i correct some of my coding mist... (by Nisal Priyanka)
Prompt skipped and error reading a file.
 
So, here's my conundrums. First, for some reason, the program skips the prompt for name (line 65-66) and goes straight to street. The code is written the same...
[3 replies] Last: Hi Josh, I also have to complete a Postal Barcode project and would li... (by ThroughThe6)
April 2016 Pages: 1... 3637383940... 43
  Archived months: [mar2016] [may2016]

This is an archived page. To post a new message, go to the current page.