General C++ Programming - December 2013 (Page 24)

Bus program
 
I'm trying to get this program to run but I'm getting errors that I can't resolve. First, I'm getting the error "fatal error C1083: Cannot open include file: '...
[1 reply] : graphics.h is not a native include file to the best of my knowledge, I... (by mattballj10)
How to read external file into parallel arrays
 
I have an external file that I would like to read from this file and place the values into parallel arrays. The file has these values: Rams Titans 23 ...
[1 reply] : What you want to do is have a function (or 2 if you want) that streams... (by mattballj10)
Error passing dynamic array as arguments
 
I am trying to make quicksort and binary search and I get error when I am passing dynamic array to argument. It also says error during initialization of the dyn...
[2 replies] Last: line 232, 256, 261, 285, which basically are the function prototypes/c... (by camaradecha)
Doubly Linked List
 
I need help changing this code into a doubly linked list. Our professor isn't very fond of teaching, so I have no idea how to do this or much of what this even ...
[1 reply] : A doubly linked list is a list that assigns pointers to both the previ... (by mattballj10)
**pointer and 2D array
 
I have **pointer and 2D array int *a ; int **p=a; Ex: size of 2D array a I want use **p to print column of array such as: a , a , a ...
[1 reply] : I'm confused what you are saying because **p=a; is a pointer to a... (by mattballj10)
Bowling Program
 
Hello, I'm writing a program to keep score of a game of bowling. Whenever I run the program, it comes up with the correct starting point, but whenever i type in...
[1 reply] : Hello, Here are my 2 cents: 1. Your error on line 13 is in fact a poi... (by ritstudent)
Multiline String
 
As you can see, when I add my CSS I have quotes around every line for the CSS. Is it possible to have a multi line string so I could do: string g = "a whole...
[1 reply] : Try using #include<stringstream> (by mattballj10)
Program fails to display output
 
how do i display the output ? This program only saves the output to "gpa.txt" I want it to also display the output to cmd. #include <iostream> #include <...
[1 reply] : Hello, You would need to call a command that writes to stdout (the te... (by ritstudent)
I can't open a directory in my terminal.
 
Hi, ... new to programming. Taking a OS course and my professor gave us files to reference in a directory located at ~agw/class/os/share/proj3. But when I...
[2 replies] Last: Oh wow *facepalm* ... completely forgot. thanks!!! (by chiedozie)
Determining even/odd numbers from .txt file
 
I am trying to extract the numbers from Numbers.txt, and then put them in the correct file, either Odd.txt or Even.txt, depending on what they are. And I have g...
[2 replies] Last: That works brilliantly, such a big help! Thank you JL (by tburns1992)
[HELP] [solved]c++ dll.cpp:12:8: error: 'string' does not name a type
 
I get this "dll.cpp:12:8: error: 'string' does not name a type EXPORT string name(){" when i try to compile this #include <stdint.h> #include <string....
[2 replies] Last: solved thanks. I forgot =) (by Manvir Singh)
by Freust
Need help w/ random library.
 
Hey, I came across a program in my textbook that allows you to make a doodle program. It's an old book, so I am assuming some things are outdated. So I copied i...
[4 replies] Last: @Danny Toledo Thanks, I'll see if I can clean it up. Sound like I nee... (by Freust)
"Payroll" code
 
Here's the assignment Write a program that uses the following arrays: - empID: an array of seven long integers to hold employee identification numbers. - h...
[1 reply] : for (int index = 0; index <= size; index++) should be: for (int inde... (by wmichaelv)
Problem with array
 
Someone help me in my program? The only word appear is "Enter a sentence" as i enter the sentence,it didnt count the vowels,consonants, etc. Here it is #...
[1 reply] : Try the following change cin >> v; cin >> c; cin >> s; cin >> w; cin ... (by wmichaelv)
by MEM4FP
How do I turn a string word into letters?
 
So I'm having trouble trying to turn a word into letters. I've seen other posts but they deal with a sentence and it only outputs the words only. What I want to...
[2 replies] Last: #include <iostream> #include <vector> using namespace std; int main... (by ritstudent)
I'm having a random numeric issue with this code
 
Hello, my problem is that my code is sometimes working and soemtimes not, I suspect its a precision error and I would like to find a solution to it. Here's my c...
[2 replies] Last: http://www.eelis.net/iso-c++/testcase.xhtml (by ne555)
Problems with my algorithms, any help appreciated
 
I was wondering if someone could help me fix two of my algorithms. I am trying to factorize semi-prime numbers by using a brute force method and a square root m...
[no replies]
by unik
Help Me Please
 
How do i write a code for this? + read from the input file whose name is stored in: fname, + read the first number in the file to determine how many d...
[no replies]
'}' error..expected unqualified-id before 'else'
 
I'm getting three errors: 1) "expected '}' before 'else' 2)expected unqualified-id before 'else' and 3)expected declaration before '}' token (I'll mar...
[3 replies] Last: Oh wow thanks, I looked for a long time and never saw that.. that's wh... (by rictheric222)
QT creator LNK2019 meaning?
 
I have been programming in c++ for about six months now. Just recently i started to make a blackjack simulator in QT creator, which means i am very new to the Q...
[4 replies] Last: When you say link the files together how do you mean? If you are askin... (by It3rat0r)
December 2013 Pages: 1... 2223242526... 37
  Archived months: [nov2013] [jan2014]

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