Beginners - April 2016 (Page 10)

Erorr's
 
I dunno now how to fix it, also, you can recommend me a site for telling what is those errors? Code: #if defined (_UNICODE) || defined (UNICODE) #erro...
[2 replies] Last: Thank you but it fixed only 1 error, there's 2 more error's" ||=== B... (by CosminPerRam)
Need help with understanding the pointer code.
 
Write your question here. char stringCharacter = "ABCDEFGH"; void reverse(char* stringCharacter) { char *front; char *rear; char temp; front = stringCh...
[1 reply] : The front and rear store addresses. The *front and *rear access the va... (by keskiverto)
im trying to learn c++ on my own but i dont understand some of the things the question is asking im still a beginner
 
Write an interactive program which allows the user to enter values into subscripted variable 'x' of length n determined by the user. Also the program should dis...
[1 reply] : subscripted variable 'x' of length n determined by the user An array... (by keskiverto)
File Previewer
 
I am working on this program, but it seems it is not working...it makes sense for me so I do not know what I am doing wrong, I will appreciate some help figurin...
[4 replies] Last: The getline never reaches the while loop.... int main() { //Variabl... (by SweetLilac)
Sequential Search for Linked-List
 
I am trying to write a sequential search function for linked list, but I don't know what the heck I am doing. Can you please help me? class LinkedList...
[2 replies] Last: Thank you! I figured it out. (by LibLife)
constructor failing and multiple errors
 
Write your question here. main.cpp #include <iostream> #include <string> #include "Workout.h" using namespace std; int main() { string name; int re...
[2 replies] Last: Thannks! solve the problem. (by learncpps)
help with splitevensoddlist
 
Also write the definition of the function splitEvensOddsList. Note that this function does not create any new node, it only rearranges the nodes of the origina...
[1 reply] : i got the number to print function to work and set up my numbers the w... (by warrior757)
copy constructor overloaded is ambiguous
 
Ok so I felt like I followed my book and professor's videos pretty well, but I keep getting an ambiguous error on my copy constructor. How do I fix an ambiguous...
[2 replies] Last: Wow, that seemed so much easier than I thought. Thanks Moschops (by justontime41)
by nam13g
Beginner Question - Size of Char Array
 
I need help determining the size of a char array. I get confused when asked "How many chars does this char array store?" For example: char bacon ...
[3 replies] Last: Thank you koothkeeper and Chervil, that helps tremendously. (by nam13g)
Expected unqualified-id and obsolete binding errors
 
Hi I have to write program that accepts 10 integers from the user. The program has to list the numbers the user entered, list them in reverse order, display t...
[5 replies] Last: Oh ok, that makes sense to me now. I entered your suggestion and the ... (by quantumleap)
trouble parsing tab-delimited text file due to '\n'
 
I am trying to understand why when I use getline to parse with '\t' it ignores '\n'. I've looked in my books and here and the internet. Can't figure this out....
[2 replies] Last: Thank you. I've settled on the approach you suggest, but I was just t... (by wiseass)
by csnook
Do/While Loop for binary file reading
 
I believe there should be 4 packets of data inside my packets.txt file, so I created a do/while loop to read each packet. My code only steps through two packets...
[no replies]
Adding score to scoreboard from a game.
 
The game basically spins a slot machine and the user acquires points depending on the result. So far, the user successfully gets the right amount of points depe...
[no replies]
by pabs8
void function.
 
Hi guys, I am working through Stroustrup's PPP and am trying to apply a function declaration to my code which is the answer to one of the "try this" exercise...
[2 replies] Last: Thanks very much, that's very helpful!! (by pabs8)
Function-to-read
 
Hello, i have a question: theres any funtion with what i can read all files name and display it on screen? *Sorry for my bad english* *I am newbie in c++* ...
[11 replies] Last: Thanks you a lot! I solve the problem :D (by CosminPerRam)
by KC14
Saving/Loading files
 
Hi guys I'm making a snake console game but I want to be able to save the current state of the game and then the next time I run the file I will be able load up...
[no replies]
Is #define different from const int
 
If you define a variable, rather than declare it as a constant, is there any difference. For example is A different than B? #define A 1000 const int B ...
[1 reply] : See: 'Why would I use a const variable / const identifier as opposed t... (by JLBorges)
Recursive function to convert to base
 
#include <iostream> int Convert(int num, int base) { // What is the formula? } int main() { //variables int num; int base; std::cout << ...
[no replies]
by Ravund
I need help with some code
 
I need help with this.... develop a C++ program for reporting grades for a class. Your program should read in an input file of student grades records, and i...
[no replies]
by csnook
Help with different binary file read options
 
Any tips on how to modify the second set of code (after comment) to do what the the first set of code does? I would like to use an ifstream object instead of fr...
[5 replies] Last: In the future is it possible to add a do while(y/n) to read multiple f... (by csnook)
April 2016 Pages: 1... 89101112... 43
  Archived months: [mar2016] [may2016]

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