Beginners - August 2014 (Page 7)

Rewriting depriciiated oststream implementations HELP!
 
I am editing a an old but very useful program from 1999. Please help me properly replace outdated parts of the code. Here I have some headers that are outdated....
[4 replies] Last: It looks like I've been ninja'd in regards to the answer. One more thi... (by Computergeek01)
homework help please!
 
Hi everyone.. I need some help on a homework assignment. I have been reading on it and trying to create the program for the past 5 hours or so and now im just g...
[2 replies] Last: Thank you so much! It worked :) (by klove93)
.f float suffix question
 
I'm trying to get my head around this piece of code, which demonstrates the use of integer literal suffix: { // Demonstrating .f float a = 3.2; if ...
[2 replies] Last: Thanks Ganado. I wasn't relating it to binary, makes much more sense ... (by slouchcouchgamer)
2D Arrays in a Function
 
Hello, I am trying to create an AI Player for my Tic-Tac-Toe game, yet when I try to make the AI change to a random co-ordinates, it doesn't change the variable...
[3 replies] Last: Alright, thanks for the help, guys! I'll update my program now. =) (by JackMorrill)
by T4l0n
return struct function
 
i can't manage to return the naga.x value in the line 55 function #include <iostream> #include <cstring> using namespace std; struct newship{ string...
[2 replies] Last: Your code copies newships quite a lot. Also, most of the functions wo... (by dhayden)
Truth Table [Help me]
 
Our teacher told us to make a program about truth table. condition 1 condition 2 false false = false false true = fa...
[2 replies] Last: Thank you sir! :) (by iamnoob15)
pointer to pointer to const
 
why this code is illegal ? int i = 10; int const *const cp = &i; int const **cp2 = &cp; //if i declare cp2 as a pointer to const i cannot modify nor cp n...
[3 replies] Last: int const *const cp = &i; You cannot change the pointer cp, nor the ... (by dhayden)
by vikk
Develop C++ program for Linux on Win7.
 
I need to develop a program targeted for Linux (Debial 2.2). I'm using a computer with Windows 7 (64). I'm lost a bit in a variety of information found... So,...
[8 replies] Last: When I say 'clone' I mean this: https://www.vmware.com/support/ws55/do... (by vikk)
by eastw
Vector Iterator Not Incrementable
 
I try to store all generated value by pushing the values into vector. However I encountered a debug assertion message displaying:"Vector iterator is not incr...
[5 replies] Last: because after this, pushing the values into a vector is done.. I will... (by eastw)
by skkwan
A small program about interest loan from bank.
 
Hi guys , I'm new to C++ programming language. I made a program but I need some suggestions to improve my coding skill, my questions are ,is my code too complic...
[6 replies] Last: Yanson, Oh yeah! I've forgotten if a user enter a character, a big mi... (by skkwan)
reading from file
 
Hey! So I recently started to learn c++. I'm now working with reading from file tasks. I now know how to read all the information from .txt files but im stuck a...
[6 replies] Last: How all the code should look like? (by Dovydas Milius)
Can't understand the meaning of some code using stod()
 
I am not understanding the meaning of the following 2 lines. What does it tell the program to do? double earth = stod (orbits,&sz); double moon = stod (orb...
[5 replies] Last: Thnak you all..its clear now. (by abdalimran)
by bonho
std::map key sorting
 
Hi, I'm wondering if there is an equivalent of std::map in which the iterator is sorted in the way it was inserted without going through its default sorting?...
[1 reply] : You can give the std::map third template parameter: Compare That way y... (by keskiverto)
Making stack with linked list - Confused
 
I know we're not supposed to post homework here and I'm not. I'm hoping someone can clarify exactly why we've been told to do a linked list in this way. Previ...
[1 reply] : > Previously when I did linked list the head was the same as every oth... (by ne555)
return
 
Hi, I am trying the following code. I haven't written "return" in the function, and I expect after executing the "cout" line, it prints "0" which proves that...
[7 replies] Last: Thanks a lot. (by OmidMech)
Auto formatting- Visual Studio 2008
 
Hello, I am a mechanical engineer by profession but I have just started learning c++. This question is regarding the IDE and not cpp in general. Please do ...
[no replies]
Reducing a matrix by 1/4 size
 
I'm doing a practice problem and it states: Image data is conveniently represented as a matrix of values. A greyscale image is a 2 dimensional matrix of intege...
[1 reply] : I got it working a bit but I'm not sure if it's correct. I'm a bit con... (by hellworld136)
chat between two computers using LAN
 
hello...! Can any one help me in (C++ or in general programming) chatting between two computers with LAn in windows 7...
[2 replies] Last: just i want to chat between two computer using lan in c program implem... (by SamuelCBG)
Data Structures example in tutorial.
 
I am reading through this(http://www.cplusplus.com/files/tutorial.pdf p. 78) tutorial and it has been very useful thus far. I recently got hung up on data str...
[1 reply] : notice the underscore. movies _ t is the type. So that is why you ne... (by giblit)
copy one array to another
 
hey guys i need a litle help why this code will not work?? plz help me a = b works but it is a shallow copy ?? how to make a deep copy of this ...plz hel...
[11 replies] Last: thanks bro can you plz tell me about shared_pointers in c++ actually ... (by MRKSalman0349)
August 2014 Pages: 1... 56789... 40
  Archived months: [jul2014] [sep2014]

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