General C++ Programming - June 2015 (Page 6)

SFML Game Help
 
I would like to make a program that generates a random number between 1-10, gets the player to guess if the next number will be higher or lower. My idea so far...
[6 replies] Last: I made a new project and fixed my error! Yay, i can code again (by FighterCoder)
Error
 
Hello, I`m doing a self study of the C programming language and now getting segmentation fault error when compiling this: #include <stdio.h> voi...
[5 replies] Last: Write many simple, small functions. Test each function to make sure it... (by JLBorges)
by rosa
error: C1083: Cannot open include file: 'pthread.h': No such file or directory
 
I am trying to build a project using Qt creator tool in windows but when I built it , I got this error: error: C1083: Cannot open include file: 'pthread.h': No ...
[2 replies] Last: so I just need to download it ? is there any extra requirements ?? (by rosa)
Recursion to find shortest path
 
Long question. I'm finishing a class project and I'm in desperate need of help. The goal is practicing recursion. Were given a text file like this: 5 5...
[1 reply] : I'll give you the function prototype and base case and let you figure ... (by helios)
While Loop not ending
 
Help please, i have this while loop and basically i want to check that the stuff in empoyeeID are as follows employeeID = uppercase letter, employeeID = upper...
[2 replies] Last: thank you helped a lot. (by rushwe11)
Function project - Please provide feedback on this for me
 
Hey guys, brand new C++ Programmer here. For an upcoming assignment, I got this to work correctly but I would like feedback on it. If you see any errors, anythi...
[9 replies] Last: Got it, I just fixed that. Thanks a lot, he probably would have taken ... (by GoodProgrammer)
Segmentation fault (core dumped) error, can't assign vector
 
#include<iostream> #include<string> #include<sstream> #include<vector> #include<algorithm> using namespace std; int main() { string indexArray; string ...
[5 replies] Last: you should resize vector to make space for all objects you want to sto... (by MiiNiPaa)
Segmentaion fault (core dumped) error using qsort
 
I am getting a segmentation fault (core dumped) error using qsort. Here are the structures I am using: struct team_info { string name; int played, won,...
[6 replies] Last: These ampersand(&) are used when we have to pass arguments by referenc... (by saadusmani)
Why doesn't getline work in a struct?
 
So I've got this weird problem. This is the struct I'm using: #define DIM 50 struct user { char name ; int age; char sex; user* next; }...
[3 replies] Last: I thought the buffer would be cleared when calling a new function...... (by MiiNiPaa)
Coding Structure for dot.program
 
A idea for a simple program which prints dot in each new line with increasing no of spaces. output may be like this, . . . . . . ....
[1 reply] : Alot of weird stuff is in your code. I think you should not use recurs... (by poteto)
Why aren't all C++ variables pointers? Why use pointers at all? Why the different syntax?
 
I come from an Objective-C background. In Objective-C, just about everything is a pointer. I know a pointer points to a variable in memory. Why is passing a ...
[2 replies] Last: Why doesn't C++ make everything a pointer by default? If you ever di... (by Gamer2015)
Very slow visual studio compilation
 
Hi there, I'm writing a math library that follows the GLSL syntax closely. I want to allow for doing the following (which is valid in GLSL): vec3 a = vec3( 0...
[5 replies] Last: @poteto yes, they didn't help at all @Duoas I think so, because witho... (by Yours3lf)
by daduna
Need help with Multiplying Interegers' ciphers
 
hello, i need to multiply integer ciphers, and dont know how, for examlpe: int a =234; i need to do 2 * 3 * 4 = 24 and then cout result :)
[1 reply] : //234 // (a % 10) * (((a % 100)-(a%10))/10) * (a/100) I solved this ... (by daduna)
I need help with this program
 
As a first approximation satellites may be presumed to move in circular orbits around their parent (primary) bodies. The velocity of a satellite at sea level fo...
[3 replies] Last: What problems are you having? You did not say. Are you using a C++1... (by AbstractionAnon)
fstream help
 
Sorry for the Bad Title So lets say i have a program and a file, 'Program' and 'stuff.txt'. stuff.txt conatins the following. NAME: "John Doe" AGE: 12 ...
[10 replies] Last: I'm not esp. impressed with Viktar Khutko's article: How to split tex... (by andywestken)
Global Descriptor Table - Advice needed.
 
My operating system is coming along well and making progress. I have recently incorporated a GDT function in C as it was originally set in the kernel bootstr...
[no replies]
warning C4715: 'LINSEARCH' : not all control paths return a value
 
// Algorithm_LINNET1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iomanip> #include <iostream> ...
[3 replies] Last: should I return in my LINSEARCH Yes, you should make sure that you w... (by MiiNiPaa)
How C++ compiler works for header guards and include guards
 
Hi Friends, I am new to C++ programming(I know the concepts but I don't have programming experience). I was doing some C++ coding. While coding, some question...
[7 replies] Last: Simple multiple-include optimization (with the #ifndef construct) is e... (by JLBorges)
by ph0703
Help with Functions
 
I am trying to figure this program out. First off, I am new to C++. This is my third week in this class. I am having trouble though. This is suppose to ask for ...
[4 replies] Last: Thank you so much. I just figured out how to use the overloaded functi... (by ph0703)
by Micard
SDL Camera Logics
 
Hi guys! So here I have a little problem. I'm trying to create a simple camera in my SDL application. I have a big background (level) and a screen who is much s...
[1 reply] : First of all, use classes, more functions, and don't use macros. This ... (by poteto)
June 2015 Pages: 1... 45678... 16
  Archived months: [may2015] [jul2015]

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