General C++ Programming - July 2014 (Page 6)

game array help!
 
'm making a game, and currently i'm making a class to help with creating the map for the game, but when I compile I get an error invalid use of non-static...
[2 replies] Last: The compiler doesn't know what townstartlimit will be, so you have to ... (by joe7)
by janky
help! voting program.
 
a) Table Q2 is a list of favourite football players in the recent World cup 2014. Write a program to collect the vote for these players and display the names ...
[1 reply] : Remember String arrays and normal arrays start at 0, not 1. Your men... (by Codermik)
How can I use MySQL in C++?
 
I am using VS2013 and I can't find anything that I can actually use in my C++ program that will work. Any help?
[19 replies] Last: This is almost funny. error C1010: unexpected end of file while look... (by kbw)
by talya7
Printing a created file
 
My program is suppose to read an input file and print it contents which it does and then it is suppose to adjust it and create a new file that contains the adju...
[no replies]
Program enters if statement even though requirements aren't met
 
My program gets user input and compares it against an array of characters (guessLetters ) to decide whether the do/while loop repeats. The whole character array...
[2 replies] Last: Don't i feel ridiculous.....thank you very much (by ValdoIan)
Keep the rhythm with the count
 
#include "stdafx.h" #include <iostream> #include <cmath> using namespace std; int _tmain(int argc, _TCHAR* argv ) { int X = 0; double a, b, c, x...
[4 replies] Last: Thank you lsk & Chervil. That did the trick, gotta love the little n... (by closed account ybo2y60M)
Bubble Sorting
 
I having a bit of an issue with this bit of code below #include "stdafx.h" #include <iostream> #include <fstream> #include <string> #include <iomanip>...
[3 replies] Last: Not quite lsk, doing that seems to lead to more issues. I changed th... (by closed account 3wk9LyTq)
thread:no such file or directory whyyyy?
 
when ı write a code in c++ includes thread library it says "thread:no such file or directory" Can someone tell me how can ı use thread library . I think ı...
[4 replies] Last: Orwell DevC++ does support C++11. (by Chervil)
Questions about how a Structure works
 
Code First, will be easier to explain later. //Battle with Samer #include <iostream> #include <string> #include <sstream> #include <ctime> #include <cstdlib>...
[4 replies] Last: Excellent. Thank you for all of your help!!! (by cavendert)
Understanding Stringstream using getline
 
Hello All, I am practicing using strings in C++ and the example provided uses getline. I noticed when I use getline the compiler is not outputting the indivi...
[no replies]
Help me generalize this function please?
 
I'm trying to generalize the Person::insert<T> function to all T values. Note: it uses pointers to data members. #include <iostream> #include <map> #incl...
[6 replies] Last: > But I'm really overwhelmed by the size of the library Boost is not... (by JLBorges)
char * ptr = "My String" //where does memory come from
 
A short question. I know for: char mystring ; memory comes from stack For malloc(5 * sizeof(char)); memory comes from heap but when we do something like ...
[16 replies] Last: Thankyou all of you I learned much but after some days/weeks practice ... (by danicpp)
Error compiling DLL
 
Hi, I'm having a constant error in my DLL regarding one simple function: I get the error: double *(double)' differs in levels of indirection from 'doubl...
[7 replies] Last: Different problem. Sounds like you have a declaration for _utc_to_jd,... (by AbstractionAnon)
Newbie, in need of help.
 
Hey everyone. I know alot of you guys don't like giving direct answers, and that's perfectly ok. If someone could point me in the right direction, that would be...
[8 replies] Last: Thanks guys! I'm glad I got verification on this! I did end up changin... (by cavendert)
How to store names and numbers in an array?
 
Can names and numbers be stored in one array ? Like a telephone directory?
[1 reply] : You could use a struct. http://www.cplusplus.com/doc/tutorial/structur... (by Chervil)
by judo11
How to stop the input process when I input five negative integer?
 
int a ,x; for(x=0; x<20; x++) { cout<<"Enter integer: "; cin>>a ; while(a <0) { while(x<5)x++; { cout<<...
[5 replies] Last: No this is not about students. Sure. But the suggestion was that you... (by Chervil)
Problem about getting the number greater than the average
 
#include<iostream> using namespace std; int main() { int k,num,sum=0,GreaterNO=0; double average; cout<<"Enter how many numbers you want to enter:"; cin>>...
[8 replies] Last: Get the point dy, thx alot (by ryushin)
Testing auto feature on C++11
 
Hi friends, Am trying to test this new 'auto' feature on C++11 version. Here is my problem: ^ santos@santos-HCL-ME-...
[5 replies] Last: haha ic, thanks Peter :) (by sansoftaus)
Multi Tasking
 
Windows can keep track of multiple programs at once. How can you emulate something like this in C++? For example, emulating two particles at the same time inste...
[4 replies] Last: Bah, you win. It sounds like it's pretty complicated to do though and ... (by RealGiganitris)
by gudeh
Sites communication, Sockets and Win32 API
 
Hi there, I saw a post here from 2008 where a guy asked: "how to get data from internet?".(http://www.cplusplus.com/forum/general/6546/) The question was answer...
[1 reply] : Should I use sockets or this thing about API? Use sockets. But you d... (by kbw)
July 2014 Pages: 1... 45678... 26
  Archived months: [jun2014] [aug2014]

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