General C++ Programming - March 2016 (Page 19)

Simple issue (I hope)
 
#include "stdafx.h" #include <iostream> #include <sstream> #include <fstream> #include <string.h> #include <cstdlib> #include <string> using namespace...
[4 replies] Last: thanks man! (by Sparrow17)
Totally perplexing SFML socket receive bug, cant find a logical foot hold to start debugging
 
My application works as a server or a client, its a gui with a socket multiplexer that will launch connections in lots of threads. A socket is connected and th...
[2 replies] Last: oh cos I was copy pasting stuff all over the place during testing, I w... (by devonrevenge)
can I move the array element?
 
In the function "ShuffleCards" which for now is just a placeholder, I am trying to move a whole card to the next card and overwrite it. The compiler won't allow...
[3 replies] Last: Function shuffle_deck() should have the deck passed by reference with ... (by Chervil)
String
 
The no. of strings in the input can be maximum 10^6.The maximum length of each string can be 10^6. I have to find whether the string can be broken into exactly...
[1 reply] : Well just to give you a place to start, here is a function I whipped u... (by closed account 2UD8vCM9)
Visual studio C ++ 2013 displays errors in standard * .h files
 
Hello, I have created a project in visual studio 2013 C ++ .. But when compiling Visual studio C ++ 2013 displays errors in standard *.h files (!?) You know th...
[1 reply] : Copy+paste the errors here. (by kind9)
A string parser over std::string
 
I have created a string parser over st::string and its working fine. Some feedback would be good. I have also provided a constructor to input the delimiter as ...
[no replies]
SDL2 flickering rect. Unclear how to properly use SDL_RenderClear
 
Sorry if this post is in the incorrect spot or if i have formatted this post incorrectly, i am new to posting in forums. if i did something incorrectly with thi...
[2 replies] Last: wow thanks alot helios, that fixed my problem. much appreciated :) (by ikruz98)
Looking for better way to write/read files
 
I'm creating a game in which many variables need to be saved fairly often and at different times. I understand and have used std::fstream before, but i don't...
[1 reply] : Writing one file with 100 variables is more efficient than writing 100... (by Thomas1965)
âStackâ does not name a type
 
Im making a stack class using a vector and every time i compile it im getting the error âStackâ does not name a type even though i included it in my hpp file ...
[9 replies] Last: Hi, The #include is just like one had copy / pasted the contents ... (by TheIdeasMan)
Array of Objects
 
Hello, I am currently working on a program that uses "Class". It is only the second one I've done and I'm confused as to what I need to do to get it to work. ...
[2 replies] Last: Not a function call: transaction .getDoughnuts function call: tra... (by cire)
by mahdiz
Boost graph library c++/ Minimum Cost Maximum Flow Algorithms
 
Hi all, I am working on Minimum Cost Maximum Flow Algorithms with boost graph library but I could not get correct result. When I tried to solve the provided e...
[2 replies] Last: Hi, Honestly, I want to raise another question. Currently, I used succ... (by mahdiz)
Access matrix by an array indexing in C++
 
Dear Friends, I am wondering whether there is a C++ function written by someone can do the following matrix operation. Thanks, L ------------- MATLAB s...
[9 replies] Last: @ doug4 Yeah, that was what got my interest in this question too... J... (by Duthomhas)
Using files with programming
 
hey, i would like to learn how to write scripts / programs that can interact with files / programs on my computer and for example take data from program X and p...
[2 replies] Last: I think this is just based on notepad. Im thinking more database progr... (by ManBearPigIsReal)
Help Out!!!
 
Can someone help, I wrote this program to convert 2-compliments to decimal but it seems not to be working. #include <iostream> #include <cmath> using names...
[no replies]
by gaumap
How to write a lin_search using C-style string/string class?
 
So i try to write a linear search algorithm that allow the user to enter a full or partial player name, and it have to be case insensitive. If the player name i...
[2 replies] Last: Hi, thank you for the reply. I have fixed the problem with the search ... (by gaumap)
A List of #include(s)
 
Good evening, I am looking for a list of all of the #include<>s. I was looking online but couldn't find them. just for the sake of learning! Thanks, Abdu...
[1 reply] : Standard header files: http://en.cppreference.com/w/cpp/header (by JLBorges)
Where can I go online to learn GUI?
 
So I have made my first text based game and I am now ready to move on to using an interface, but I have no clue where to start. If anyone knows where I can lear...
[1 reply] : There is a multitude of different GUI libs. I like GTK+(using gtkmm C+... (by kind9)
c++ ATM MACHINE SAMPLE CODES
 
//ATM MACHINE PROGRAM// //originally programmed by Marc Daniel Mateo// #include<conio.h> #include<iostream> #include<string> using namespace std; int main...
[1 reply] : please help me fix changing the pin program. (by Dragneel)
SFML sprite is undefined
 
part of code:- sf::RenderTexture renderTexture; if (!renderTexture.create(500, 500)){ } renderTexture.clear(); renderTexture.draw(sprite); //problem here ren...
[1 reply] : You can't use a variable before you have created it. (by Peter87)
Funky Town Raspberry Pi
 
I'm taking an intro level c++ class at my university here in Canada. For 10% extra credit I can do anything with a raspberry pi. My idea sounds simple. Im goi...
[1 reply] : The problem you're facing is that you need to understand the provided ... (by coder777)
March 2016 Pages: 1... 1718192021... 23
  Archived months: [feb2016] [apr2016]

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