Beginners - May 2015 (Page 35)

by enemy
f.fobj2
 
Hello! Please, what exactly means f.fobj2 in that example? Why is the value 8 and not 11? Many thanks!!! http://ideone.com/2QvW3K
[2 replies] Last: You already have a thread discussing this: http://www.cplusplus.com/fo... (by AbstractionAnon)
by enemy
from main to another function
 
Hello! This code works. Please, I would move the dynamically allocated object to any function other then main. Please, any help? Many thanks! // Exam...
[12 replies] Last: Why did we use dynamic allocation then? What's with "we"? :) I'm j... (by AbstractionAnon)
by enemy
dynamic memory
 
Hello! Imagine: int* p; //pointer (value : 0x deadbeaf, location: 0x aaaaaaaa) p=new int(); *p=8; // value situated on the place: 0x deadbeaf...
[2 replies] Last: Yes, p has an address (we can call it 0xDEADBEEF if you like lol) on l... (by Texan40)
Need help on creating reverse fuction
 
Hi, I have created this function to reverse the character array. However, it doesn't print the array in reverse order. Can someone please tell me the errors i...
[6 replies] Last: Can anyone help me with this program please? (by nomanrasheed)
Trying to get a function to return an input
 
On line 35 I'm trying to return the int incrd which the user has inputted but i get a window which pops up saying: Run Time Check failure #3 - the variable "in...
[no replies]
Comapare string with enum values
 
I have to read a string such as "<string> <something> <number>" and to check if <string> == "some string", if <something> belongs to given enum list and if <num...
[no replies]
Printing Calculated Output to Textfile
 
I have a program that balances a checkbook using user input data. I need to print the data from the textbook to a textfile, but I have no idea how to pull all m...
[2 replies] Last: Actually just realized this could all be accomplished using out data..... (by Kaelure)
How do structures work?
 
So if I have a structure, and lets say I declare structure variables in a function outside of main; would I have access to those created structure variables for...
[no replies]
I cant get a function to print a matrix
 
I'm trying to make a function that a can call to print this matrix but when I run the program it gives me the error: error C2664: 'PrintBoard' : cannot conver...
[1 reply] : The error occurs because in your main function you have declared the a... (by konstance)
Taking data from a text file and putting it into arrays.
 
Hi I need to take data from a text file "cost.txt" and be able to do some simple calculations like figure out the total cost, grand total etc, but the data in t...
[no replies]
Conceptual Questions - Please help!
 
Assume ints require one cell in memory, that a float number requires two cells and that the struct members are found in contiguous memory location with no gaps....
[2 replies] Last: @ AbstractionAnon, Thank you! It makes sense. (by newbiee999)
i want help fast please..! help me please guys
 
I have got a question to make the program of row and columns..I use c++.. I have to use - for loop - upstream.h ...
[3 replies] Last: That is not a complete program. Don't use a word processor for enteri... (by AbstractionAnon)
Minesweeper
 
I started c++ a few weeks ago and I have been having trouble with this for a few days now. I am trying to make a minesweeper game as you see below. At the momen...
[2 replies] Last: Thanks that fixed it :D (by lynch98)
Help with Structures
 
Im getting a "terminate called after throwing an instance" error. I just started writing a program for a homework assignment. So far, Im trying to store stuff i...
[1 reply] : 67: (temp.find(",",beg)).c That does not look complete... (by Gamer2015)
Need help with a card game
 
Hi there! I'm new here and I'm quite new to programming. I'm in a programming class here at my school, and we have an individual assignment, and I'm making a ca...
[2 replies] Last: bump again (by Marrcus)
by xxz
array of stract
 
Write your question here.I need to enter the desired group and sort alphabetically the names of students in this group.Explain how to do this sort,please. ...
[4 replies] Last: Thank you for your help and explanations. (by xxz)
Help with seperate files and arrays
 
Hello I need help with using separate files with classes and arrays between the two files separating my code but i got an error while trying to build it This ...
[4 replies] Last: Oh alright thanks that helps alot (by TristanT101)
march of toads error
 
Hi, my code will not compile correctly. i have everything written and in order, there are only 2 errors but i don't know how to fix them. any help will be great...
[3 replies] Last: Don't define a function inside another function? void f() { // b... (by cire)
Program won't read past the first entry in file
 
I need help fixing this C++ program that is not writing the second entry in one file to another file. It only seems to be writing the first entry only to the fi...
[2 replies] Last: Formatted input extraction and binary mode don't mix well. (by cire)
Template and Class Specialisation
 
Hello! I'm quite curious about the format of specialised templates. Here's one: template <typename X, typename Y> void Display (X &, Y&) {...}; ...
[5 replies] Last: So "<>" simply means that it tells the complier the arguments that the... (by Drakonaut)
May 2015 Pages: 1... 3334353637... 40
  Archived months: [apr2015] [jun2015]

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