Beginners - November 2016 (Page 32)

PLEASE help! Passing arrays through functions
 
Okay. i have been struggling all week with this program and i was finally able to get everything to work in the main as i needed it to (on my own)but separating...
[3 replies] Last: Is using the arrays a mandatory part of this assignment? Or can you us... (by jlb)
what do the letters k, g, f, etc mean
 
What do the letters k, g, f, etc mean when put before something e.g: fGundam, kDekkard, gForestGump
[6 replies] Last: Plus, although I'm a cat guy, noDogs would be sad :( ... (by koothkeeper)
Please help! I keep getting errors with my do while loop
 
I keep getting while loop errors in MSVS 2013. The errors are intellisense expected a while on lines 100 and 103 and error C2059 expected a '}' on lines 100 an...
[3 replies] Last: Sorry I missed that earlier while. That while seems to be part of the ... (by wildblue)
invalid types, int[int]
 
Could someone explain why on line 45 I am getting the error "invalid types int for array subscripts"? #include <iostream> using namespace std; in...
[1 reply] : Because testArray has been declared as an int inside the numbers f... (by Peter87)
Help with arrays and text files
 
So for my homework I have to change some arrays to pointers and I've done that but I also need to allocate the memory for a one-dimensional array with data from...
[3 replies] Last: Reading data from a text file is covered in the tutorials section of t... (by closed account 48T7M4Gy)
by dana18
segmentation fault
 
I don't know why is a segmentation fault error in my code . int nbSeqRugbyDyn(int n) { std::vector<int> t; for (int i=0; i<=n; i++) t.push_back(i...
[12 replies] Last: thank you (by dana18)
To write/read data in file
 
Hi, i will write and read the data in file like so: VALUE1=0 VALUE2=blablabla I see such ways: 1. To read file in string with getline(). To read string by c...
[2 replies] Last: thank (by Voroshek)
Unable to find element (players and end location) in 2D array
 
Im writing code to find an exit in a maze and im searching for the endlocation as well as where the player is in the 2D array however it returns 0's as pairs. W...
[1 reply] : The problem is line 66/67. Since on line 49/51 you have already increm... (by coder777)
Problem storing values to an array
 
So I'm struggling here. I'm having problems with my member function "readCourseArray". I have dynamically allocated an array to hold students information about ...
[4 replies] Last: I thought of something like this: void Course::readCourse(int n) { c... (by coder777)
by Pg0715
arrays help
 
so i need help trying to get the sequential search to where i need to have . The function return the index where key is found or return -1 if not found and dis...
[12 replies] Last: it doesnt work it gives me an error in line 15 (by Pg0715)
Help with getting last name using Structure with a loop
 
How can input the string for pname for array two using a structure elements # include <iostream> using namespace std; So this code work , only holding th...
[1 reply] : Extracts characters from is and stores them into str until the delim... (by integralfx)
how depressing
 
I'm recently registered at socialcoder.org , in order to gain skills/experience, but it seems really hopeless. even for some of the obviously unpaid work they...
[5 replies] Last: thanks. Trying to stay positive but it's very hard. The world is defi... (by closed account N8RzwA7f)
Need Help Understanding Linked Lists
 
Hello everyone, I'm new to working with linked lists and would like some references/examples of some basic linked lists (preferably singly-linked lists). I've ...
[1 reply] : http://www.codeproject.com/Articles/24684/How-to-create-Linked-list-us... (by integralfx)
The program doesn't run. :(
 
#include <cstdlib> #include <iostream> using namespace std; int main (int argc, char *argv ) { int Prelim; int Midterm; int Semifinals; int Finals; ...
[1 reply] : Please use code tags. http://www.cplusplus.com/articles/jEywvCM9/ ... (by integralfx)
For loop and string help
 
The first for loop is to read through the sentence, but i want to have another one for loop within it that can read through each word. Im not sure how to do tha...
[3 replies] Last: for( std::string word{}; std::cin >> word; ) { if( word == "quit... (by integralfx)
by HotWax
Array starting with 16 in the first element.
 
Hello everyone. I'm working on an assignment for my computer science class and I can't for the life of me figure out why my array has the number 16 in the first...
[2 replies] Last: Thank you for your reply! Unfortunately, we haven't gone over vectors ... (by HotWax)
Prime Number Calculator
 
Alright, so I'm supposed to write a program that spits out all the prime numbers before 10,000, and I have to use a separate function for the math. I created a ...
[3 replies] Last: bool prime( int n ) { for( int i = 2; i * i < n; i++ ) { ... (by integralfx)
string toupper
 
Hi, my question involves the logic behind a solution that i managed to come up with and often I feel like I code and magically solve the problems without a full...
[1 reply] : An array consists of a chunk of consecutively storaged elements of the... (by nuderobmonkey)
by G9C89
How to add a variables to a txt file without an array
 
Hi there, I am looking for an answer... I have a code part which I need all it's variables to be put into a txt(named x1) file. for(int i=1;i<=x;i++) ...
[5 replies] Last: No Darkiyee, you bother to read the link that he gave you. The example... (by lastchance)
Is there an object of type integer that isn't a number?
 
Hi All, I have a function that returns the top value in a stack, but only if the stack is not empty. My question is, what value should I return if the stack is...
[4 replies] Last: Thanks for your help guys! (by JKLolling)
November 2016 Pages: 1... 3031323334... 44
  Archived months: [oct2016] [dec2016]

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