General C++ Programming (Page 2)

C++ delay() problem
Hi guys, I am trying to make a program that output "Loading", then delay for 1 sec, then output "."...
[4 replies] Last: @Kinyo356: (by cire)
Error Vectors out of range
The error says Error: Vector subscript out of range i have 3 chosen for k, i do not see how it is o...
[2 replies] Last: i got rid of ( numbers ) but now the output 0-9 10times...and if i... (by nameishi)
My static library project is somehow related with my 'test' project
Hello. I've made my own Static Library project on Visual Studio. The problem is this: unless I...
[10 replies] Last: Thanks to everyone ;) (by gedamial)
by Kubani
Using malloc and free in C++
Hello all, I'm working on an exercise that says I should using the following My_allocator class d...
[3 replies] Last: It looks like deallocate should just free the space that allocate() cr... (by dhayden)
#include<iostream> #include<stdlib.h> #include<conio.h> using namespace std; const int s=50; int...
[2 replies] Last: Yes you are right. Thanks. (by gaurav97)
bubble sort error
#include<iostream> using namespace std; void swap(int&a,int&b) { int temp=a; a=b; ...
[5 replies] Last: THIS IS A SIMPLE VERSION OF YOURS. HOPE IT HELPS... #include<iostream... (by Kinyo356)
by kalki
Finding out no of 1's in a given no ??
How to find number of bit set in any given number ? Say int x=7; Number of 1's set in x are 3
[1 reply] : In three steps: 1. Your number mod 2 to get the final bit's value. 2. ... (by NT3)
Unresolved issue
I get the error 1>Rpn.obj : error LNK2019: unresolved external symbol "public: void __thiscall Qu...
[9 replies] Last: Ok. make elements of type float then :+) And make Queue::add ac... (by TheIdeasMan)
Double Digit sort issues
In the code below I have created a simple bubble sort algorithm. It works for the most part but for...
[2 replies] Last: Right, that makes sense, thanks (by AgentNoise)
Vector Inventory problem fixed
This is my implementation of a vector based inventory system. I had a lot of help from AbstractAnon,...
[12 replies] Last: So after some tinkering i have found that it is better to use pointers... (by NoviceNate333)
Access violation exception thrown - please help
When trying to fill an array of structs, I got the following exception thrown: Unhandled exceptio...
[5 replies] Last: Look at your sort function: void selectionSortNames(Student students ... (by jlb)
syntax in uml class diagram
i having problem to read attractions:Attraction[*] and Malls:string[*} what is this mean?
[15 replies] Last: True that. (by RUNNER PRO AGARIO)
c++ and joystick
Hello everyone. I want to know if there is a way to manipulate joystick with c++ without using an...
[3 replies] Last: @Thomas1965, thanks for the reply. I know a few libraries does the sa... (by Techno01)
memory leak in code snippet?
Is there a memory leak in this code snippet with ptr being reassigned to another address &x to &y? ...
[4 replies] Last: Thx for clarifying. (by technologist)
Looking for some valuable help
Hello guys, I am new to C++ and a complete novice. I have no clue what I am doing but have attempted...
[2 replies] Last: Sorry, I am new, please forgive me. I will edit the code straight away... (by miles123v)
At last i got this 2D vector of struct syntax in C++.
Kindly help to visualize how i will make the database (like an excel worksheet) using this declarati...
[1 reply] : Kindly help to visualize how i will make the database Kindly use cod... (by TarikNeaj)
Pointer Being Freed Was Not Allocated Error!
Hi there, I have a program which creates a stack of doubles. in my test driver I needed to create ...
[6 replies] Last: Thank you so much y'all!!! Everything works perfectly now and I am a h... (by Crthomas)
Given a full name in a string, how do I output the first, last, and middle names without using an array?
Hi, I'm taking an Intro to Programming course, even though I already have some C-style progra...
[2 replies] Last: I would like to learn about this. Mooman, kindly elaborate on the fin... (by Mwangi Elijah)
Array issues
I am writing a project in C++ (college entry level), where i need to define an array with 5 items - ...
[6 replies] Last: finally finished it 20 minutes before it was due, thanks a ton guys! y... (by Sparrow17)
C++ Highest and Lowest array value.
This is what I'm required to write: "Write a program that allows the user to enter seven double valu...
[4 replies] Last: I've solved that problem on my computer by including <limits.h> . Als... (by naaissus)
Pages: 1234... 25
  Archived months: [dec2015]

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