General C++ Programming (Page 52)

by smosh
Help with Lab!
This is my lab: (A treasure is hidden someplace ! The coordinates (x1,y1) are determined randoml...
[1 reply] : Inside the loop, you have to keep track of the current location of the... (by OffByOne)
Why is the output of the program 1?
Why is the output of the program 1? // Example program #include <iostream> using namespace std...
[1 reply] : When you return you're exiting the function and returning that value. ... (by Pindrought)
Struct Question
So I've been taking C++ classes (3rd semester in school) and I have yet to come across an answer to ...
[5 replies] Last: Even in C, you can initialize structures when they are created: Sped... (by OffByOne)
No matching function for call to [class]
Hey there guys. I'm having this pain in the ass error (No matching function for call to Data::Dat...
[2 replies] Last: I would guess that you have the default constructor of your Data class... (by Norm Gunderson)
pointer to array
#include<iostream> using namespace std; int main() { int *p,*q,a ={5,7,8,2}; p=a; ...
[2 replies] Last: no (by sajid dayer)
string vs wide string hashcode time
I have a "basic" question about the time it takes to compute a hash code for strings because Qt does...
[10 replies] Last: I am sorry about being condescending. I was just very surprised that ... (by primem0ver)
Can I have a class member variable that points to a function in another class?
The goal to create a button class that holds the function that is supposed to be invoked in another ...
[2 replies] Last: Thanks for answering this question.... I had decided to ask it in the ... (by primem0ver)
Creating a Map
So I was assigned a code to make a map using structs and pointers. Can't use classes yet but I thoug...
[no replies]
c++ restaurant menu
this is what i have done for the restaurant menu on c++ . #include <iostream> #include <cctype>...
[1 reply] : what should i do if i would like to print the total price? Amountof... (by Konstantin2)
No operator ">>" matches these operands
I'm making a program that basically takes a first name, last name, and a players team of ten basebal...
[3 replies] Last: indeed. OP you either want a collection of baseballPlayerdatabase obje... (by mutexe)
divRemain(); returns nDivides( / ) and nRemainder( % )
Hey there, I'm trying to run tests on the speed and efficiency of my function. It's called divRe...
[3 replies] Last: #include <stdlib.h> #include <stdio.h> int main() { div_t d... (by kbw)
Why does SFINAE not work here - c++11
struct I_Have_No_Value; struct I_Have_Value { static const int value {};}; template<typename T> str...
[4 replies] Last: thanks a ton ! Marking it solved. (by ustulation)
im stuck
Hey guys im experimenting on void recursive function, and i dont understand why the ouput of this ...
[2 replies] Last: sorry (by theposibility)
So I'm doing an assignment over a 1942 replica and I've encountered an issue where I have to get th...
[1 reply] : cs implies c#. You'd be better off finding a c# forum mate, for exampl... (by mutexe)
by anup30
waiting program
this program waits 3 sec. the problem is that it continues to use 100% of one CPU thread. How to wai...
[6 replies] Last: i found another example from (by anup30)
Problem with 3 lines of code, a simple problem?
Hey everyone, so this is my first post, kind of made it because I needed some help with this progr...
[4 replies] Last: If head is NULL, you need to create a new node first. if (h... (by AndyMc)
Bank Sim SQL
Hi I've built a bank simulator just using an empty project and a .cpp file to write my code. What...
[5 replies] Last: Did you add the sqlite3.c file to your project? http://www.sqlite.o... (by coder777)
List of functions that can create a Unique ID
I'm working on a list of functions that can help create a unique ID for a computer Here's what i ha...
[1 reply] : UuidCreate(): (by coder777)
Replace some elements in text file.
Hi everyone! I have a text file, like that: (A1* * * *A1) * (AM-MNR*AM-MNR) (V*V) (C-A1* *...
[1 reply] : can try posting what you've got so far(just the fil. But I gu... (by rjvc)
by Myna
Need ASAP help with array in C++
I need to write a lottery program that generate 5 non duplicate number between 1-20. Below is my cod...
[1 reply] : for (int i = 0; i < 5; i++); try getting rid of this semi-colon..... (by rjvc)
Pages: 1... 5051525354... 56
  Archived months: [oct2014]

Cannot post in this page. To post a new message, go to the first page.