
please wait
by nano511
Access Violation Reading File
|
I'm getting this acess error trying to read in from a file. Error First-chance exception at 0x77cf8dc9 in Testing_OpenGL.exe: 0xC0000005: Access violat... |
Jun 29, 2013 at 2:29pm
[6 replies] Last: I replicated this segment of code in a diferent project and it worked.... (by nano511)
|
by benbalach
Confused about doubly linked lists
|
I am reading "Programming Principles and Practice Using C++" by Bjarne Stroustrup. I am currently on chapter 17.9.3 (just informing those of you who by any chan... |
Jun 29, 2013 at 2:24pm
[3 replies] Last: @MikeyBoy @kooth Thanks you very much! Now I understand everything! (by benbalach)
|
Expected init-declarator before "int" |
I am here with a problem again. I am still working on my ticktacktoe game. I have tried everything i know to code that game again using arrays. At the end of th... |
Jun 29, 2013 at 2:23pm
[12 replies] Last: it is the last code which works fine: #include <iostream> #include <... (by closed account 1v5E3TCk)
|
by zelandra
symbol &
|
Hello, What is the meaning of (1&3) Have you some example where it is good to use such a condition? Thanks |
Jun 29, 2013 at 2:00pm
[2 replies] Last: For example to determine whether an integer value is odd or even. if... (by vlad from moscow)
|
by GoranGaming
Counting Variable Names
|
I'm stuck with coming up how to create this program that lets you enter a sentence and then counts how many of the words it contained were by C++ approved varia... |
Jun 29, 2013 at 1:39pm
[6 replies] Last: Pure C++98: #include <string> #include <iostream> #include <sstream>... (by JLBorges)
|
Bitwise opperations |
I've not done much work on using variables for bit flags so I wanted to check that this is correct before putting it into my code. Lets say if I want to chan... |
Jun 29, 2013 at 1:10pm
[15 replies] Last: @naraku9333 dont worry the overlap is intentional there. And yeah I w... (by TheBeardedQuack)
|
by rafae11
boost shared pointer
|
I am trying to learn shared pointers the code as is works fine. #include <vector> #include <set> #include <iostream> #include <sstream> #include <algo... |
Jun 29, 2013 at 1:08pm
[4 replies] Last: Looks OK to me. On line 26 you create a shared pointer to the dynam... (by MikeyBoy)
|
by Jayzen
Generator
|
Write your question here. Hey guys please help me whit this ..how can i generate A random names in c++ as an example You type 10 names the programe needs to... |
Jun 29, 2013 at 12:25pm
[1 reply] : > You type 10 names the programe needs to genrate and pick randomly 5... (by JLBorges)
|
by Amandeeps
Removing unneeded values from a file
|
Write your question here. Hello all. I am having problem with deleting unwanted data from a file. For example: if the file is like given below: 0 7 9 0 7... |
Jun 29, 2013 at 12:04pm
[no replies]
|
by nasser
need an explanation
|
i can't understand this code please (i'm a beginner) #include<iostream> using namespace std; int main() { int numbers ; int *p; p=numbers; *p=10 ... |
Jun 29, 2013 at 9:51am
[2 replies] Last: Thx alot (by nasser)
|
by varmision
Problem with the if statment
|
Okay so I learned the if statment today and tried combining it with a calculator. And I thouth if i wrote if(ans = 100) { cout << "You are awesome! \n \... |
Jun 29, 2013 at 8:02am
[1 reply] : Try this : if(ans == 100) Equality operator, not assignment. HTH... (by TheIdeasMan)
|
by supraba
special format specifiers in scanf
|
How exactly does %[\n] function? what is role of * in %*c (though it's explanation is already present under scanf,yet it appears vague,so pls explain) ch... |
Jun 29, 2013 at 7:41am
[4 replies] Last: I get it now.Thank you cubbi. (by supraba)
|
by prestokeys
How is this done?
|
Let's say you have a class named Girl. Then you declare: vector<Girl> girl, girlfriend, sister, student, date; Then later you have assignments like girlfr... |
Jun 29, 2013 at 7:30am
[2 replies] Last: This works. I should have thought of that from the very beginning. N... (by prestokeys)
|
My First Official Attempt |
I decided to take up learning C++ (as I'm sure has been said an untold amount of times). For my first (but unoriginal) project, I decided to create a CLI Simple... |
Jun 29, 2013 at 6:30am
[4 replies] Last: I would have a case for option 5, then there is no need for line 50. ... (by TheIdeasMan)
|
by anzhit
Calendar program
|
i had to make a program to print a calendar taking the input of number of days and the first day of the month from the user . the sample output given in the que... |
Jun 29, 2013 at 6:00am
[no replies]
|
by marisa m
interactive while loops
|
Hi, I am new to this forum and I am having trouble with my interactive while loop. I can't get my program to loop three times, it will only loop once and it won... |
Jun 29, 2013 at 4:02am
[6 replies] Last: That's because your code tells it to do that! I'm confused. Can you ... (by kyiro37)
|
by rorschach775
Incorrect input function
|
Hey everyone. I'm trying to write a function that reads in a double and checks for incorrect inputs, but it won't let me output the value in main. I have a func... |
Jun 29, 2013 at 1:09am
[2 replies] Last: Cool. So just pass by reference and it's good. That helps a lot. Thank... (by rorschach775)
|
by programgirl
Adding days to a date
|
We were given an assignment to add a number of days to a date. So I would add for example 10 days to Jan 20, 2013. I understand operator overloading and I an i... |
Jun 29, 2013 at 12:23am
[3 replies] Last: - first I will convert (day,month,year) (Gregorian) to Julian day numb... (by tntxtnt)
|
by kingkong200
issue with looping a ifstream
|
Using any numbers found in a text file for example 3,5, and 8. It appears the the last number such as 8 will be added twice in the total number and I am not qu... |
Jun 28, 2013 at 11:53pm
[2 replies] Last: ahhh that makes sense, Thank you. (by kingkong200)
|
by paistede
Cin restriction and not rounding the results.
|
I have been trying to figure out how to limit the input up to two decimal points (e.g it would not accept 5.432 only 5.43). I have tried to do : cin >> fixed ... |
Jun 28, 2013 at 10:29pm
[no replies]
|