General C++ Programming - March 2017 (Page 12)

My Linked Array ADT Keeps crashing.
 
So, I've been struggling with this assignment for a while.. At first I thought I had the issue solved when I was finally able to get the thing to compile, but n...
[1 reply] : I suggest you go back and add braces to all of your control statements... (by jlb)
Need Help With Compiling (Over stack error)
 
So I had this for my assignment and I have submitted it but I am having trouble compiling. Can anyone help me out ? Credit Card Number Validation (100...
[6 replies] Last: Thanks.I installed a standalone compiler (code blocks) and it compiled... (by kharis820)
2 Arrays (1 even, 1 odd numbers)
 
How could I create 2 arrays; one that holds only even numbers and one that only holds odds? They will both hold N number of elements in which N is inputted by t...
[4 replies] Last: ok, the pointer solution works. I don't understand what you said, bu... (by jonnin)
How to use make_shared for making the instance of singleton class. Instantiating singleton class gives error.
 
Hi ppl :), I am trying to make instance of singleton class using make_shared. Getting error while instantiating the singleton class. Kindly note that if we ...
[1 reply] : As the compiler said, your call to std::make_shared requires a default... (by Cubbi)
Is it possible to use C++ to open an application and edit info?
 
Hello, I am very new to C++ and was wanting to take on a small project. At my workplace, there are times when we have to manually open up an application, log...
[1 reply] : C++ is a hybrid language and supports inline assembler language as wel... (by jonnin)
by bbiz
Singleton Class destructor C++
 
I started working on a system modeling project a couple of weeks ago and have run into a situation where I believe I may need to use a Singleton Class, albeit, ...
[1 reply] : It depends on how you implement the singleton. If the instance is a lo... (by Peter87)
Shouldn't a constexpr function be evaluated at compile time?
 
Hi, shouldn't the following constexpr function get() be evaluated at compile time? Why can I step into it at runtime? template< typename Dimension > s...
[3 replies] Last: Thank you once again JLBorges for your unmistakable speed and depth at... (by JUAN DENT)
Help with Decision Program
 
I need some help on an assignment on an introduction to programming class. My goal is to ask the user for a number of seconds and determine how many minutes, ho...
[3 replies] Last: #include<iostream> #include<complex> using namespace std; int main()... (by sujitnag)
A *prt in the right dir; help2Sort photos w/ images
 
Looking for C/C== ideas/concepts to design home system to sort images ( jpeg/bmp/png's by Friend, User, Date, Purpose, Location,& 2-3 others. -Catch being that...
[3 replies] Last: @OP Probably out of the question given you want to go it alone https:/... (by closed account 48T7M4Gy)
i need to convert this code to read from a file called lineup.txt
 
#include <iostream> #include <string> using namespace std; int main() { //Declare variables int numStudents; int count = 0; //Get input cou...
[2 replies] Last: If the program is called prog, then just run it from the command line ... (by dhayden)
While Loop Not Ending in Main Function
 
#include <stdio.h> #include <string.h> #include <stdlib.h> struct hash *hashTable = NULL; int eleCount = 0; struct node { int key,...
[2 replies] Last: If I run the program and enter option 5, it terminates. What input ar... (by dhayden)
C++ compile error ! (1,2)
 
Hey ! I've tried several time to compile and coorect the messy code of a server software, and unfortunately all my attemps result in the same 5 errors : L...
[32 replies] Last: How could you expect that when you neither answer the questions nor p... (by AbsolC85)
expected unqualified-id before '}' error on LinkedArray
 
I'm trying to create a header for my LinkedArray class and I keep getting this error.. I can't pinpoint the issue, so any help would be great. Usually when it's...
[1 reply] : template <class myUnit> { lines 89-90 what is this - a template clas... (by gunnerfunner)
Error 193!!!
 
When i compiled all codes it has an error and it says failed to execute "C\your c folder directory\main.exe" Error 193 %1 is not a valid win32 application. ...
[3 replies] Last: Maybe better then to create reate a new project and paste your code in... (by Thomas1965)
scheduling program
 
how i can do that in c++ i can not know how i can start ? Assume there are three (or any number) concurrent processes running on a system (with single CPU). T...
[1 reply] : So, what happens when you run it? Does it run? What results do yeou ge... (by closed account 48T7M4Gy)
There is a segmentation fault in this function
 
I need help finding the cause of segmentation fault. void MainWindow::tagfound(QNearFieldTarget *target) { QByteArray id; id=target->uid(); qD...
[1 reply] : line 12 for(unsigned int i =0;i<=list.size();i++) The middle condit... (by wildblue)
Memory Allocation
 
Smart people out there, I need your help. I have basic knowledge about C++ first of all. I got a task to make a simulation of a memory allocation using the ...
[3 replies] Last: something on these lines? #include <iostream> #include <memory> #inc... (by gunnerfunner)
Quadratic Equation
 
So this is an exercise for a C++ class and i got a task: How many real different solutions does an equation: ax2+bx+c = 0 has. Input is: -10^6<=a,b,c>=10^6 ...
[8 replies] Last: Oooh so that's what i was missing.. I was caught up in an idea that ma... (by Tomheza)
Pointers in function
 
I lost track of pointers at some point. Can anyone help me to find the bug? Thanks, // ptrtest1.cpp // tests sum, maxPtr, minPtr and valueDiff functions #in...
[3 replies] Last: void printTable( double *values, int n, int perRow ) { if( value... (by integralfx)
coroutine usage
 
I have the following questions: 1)what is 'coroutine'? 2)'coroutine' purpose? which advantages can 'coroutine' take? 3)some examples?
[1 reply] : Boost.Coroutine Introduction explains what coroutines are, why they ar... (by JLBorges)
March 2017 Pages: 1... 1011121314... 19
  Archived months: [feb2017] [apr2017]

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