General C++ Programming - May 2016 (Page 12)

Jacobi Iterative Method Issue
 
Hi all, Attempting to create a program that uses the Jacobi Iterative Method to solve an 'n'-dimensional A.x=b system (which I can then base Gauss-Seidel progr...
[4 replies] Last: Better than defining the double abs(double ABS) function would be to... (by doug4)
how to change from for loop to while loop
 
#include<iostream> using namespace std; int main() { int length; cout << "Enter the length of the hollow square\n"; cin>>length; for(int i=0; i<l...
[1 reply] : #include <iostream> using namespace std; int main() { int length =... (by tipaye)
Intersection of Rectanges
 
Hello everyone, I am stuck in this assignment where I need to find intersection of squares. So far I created a vector of squares( there are only 3 squares nec...
[11 replies] Last: I understand your logics, dhayden. But in my case it is a little diffe... (by nikgun1984)
Program using trees or stacks or lists
 
Hello all. I'm new in this language and I need help to solve a problem. I have to make a program using trees or stacks or lists, I don't have to use combinatio...
[1 reply] : This is not a homework site. http://www.cplusplus.com/forum/beginner/... (by Thomas1965)
loop will not break
 
Why wont the break statement exit my code the values themselves don't matter but when roomType = 0. I know they are equal i displayed it. The loop won't break. ...
[1 reply] : What you have shown us here won't compile. What loop are you expecting... (by Moschops)
delete plz
 
.
[no replies]
Templates and Function Pointers
 
Really scratching my head on this one; Brief Trying to get this code to compile; It fails when I try to call the instance method on the object, for some reas...
[1 reply] : You do not have a function pointer. You have a pointer-to-member-funct... (by LB)
What is a c++ api
 
i want to make a sprite based platformer in c++ and everywhere i look says i need an api to put sprites and c++ code together but i dont know what one is or how...
[3 replies] Last: How about using SDL 2.0 graphic library. This site has some good tutor... (by KMagic)
A problem about matrix
 
Hi! I have a homework to do but I can't solve one thing. Homework is about matrix. We ask to user a matrix. Then we should scan the matrix by 3x3 matrix an summ...
[1 reply] : #include <iostream> int main(){ int m = { {0,1,2}, {3,4,5}, ... (by ne555)
Task - algorithm problem
 
Hello, I need help solving a problem I have encountered. We have a map NxM filled with '.' ,'#' and one 'x'. '.' are passable fields '#' are blocks 'x' is t...
[4 replies] Last: I think that you didn't understand the problem, I know how to explore ... (by topnik1)
HELP PLEASE!!!!!
 
Problem to solve: The political party in power wants to ensure his victory in the next elections. Therefore you want to have a database of their supporters t...
[1 reply] : This is not a homework site. We won't do your homework for you. Howeve... (by AbstractionAnon)
Just started linked lists. Need help:
 
I've just started learning linked lists and I'm having trouble with this code: #include <iostream> #include <conio.h> using namespace std; struct link{ ...
[1 reply] : #include <iostream> #include <conio.h> using namespace std; struct ... (by topnik1)
by dkaip
shutdown Mint OS
 
Hello. I am trying to shutdown Mint OS from with a dialog but nothing works. What is wrong? void shutdownLinuxDialog::OnAbout(wxCommandEvent &event) { w...
[2 replies] Last: Ok but how a program can shutdown without root privileges? For example... (by dkaip)
Help! Every time I compile it tells me "A function definition is nor allowed here before '{'"
 
The purpose of this program is to illustrate one use of void functions and reinforce use of value returning functions. The program will function as a calcul...
[2 replies] Last: Thank you, i'll check it out. :) .. I'm new to C++ so it's not really ... (by cpluspluschick)
by f0xie
Need help with char arrays
 
hey all I can't figure out how to get this working : / if anyone could help it'd be appriciated :) #include <iostream> #include <cstdlib> #include <c...
[2 replies] Last: Thanks, works now :)) i appreciate it was such an easy solution haha (by f0xie)
stuck on function pointer
 
I keep getting the same error repeatedly and have tried to fix the second function pointer but no luck. Would appreciate some help here. #include<iostream> ...
[3 replies] Last: int(*char_ptr)(int a); char_ptr = pass_char; Notice how int(*char_... (by Ready4Droid)
Beginning C++ Student That Needs Help With A Median Function Programing Challenge :-(
 
Here is the problem: In statistics, when a set of values is sorted in ascending or descending order, its median is the middle value. If the set contains an...
[6 replies] Last: Thank you very much for a proper code. Now I'm just trying to figure o... (by jlbrown314)
Sound library and tutorials?
 
I know it's been awhile since I last posted on here but I have another question. Could someone tell me of a good sound library and tutorials on how to use it...
[no replies]
by pabs8
including boost directory path to compiler and linker library path
 
I've already built the Boost libraries. But I need to add somehow C:\boost_1_60_0 to the compiler include paths; I'm using VS 2015. I also need to add another...
[4 replies] Last: Thanks for your kind answer. I'll give this a try again. (by pabs8)
Removing multiple elements and keeping order
 
I have written a program that will remove value in the location as given by the user in my vector; but, I misunderstood what I needed to do with my function. I...
[2 replies] Last: Thank you, I am working on writing the new function now. I believe I s... (by The117Vendetta)
May 2016 Pages: 1... 1011121314... 17
  Archived months: [apr2016] [jun2016]

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