Beginners - October 2012 (Page 71)

by lmsmi1
Custom CLI
 
I think I've got this down for the plan: The program will read the .cli file, execute the commands one by one (top to bottom in the file), and exit if the file...
[1 reply] : No replies? Anyways, I've revised how it will work: 1. Opens cli fil... (by lmsmi1)
by wyspp
using boolean with switch
 
Hi I'm new here, and I just started learning C++ programming. I've been looking everywhere on the internet to show me how to combine boolean values and switch(...
[5 replies] Last: thanks for clarifying that. (by wyspp)
Compilation error
 
Error Messages over some little mistake [26 C:\Dev-Cpp\Untitled7.cpp `string' does not name a type code] 27 C:\Dev-Cpp\Untitled7.cpp variable or field `SetTyp...
[2 replies] Last: Thanks, i have been going over the code for an hour (in a new file) tr... (by brandonator)
by vrakas
Help in Template in priority queue
 
Hi. i want to pass to a priority queue some structs. for example: struct person { int age; char sex; sting name; //etc }; I want to push this. I ...
[1 reply] : Create a person comparison function something like this (code not tes... (by mik2718)
Making a pyramid program
 
I want the output to look something like this: Enter a value to represent the base of a triangle shape (not to exceed 80): 11 Enter the character ...
[2 replies] Last: At last solution found!--at least for the second question. The problem... (by Aceix)
how would i use an array of objects and get two sets of info on a specific index number
 
so i could use a for loop to initialize and maybe get the "name" string of the object with say the highest value...i cant find a simple tutorial anywhere ive...
[1 reply] : This site's tutorial? (by Aceix)
Working with Classes - Error problems
 
I am writing a program for a class and am specifically working on part of my code. I am trying to write a bool isFull class member function( I believe that is ...
[7 replies] Last: Yes - I fixed this with some help but the countW being set to 0 was pa... (by badkaykay)
My intro to vectors and iterators
 
Hey guys, I'm new here and new to coding in general. I am about a week and a half in on intensive study, and I was assigned this task; "Write a program using v...
[1 reply] : Maybe when the user selects delete title, display the titles with numb... (by Aceix)
HTTP Download & Exe in resource
 
Hello! I want to do updater and I have 2 questions: 1. can I download .exe, .dll and other files via sockets using HTTP ? for example getting a.exe and a....
[4 replies] Last: I don't like to use external libs Good luck. tons of pitfalls are wai... (by coder777)
bash: fg: %: no such job
 
Never mind, I just realized the incredibly stupid error I was making.
[no replies]
by john22
A problem with reading from a file in c++
 
"data.txt" This is a line. This is another line. "main.cpp" #include <iostream> #include <fstream> #include <string> using namespace std; i...
[6 replies] Last: If you're using visual studio, the debugging will run from the same di... (by Stewbond)
how could i have done this better, plz dont laugh too much at dodgy code
 
the idea is to enter how many pancakes everyone ate and whoever ate the most the computer tells you, it was a challenge to see if my programming is up to scratc...
[3 replies] Last: You over complicated this task... You can simply use an array to store... (by ccsdude)
Noob at c++
 
Hey how's it goin fellas? I am taking a computer programming class at school and I am relatively new to c++. I understand the basics of it but some of it blows ...
[8 replies] Last: Thanks dude, I'm pretty sure I understand it now. (by texasz71)
by Hyl
No errors but exe refuses to run. What gives?
 
#include <stdio.h> #include <iostream> #include <algorithm> #define N 10 double matrix_det ( double **in_matrix, int n ) { int i, j, k; double **mat...
[3 replies] Last: Ah....thanks for correcting my mistake! (by Hyl)
what is wrong with my coding?
 
#include <iostream> using namespace std; int main () { float amount; cin >> amount; amount = amount*100+.0001; float temp; int...
[3 replies] Last: 16 G:\Untitled2.cpp invalid operands of types `float' and `int' to bi... (by Aceix)
by P12
equal parts of string in int
 
Hello i'm looking for a way to split a string in parts of 2 characters and then put them in an int variable. so if my string = 123456. then i want: int...
[1 reply] : This function will take a number "n" and split it into a vector of 2-d... (by Stewbond)
Two questions about my code
 
I've made a program allowing the user to enter ten numbers in an array, sort the array and then search to see if a number is present in my array. MAIN: #incl...
[4 replies] Last: if(array == objekt) return middle; In binary_search y... (by maeriden)
help me out!
 
#include <iostream.h> int main() { char a, f; float d, b, c; cout<<"pass\n"; cin<<f; if (f=='s') { cout<<"enter the operat...
[3 replies] Last: thank you so much. actually i messed the whole program. i choosed the... (by abeginner23235616)
expected ')' before numeric constant error
 
on line 28 i keep getting 2 errors the "expected ')' before numeric constant" error and the "expected ')' before ';' token" error any ideas on how i can fix thi...
[5 replies] Last: Somewhere in the middle of that line is this bit: SpeedResistance*0.0... (by Chervil)
Text creator game almost done
 
hello, I have almost finished my text adventure creator but I need some help. It does not work perfectly. I was hoping somebody could run this program and give ...
[2 replies] Last: You have to type in the beginning of the text adventure and then you t... (by youngcoder13)
October 2012 Pages: 1... 6970717273... 84
  Archived months: [sep2012] [nov2012]

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