Beginners - October 2015 (Page 37)

expected primary expression before else
 
hi, i keep getting an 'expected primary expression before else' error. not quite sure where the problem is. i'm a beginning computer science and c++ student....
[2 replies] Last: Your code reminds me of python :) In C/C++ you need to wrap statement... (by Jaybob66)
File I/O
 
Somebody help me with my project. All of the options work except for the "delete" book option. Whenever I use this code/function: system("...
[1 reply] : Please edit your post and make sure your code is [co de]between cod... (by LB)
sum up all digits until a single digit is left
 
Problem solved!!! Thanks for all your help!!
[15 replies] Last: You are my lifesaver!!! Thanks!!! I am a social science student forced... (by lawgarra318)
change macro to valiable
 
Hello, I am trying to edit existing header file code of ethernet library, such that hostname can be set in variable/string. library / header file: in...
[6 replies] Last: I was able to achive results. in dhcp.h //#define HOST_NAME "WIZn... (by technofreaks)
Need help with simple code question PLEASE (1,2)
 
Hi, I have a mid-term for my intro to programming course this thurs and was given an example of what to expect on the test. I needed help on the following probl...
[21 replies] Last: [quote=HellfireXP]I gave him a partial answer, so he would have enough... (by LB)
Help converting inputs.txt to outputs.txt (1,2,3,4,5,6,7)
 
Hi so i have my code written for the majority of what i am supposed to do but for some reason when i command+R to run my code all i get is like 1 million -1.900...
[126 replies] Last: Good on you phil. All the best - it looks great. Give my regards to Ro... (by closed account 48T7M4Gy)
Help with a binary to decimal converter
 
Hello, I am doing a problem where I have to convert a random binary input via a string to a integer that is in decimal. I cant seem to figure out how to enter t...
[1 reply] : Change your for loop: for (x = 0; x < length; x++) { total = total... (by coder777)
My program won't do what I want it to do
 
Objective: Develop a C++ program which when given a Bible reference (i.e., book, chapter, and verse) reads a file of Bible text to find and prints the reference...
[9 replies] Last: oh ok I see. Thank you very much for your help! (by samuelh19)
Program will not read the data file
 
I have to create a program that will read a data file and output the data into a file. The program is not reading the information from the data file. The data f...
[2 replies] Last: > The data file is written in note pad file named outData.txt. ¿your ... (by ne555)
Combining values without adding them in c++
 
Hello, I am new to c++ and I was just wondering if there is as way to combine two int variables in c++ without adding them if int1 = 0 and int2 = 1 the resul...
[2 replies] Last: You could convert them to a string and concatenate them. Or you could ... (by wizebin)
I can not get this input file to read
 
I have it added to my resource file, but it keeps failing every single time #include <iostream> #include <fstream> #include <iomanip> #include <stri...
[11 replies] Last: Bummer, hope you have a chance to make another crack at it. I bet you'... (by wizebin)
Eliminating memory leaks
 
I am trying to prevent memory leaks with my code, but honestly, I'm a little weak on my understanding of pointers. In the class below, I am attempting to preve...
[4 replies] Last: jib, as explained above, thanks. (by HellfireXP)
getting a specific character
 
Hi im trying to make a null cipher program and am trying to get some initial testing done. first im trying to see if i will be able to get the specific characte...
[2 replies] Last: Typically, when you read from stdin which is the stream cin represents... (by cire)
by rickm
n,nmn
 
lkkjjn
[4 replies] Last: The formatting is slightly better. But your question isn't. If you're ... (by wizebin)
Capitalize Each Word
 
Looking for some help on getting each word capitalized. Currently what I have it capitalizes the first word, but lowercase's each remaining. How do I adjust thi...
[2 replies] Last: Think about how you would do it on paper, then write up the tools you ... (by wizebin)
Trouble creating a dat file to declare variable values
 
Im writing a program that calculates cost of making cylinders. The variables used are inputted which work when ran, but 2 variables i am required to use a dat ...
[2 replies] Last: so to create the file do i just add new item and save as .dat and then... (by fazedxp)
"expected primary-expression" error?
 
Hey guys I am trying to run my program but I get this error. expected primary-expression before 'table'. I checked my code over and over but couldn't find wh...
[4 replies] Last: foo.cpp:28:31: warning: variable 'numOfRows' is uninitialized when us... (by ne555)
Having trouble opening an input file
 
Whenever I run it with what I have so far, I always get cannot open input file, program terminates! #include <iostream> #include <fstream> #include <...
[4 replies] Last: @ aixth, TarikNeaj answered your question about the placement of your ... (by chicofeo)
by kezia
c program
 
create a program that will accept the basic student profile in c language: restrition: > use structure > use procedural type structure > all data must begin...
[3 replies] Last: @ kezia, show your code of what you have done with specific questions.... (by chicofeo)
Length function
 
Hey guys, So Im in an intro c++ class. And in one of the assignments i was asked to subtract the first and last letter of my. I did it using this function. ...
[6 replies] Last: Thank You!!!! Very helpful! (by b29hockey)
October 2015 Pages: 1... 3536373839... 57
  Archived months: [sep2015] [nov2015]

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