General C++ Programming - October 2014 (Page 12)

enqueue
 
class ready_queue{ private: ready_queue *temp, *temp2; ready_queue *start_ptr; ready_queue *current; ready_queue *nxt; int pid; public: void enq...
[1 reply] : Pass the value that you wish to enqueue as a parameter: void ready_qu... (by dhayden)
how to access variable in different class
 
someone please help! how can I make the queue of type pcb and how to access pid in other clases?
[6 replies] Last: solve the scope issue, include class for pid, call by classname.pid/cl... (by csstudent123)
Please help me with my programming project.
 
Okay when I compile and run this program with a negative integer in the list of integers, it works fine. When I use only one number or a series of positive inte...
[3 replies] Last: It compiles and runs for me. Exactly what input do you give and what ... (by dhayden)
Connecting 2 computers over internet
 
I'm trying to make my 1v1 game playable online and I would like to have the 2 players connected directly rather than trough a server. The problem I'm having ...
[4 replies] Last: Project -> Build Options Goto tab "Linker Settings" Add the library un... (by CLman94)
Stuck but really really close.
 
Hi everyone. I tried posting this yesterday but I copied and pasted the wrong thing. First off I am sorry that this code is no where near beautiful. I am a new ...
[4 replies] Last: Thanks Guys :) (by fl4pjacks)
LNK2019 Help!!
 
kkkkkk
[1 reply] : 'initialize' is spelled incorrectly on the function definition. 'print... (by booradley60)
my c++ CHECKERS game is not working
 
hey guys so i made a checkers game. looking good so far. but i cant get the object to move. can you guys show me how to move the circles. its really frustratin...
[no replies]
Dynamic Array
 
Im using microsoft Visual C++ and its giving me a HEAP errow how do I fix it? #include <iostream> using namespace std; int main(){ int num; int...
[3 replies] Last: In lines 17-28 you're attempting to allocate a new larger array. That... (by AbstractionAnon)
Pattern issue with boost::regex
 
Hi All, I have a question regarding boost::regex pattern recognitions and groups I created the following code, in it i created a pattern and a string to m...
[no replies]
Unhandled exception error
 
I am having trouble running my code. It all compiles, but when i run it u get this error "Unhandled exception at 0x001f18ac in Project 2.exe: 0xC0000005: Acces...
[1 reply] : ... (by ne555)
why is my Node out of scope?
 
I have a project on linked lists where a Sentence is a linked list of Words, a Paragraph a LL of Sentences, and a Story a LL of Paragraphs. I've tried looking t...
[no replies]
Swapping two adjacent linked lists nodes
 
I am working on a program where I sort elements into alphabetical order and then when one is less than the other I swap them. I first did it by swapping the dat...
[2 replies] Last: You start with one of the following situations: [some other node].ne... (by doug4)
IMHO atomic::load/store example is not correct
 
Look at code at http://www.cplusplus.com/reference/atomic/atomic/ #include <iostream> // std::cout #include <atomic> // std::atomic, std::mem...
[2 replies] Last: Oops! You are right. I'm mistaked. (by Konstantin2)
c++ not yet implemented possible way to shrink array with delete operator
 
We made some questions about this topic to the kindly community of http://www.stackoverflow.com After we read all their answers, we are making this question, w...
[18 replies] Last: Thank you very much for your answers! dhayden : I want personally t... (by ncomputersorg)
C++ function parameter syntax
 
From all the programming language I've used or syntax I've learnt. I keep thinking that why is the parameter order is so hard to be remembered. some code lik...
[4 replies] Last: Is there any big reason why this hasn't been implemented in other lan... (by doug4)
Open more than one console in one progam.
 
Hello everyone, I am creating a console based application which needs to be dual tasking, which prompts me to share a single console for the GUI console based ...
[1 reply] : I am using Visual Studio 2012 Ultimate on a Windows 8.1 Professional ... (by Computergeek01)
File I/O questions Xcode
 
ok so i need help i have no clue how to create a .txt. file and add it to the file because it seems to not exist. or when i do create a file that is readable an...
[no replies]
NOT overwriting
 
void Contact::updatecontact() { Contact C; fstream file; file.open("Contacts", ios::in | ios::out | ios::binary); long pos; int option; char nna...
[no replies]
Help implementing std::remove_if?
 
I'm trying to iterate through a vector and delete elements in it. I've seen that std::remove_if is probably the best way to go about doing this, but I need help...
[8 replies] Last: instead of removing const add const to the GetLine() (or GetActiveL... (by coder777)
Find values in vector and create new vector
 
I have two vectors (secid (string) and close (double)). The program must read a value that the user inputs for secid and find the close values associated with t...
[no replies]
October 2014 Pages: 1... 1011121314... 38
  Archived months: [sep2014] [nov2014]

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