General C++ Programming - November 2012 (Page 13)

C++ standard library headers help
 
i am trying to make this code work using only c++ standard library headers (not using conio.h) and allow the character on the map to move without pressing enter...
[11 replies] Last: Dealing with unbuffered input and full-screen terminal output is neces... (by Duthomhas)
by pi78
starting visual C++ 2010 express
 
I am new to visual C++ 2010 express. I am trying to learn it on my own. I am not having a problem with the code yet. But,I am having a difficulty understanding ...
[1 reply] : I have programmed in BASIC many years ago. Forget everything you lear... (by Moschops)
nonmember function
 
What does that error mean? I really don't get it. 'hash' : modifiers not allowed on nonmember functions this hash function is outside of the class ...
[4 replies] Last: Thanks buddy, it works now. Finally I can sleep :) (by genclik27)
FindFirstFile
 
Im trying to list files and folders. This is my code but cant get the path to work.my path is C:\\users\\myname\\desktop\\ #include <cstdlib> #include <i...
[4 replies] Last: nice, it works thanx (by terryeverlast)
ifstream from text file
 
I'm having trouble pulling text and numbers from a text file. I need to read one line at a time. my text file looks like this: MyName 100 99 84 95...
[7 replies] Last: i need to store the text file in 4 different arrays. the name should... (by hunterb24)
by Glint
checking for duplicate
 
Hi I want to check for duplicates in list of names, and get rid of those duplicates by using bool subprogram. This is my code so far. I really have no idea on...
[5 replies] Last: you don't actually need to do the find because if you try to add a key... (by theranga)
ambigous symbol
 
What does that mean? error C2872: 'hash' : ambiguous symbol could be 'hash' or c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(763...
[6 replies] Last: Thank you very much, when I add it, it is solved. (by genclik27)
by bleaz
Finding the Nth term of a sequence
 
Hello I am new to C++ and do not really know anything. I am trying to make a program that will tell you a user inputted term of a sequence. IE cout << "Ente...
[15 replies] Last: Thanks that shortened the code nicely :D Yes I am capible of figuring ... (by bleaz)
argument of send()
 
send(socket_name,sending_buffer,size_of_buffer,0); can someone tell me about the fourth parameter of the send() and recv() functions.I want to know the use o...
[1 reply] : http://pubs.opengroup.org/onlinepubs/007908799/xns/send.html http://e... (by kbw)
Algebraic Specification
 
I've been trying to wrap my head around algebraic specification lately, and I'm having a rather had time. From what I understand, the idea of algebraic specific...
[5 replies] Last: Those look like merely analogues of function signatures. It's like if ... (by helios)
by NeoXxx
Help with writing my first code?
 
Hello everyone, I am new to this forum as I just started learning C++. I got to write a code for parallel parking for cars. Its basically a ultra sonic s...
[4 replies] Last: Thanks for the answer. However, I need to use the formula I mentione... (by NeoXxx)
NEED HELP. My programme wont run properly. DEADLINE TODAY . HELP ME PLEASE.
 
Hi Everyone. IN NEED OF HELP ASAP ! my deadline is today and im having trouble with this simple programme. i just could not figure out the problem. after the se...
[4 replies] Last: i have decided to abandon this program and create a new program instea... (by khairulfaizaqil)
Creating new instances of a class
 
I have two classes with elements and relevant functions as follows: class Network { public: vector<User> Users; void add_user(string name,...
[14 replies] Last: no problems (by theranga)
by lion99
Devc++ Bug
 
hello i'm trying to write a little software using Devc++ win 32 console software i have a major issue releated to devc++ everytime i make change to the project...
[2 replies] Last: Compile & Run shortcut F9 if i do just Run it tells me i must compile... (by lion99)
Reading from file, strings.
 
I am in the process of adding a string to an array, followed by a line with four integers. I can get them to all enter into the arrays and they output correctly...
[3 replies] Last: I tested your program with the modifications I suggested, and it works... (by toum)
SFML lies?!?!
 
I'm trying to move my sf::Sprite from the center, and not the top left corner, so I use the SetCenter() function to, well... Set the center. However, it does ...
[9 replies] Last: Ah yes. Thank you! Now it all works. - Kyle (by KyleMiles)
by MaxT
Inherited getter , not returning correct value? virtual functions
 
At the moment I have a situation like this: class foo { public: int type; virtual int getType(){ return type; } foo() { type...
[7 replies] Last: Oh, i think I spotted it. it is probably line 9-10 in NVariableDeclara... (by MaxT)
control paths
 
Hi; Not all control paths return a value error. do { system("cls"); selection = displayMenu(); switch(selection) { case 'A': update = op...
[5 replies] Last: Yes you are correct. Instead I have done this. switch(selection) { ... (by jlillie89)
Sorting mod (1,2)
 
I have sort function that was originally for strings. I'm using a structure. I was trying to modify it so it sorted the last name of the structures in alphabet...
[38 replies] Last: Yah it really does. Dude I'm almost done with my program I stayed up l... (by jlillie89)
"cout" strange errors
 
I had completed a small project yesterday and then I caught these strange errors : main.cpp(13) : error C2872: 'cout' : ambiguous symbol main.cpp(31) : e...
[13 replies] Last: Why thank you Jackson Marie , I like to help out where I can. I am a... (by ajh32)
November 2012 Pages: 1... 1112131415... 51
  Archived months: [oct2012] [dec2012]

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