Beginners - April 2011 (Page 6)

Random Generator Game.
 
Hi I'm a beginner at C++, and I'm trying to write a simple application. However, I keep getting an error message that reads: "missing identifier ';' before '...
[2 replies] Last: Replace "cin.ignore()" with a "cin.sync()" it's more appropriate for w... (by Computergeek01)
Accessing multiple indexes of an array
 
Basically i have made an array and would like to later edit it by changing all the value of the array at once. The way I am currently doing it is heapArray...
[6 replies] Last: You can't quite do it in one line, but you probably could in less then... (by Computergeek01)
Question about Using Function to Make File Input
 
I have a quick question about this. For a small assignment using Visual Basic I need to use a function to call in a few pieces of data from a file. What would...
[5 replies] Last: All Main would do is call Function 1 and return 0; to the OS. Funct... (by Computergeek01)
I am clueless
 
I am in school and I have to write a program that will determine the gross pay, taxes, and net pay for an employee. I have to use if-else statements to choose ...
[12 replies] Last: Done. Edited to add: Maybe I just missed reading it, but I re-read th... (by Chevytuff19)
template specialization question
 
Hi, could you please tell me what I am doing wrong with this specialization that is would create and return a newly allocated char*? template<typename T> i...
[7 replies] Last: Yeah thats what I was kind of figuring, I'd have to ditch the speciali... (by flclempire)
by oxxxis
Please help with strings
 
Hi I am new to c++, I have found some tasks to do, but there is a problem. My task is to compare 2 intigers, and try to find out if they an be changed so one o...
[4 replies] Last: Use #include <string> so: std::string input; std::cin >> inpu... (by GodPyro)
by tota90
Debug assertion failed!
 
because of argv i have this problem because when i replace it by any file name this code prints my correct answer this is my code #include "stack.h" #i...
[5 replies] Last: finally i knew my fault...... ooooooooooh it is a very stupid error my... (by tota90)
My First Program
 
I've made a ton of really small, one file programs that do nothing more than help me learn what I'm working on. This was my first big project as a programmer an...
[15 replies] Last: Well if that is the problem. Then find the difference between the curr... (by GodPyro)
by willz
Problem with Linker Subsystem Settings...
 
Hello, i had to write a program for class that met the following criteria: Create a class named Student that has three member variables: name – A string tha...
[2 replies] Last: Wow forgot the simplest of things. Finals Week XD (by willz)
Sorting an array based on a different arrays values
 
Basically i have to do what it says in the title.for example if arr1 = {18,19,4,11} arr2 = {1,2,3,4} after sorting arr2 = {2,1,4,3} Basically i have to sor...
[7 replies] Last: Thank you so much for the help (by inzombiak)
remove first character from string
 
hi everyone i need some help i have this program in this i have two strings string s and string t. and after taking input from user i compare that string t cont...
[2 replies] Last: i didn't get what are you saying can you explain me (by AliRiaz)
by dAND3h
Building a release version
 
Ok, What way should I set the include/linker settings for a release build? If I have alot of folders that contains the game data(like sprites and stuff), where ...
[1 reply] : Ok nevermind, I managed to do it. But I have a weird problem. I used ... (by dAND3h)
I want to show how many lines in afile
 
suppose a file has two lines there are i am shoukhin i live in Bangladesh and my program shows 2. please give a solution
[1 reply] : Well you could just open the file and read it line by line with getlin... (by anonymous23323124)
C++ array to calculate height, level and depth of the root of the heap
 
hi, anywhere i can get help on the above? thanks.
[5 replies] Last: Oh. So you've flattened your heap into an array? If the height of a c... (by hamsterman)
Need the program to run twice
 
I wrote a program using three functions. It asks for an integer and then displays a box of stars depending on what the user inputed. I need it to run twice. Tha...
[2 replies] Last: Thanks a lot. Worked perfectly. Seems so obvious once you see it. (by Axl Van Damme)
no matching function error
 
this is the error on line 44 and 46 when I try to read the lines from the txt file: no matching function for call to `std::basic_ifstream<char, std::char_tra...
[1 reply] : The function std::ifstream::getline expects two arguments. The first... (by anonymous23323124)
cannot read certain lines of a file with getline
 
Alright, because the names and phone number lines of the file i'm reading include spaces, i need to use getline() to read them in. I'm not really sure what I...
[1 reply] : Try to replace: ifile >> label .name; With: cin >> label .name; S... (by Khaltazar)
>TO ALL PEOPLE NEW TO FORUMS<
 
please please please use code tags.. and it would be beneficial to read "Welcome -- read before posting!" post also.. anyway, alot of people new to forums negl...
[2 replies] Last: aka - p*ssing into the wind (by guestgulkan)
Airplane Party program
 
hey so I'm definitely new at c++ i can sort of understand the language but writing code is where i come across difficulty im writing an airplane program that...
[no replies]
VSC++ help
 
I'm having a major issue in Visual C++. I've asked questions on here before and received thorough, prompt answers. I haven't had much luck on the Visual C forum...
[9 replies] Last: Problem Solved. (by GhostRayneShadow)
April 2011 Pages: 1... 45678... 55
  Archived months: [mar2011] [may2011]

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