Beginners (Page 74)

help with pointers
can someone explain how we got the output please #include <iostream> #include <ctime> #inc...
[2 replies] Last: Why did you make your main a void? You need to make it an int first an... (by UnclePutin)
Can someone help me understand how we got the result with this code? #include <iostream> ...
[5 replies] Last: in line 16: j-- is the postfix decrement operator. which means it won... (by Esslercuffi)
Write a program to solve word anagrams . Your program should 1) read in the file words.txt, ...
[no replies]
Adding to the size of a dynamic array of structures
So I'm trying to write a program that keeps an inventory for a store. The code that I'm struggling w...
[7 replies] Last: I know you say you have to use an array instead of using a vector. But... (by XorioZ)
xcode help
my program isn't reading from a .txt file that i created can some tell me where i went wrong #...
[1 reply] : when i open files in Xcode i have to include the path, like so in_str... (by VanTate)
mod a floating point
Hey all So for my homework I'm trying to write a program to find if a user chosen floating point ...
[5 replies] Last: You should check if the fractional part is close to zero, rather than ... (by Zhuge)
by clodi
3D cube CORNER-CASE neighbours
Hello, I am coding a 3D cube with 10x10x10 little cells. Every cell has a number ID and it also stor...
[3 replies] Last: //FRONT - SECOND SHEET - EVEN site[ i ].setNeighbourID( 0 ,(i) );... (by clodi)
by adam43
For Loops
Write your question here. I am wondering how i can take a phone number such as 9032389960 and add a...
[1 reply] : http://www.cplusplus.... (by Darkmaster)
dice roll simulator
I was given the code below by my proffesor, and asked to modify it so it can keep track of how many ...
[2 replies] Last: @el rookie You could create an array of size 6, and initialize it to ... (by whitenite1)
need help understanding what to do
i have a program for my 350 class i need to do but me and my classmates dont understand how to go ab...
[8 replies] Last: @dhayden ok he just told us that each type of the jobs are independant... (by andrewthecoder)
insert text files into object of class
So I want to insert a text file into an object of a class called SortedList. the text file contains...
[no replies]
Help with struct Arrays and File Operations
So I posted earlier but almost completely reworked my code. The problem is that the function that th...
[1 reply] : Switching between the extraction operator<< and getline() will often c... (by jlb)
by clodi
3 lines of code and an error I can't fix..
It won't compile. It says my call is "ambiguous" int Lattice::XYZtoIndex( int a,int b,int c ) ...
[3 replies] Last: yeah, just fixed it. % operator needs two integers (by clodi)
Need Help
My question is how would i write my code to allow only m=male to appear only not the f=female. I'm s...
[2 replies] Last: cin >> gender; while (file >> name >> birthyear >> salary >> gender) ... (by wildblue)
Need help with this code
Hi, most of this code is working, except the part where it's supposed to output the code into the te...
[3 replies] Last: marka = mark * .15 + mark; You're taking 15% of mark and adding it ... (by wildblue)
by nasser
Ubuntu 14.04.1
What is the best IDE/Compiler for Ubuntu 14.04.1
[3 replies] Last: Well if you would like an IDE, the top two that I would recommend are ... (by Fr0zen1)
constant pointers
is not the first time I've asked this question...but i hope this time i get a very clear answer once...
[5 replies] Last: I'm glad, good luck :-). (by Jacobhaha)
by drax
go to loop
I am trying go to loop, but whenever I run this code, my program crushes, although I didn't have any...
[2 replies] Last: was such an obvious mistake, thank you! (by drax)
Writing a "for" loop to convert binary to decimal
I am using Brackets, and I need to write a for loop that converts a binary number into a decimal. T...
[2 replies] Last: Also, some additional hints are: The value at each position in the bi... (by happy02)
How to execute a code from file?
Lets say my program reads the c++ code from a file. Program puts all that code into a string, and ca...
[2 replies] Last: A compiler is not going to be able to read it's input from a string in... (by AbstractionAnon)
Pages: 1... 7273747576... 133
  Archived months: [sep2014]

Cannot post in this page. To post a new message, go to the first page.