General C++ Programming - December 2015 (Page 9)

void *
 
SOO FRUSTATING, im still a beginner, can anyone explain me how these codes work? #include <iostream> using namespace std; void cg(int * a, int * b, int * c); ...
[3 replies] Last: Whoever gave you this code should be tossed into a woodchipper. Look a... (by booradley60)
Ways to Lower CPU Usage
 
Hey, all. Same project I've been working on. It works nicely, does what I want it to. However, being a real-time application, a lot of the time it spends...
[6 replies] Last: You're totally right. I went about the design wrong. Thankfully, I fou... (by JayhawkZombie)
I don't understand a couple of things : Can you please explain some of these to me?
 
System ("cls") //I know that it cleans, and it's used in Windows, but what exactly does it do, and what library should be included for it, if any? //RELATE...
[1 reply] : typedef: Those who use typedef use it to simplify things. Imagine a d... (by tipaye)
Quick Question in Linked List
 
Could someone see why my check bigger doesn't work? In a sense that if I say 2000 - 4000 it works, but if the first number is bigger (4000 - 2000) it doesn't w...
[5 replies] Last: [quote=kkhalaf]Don't add my code to yours, change yours to look like m... (by cire)
by Rxit
Fixing lower upper case to lower case.
 
Hello guys, so Im a begginer and i study C++ in my school. So I have a homework that is about making a C++ program that calls function which fixes the first 2 l...
[2 replies] Last: I see you're already using toupper(), well check out the functions isl... (by tipaye)
Simple 2-D Neuron Network to be used in Image Processing
 
Excuse my long post. This is so important and joyful for me and I will appreciate any help. I am researching 2-D Neuron Networks and I really like it ! 2-D Neu...
[4 replies] Last: Hi naraku I hope you are doing fine. Sure. Here is my backProb() and ... (by kkhalaf)
by GTHell
Is Data structure part of the Computer Science class?
 
My college teach Data Structure + Math + C++ which is all related and I wonder if it's part of the Computer Science. I'm studying MIS = Management Informatio...
[5 replies] Last: In reality, it depends on the class and what topics will be covered. S... (by JayhawkZombie)
by bonho
latency for posting to io_service
 
Hi, I have a boost::asio::io_service running in a separate thread, and I want to run some async functions in the background without stalling the main thread. ...
[2 replies] Last: This is just a guess, but it might also be that the first call to io.p... (by dhayden)
Help with implementing HTTP Queries in C++
 
I was wondering how would someone implement a listener for GET and POST in a c++ program. For example: GET http://1.2.3.4:5678/action?message=helpme and ...
[3 replies] Last: You may take a look at POCO: http://pocoproject.org/ http://pocoproje... (by coder777)
Why is this giving me a value of 1?
 
std::cout << (1/1) + (1/2) + (1/3) + (1/4) + (1/5) << std::endl ;
[4 replies] Last: Dividing two integers will give you an integer in C++. The first term ... (by Peter87)
Reading Arrays + Multiplication.
 
#include <iostream> #include <fstream> using namespace std; ifstream datain ("Walnut_High_School"); int main(){ int count = 0, player_number , weig...
[1 reply] : Anyone want to help on this? (by espionage1)
finding sum of dynamic array in a separate function
 
Can someone please help me debug this code? I've been stuck on this since yesterday. The assignment calls for user to enter any amount of data, then program wil...
[6 replies] Last: You're right the problem was with the semicolon, sorry I never really ... (by schowdhury12)
Queue data structure assignment
 
This assignment wants me to create a Queue data structure using a LinkedList data structure we used in class. Here is the assignment: 1. Implement the Queue d...
[1 reply] : Use the code tags, please. Queue<int> * q1 = new Queue<int>(); Queu... (by JayhawkZombie)
Aid in completing the code
 
Hello Everyone, This is my first time posting to the forums so please let me know if I have made an mistakes. I am having an issue completing an assignment t...
[6 replies] Last: for the SortFunction, it's simply finding the smallest in the whole ar... (by kkhalaf)
Queue Implementation Program Break Point Error
 
I Have Implemented Abstract DataType Queue But There Is A Problem With Display Function I Can not UnderStand What Is That Error "Break Point" Please Help ...
[10 replies] Last: Dont Talk Like That To Me :( :( Really Iv'e done this code by my sel... (by mohamedsul)
Surprising output
 
Hello, I get this output when trying to run this program: ./token char **argv syntax error c: c syntax error c: c syntax error c: c Why is that...
[no replies]
by vuhln
Link static library into dynamic library
 
Hi pro, I have a trouble when compile wrapper of cpgf is bellows: #ifndef REFLECTION_WRAPPER_CLASS_H_ #define REFLECTION_WRAPPER_CLASS_H_ #include "cpgf/g...
[1 reply] : fatal error C1083: Cannot open include file: 'cpgf/gmetadefine.h': N... (by kbw)
orange numbers
 
How do I format my numbers to be the same as all the others? I'm in Notepad ++ with language C++ and Encode in ANSI. Most of my numbers are orange. I'm try...
[5 replies] Last: Yes. I said "no other IDE" because I wasn't sure if Notepad++ qualifie... (by Peter87)
Linked List Questions
 
I have several problems with my code here: #include <iostream> #include <fstream> #include <string> using namespace std; const string text = "Save.t...
[8 replies] Last: man so many dumb mistakes... thank you (by alex067)
Message relay
 
Hey guys. At work we have a system that will send needed files to other computers, but I creates a big popup and requires a lan connection. I was wondering if i...
[1 reply] : There are probably thousands of programs to do that already. Your not ... (by SamuelAdams)
December 2015 Pages: 1... 7891011... 22
  Archived months: [nov2015] [jan2016]

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