Beginners - February 2013 (Page 29)

Do you learn to code quality code?
 
I was just wondering if you learn to write better and more simple code as you develop more advanced? Or do you need to practice it in a special way? I am a begi...
[1 reply] : depends on how often you have to use it, if anyone gives you advice, i... (by Darkmaster)
by high
Rabin's information dispersal algorithm
 
#include "include.h" void __cdecl _tmain(int argc, TCHAR *argv ) { DWORD ini=GetTickCount(); try { if( argc == 3 ) //recombine { RabinIDA ra...
[1 reply] : This is a console program, and needs command line arguments. You can ... (by Lowest0ne)
by Sergi0
Should I continue learning C++
 
I already know HTML and CSS an I am learning JavaScript and C++ and was thinking of learning PHP and Python(which I already know a little) You think I should c...
[1 reply] : You should keep learning C++ IMO. It's a GREAT tool if you look into s... (by Minimacfox)
by Sandz
Help with !
 
if (room != 1,2,3) { cout << "Invalid room type choice" << endl; } Is there any mistakes with my code? When I enter 1, the process continues but In...
[3 replies] Last: It worked! Thank you so much! :) (by Sandz)
VS2012 lib error
 
Hi every one, Part of a network project is to build a lib which I did using VS2010 and the program run no problem. Then I switched to VS2012 and rebuild the .l...
[no replies]
Reducing numbers to 0
 
I am trying to count down a number.. using loops and functions.. but I seem to be having issues.. int decreaseNumber(int x) { while(x <= 0) { c...
[2 replies] Last: First off, these do the same thing. x--; x = x - 1; You had you're ... (by Lynx876)
by progga
Maze
 
How can you do some walls for the maze? Like here in my code? can you put some walls so i can make it like a maze #include <iostream> //#include <conio.h> ...
[8 replies] Last: Some tips for the future = maybe paste more than just a single line of... (by Chervil)
IDE: Library & Header Confusion
 
Hello everyone. I'm a BASIC programmer, coming from the VB6 and VB.Net environments. Although I have some familiarity with the C/C++ language, the need for the ...
[8 replies] Last: Arr, just remove the parenthesis at the end: http://www.open-std.org/J... (by MiiNiPaa)
Difference between a[] and char* p
 
Hello, I would like to know what's going on under the hood in this situation: int _tmain(int argc, _TCHAR* argv ) { char a = "orbis"; char* p = "...
[1 reply] : When appears in a function definition or prototype, it's a placehold... (by kbw)
Trying to shorting a bit of code
 
Hi, I'm quite new at this stuff but what I'm trying to do is shorting this as I'm going to have to do it for 24 different letters(variables) and I can see alrea...
[2 replies] Last: I don't understand the code, and how it relates to the picking-up and ... (by Chervil)
&
 
What does mean this symbol (i * i) & 2 (This symbol-------> & )
[2 replies] Last: Thanks (by Medet Kozhabaev)
by genap
If-Else statements and Executive Brackets
 
I'm a newb, trying to use if-else statements and brackets. I keep getting this error: sstream.cpp:45 error: expected primary-expression before "else" " ...
[5 replies] Last: if (pin == "1111") std::cout << "correct" << std::endl; else ... (by MiiNiPaa)
Array, Zero a row
 
/* CIS 251 Lab 3 Two dimensional array code */ #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; void init...
[2 replies] Last: Thank you! I was thinking of it too simplified as we would see it rat... (by sh129951)
Can someone explain this to me?
 
How would you turn a value for example 100 using modulus to determine the dollar amount, penny amount, quarter amount, etc? Can someone explain this to me? ...
[3 replies] Last: modulas is not the answer There is an fmod() in <cmath> (by MiiNiPaa)
by js404
ridiculous error messages that shouldn't be happening
 
Here's my code: #include <iostream> using namespace std; int main(void); { cout << "I like printing this line\n"; return 0; } very simple. It's...
[1 reply] : you're not supposed to have a semicolon in front of the calling main f... (by Konochi)
by gladi
Time and Date class error.
 
I have class that I have to modify. the problem in the output. I don't why it did not pass the month. Please.. please... some help. this the head file. #if...
[3 replies] Last: You're quite welcome. (by palauan73)
Basic Interest Program with wrong math??
 
Hi. I have only been programming for a couple of weeks now, and I am running into some snags with my programs For instance, the current program I am working ...
[7 replies] Last: WOW! I figured it out. Whew! I figured out I needed to used fixed & ... (by mizztrixi333)
Reversing sentence order using char arrays and pointers(College Assignment)
 
Noob here. Ok so what I'm suppose to do is take short sentences from the user and output the reverse order of the user input to the user. IE: I like blue I ha...
[11 replies] Last: You aren't really doing what the assignment requires. Here's a straig... (by cire)
How does this for loop work?
 
Hi I am new to programming and in my class we wrote this code, but I am not sure how it did what it did! :( Can someone explain this to me? Thanks! #include...
[1 reply] : for the first for loop. for example let us enter 2 for num. for(int i... (by gladi)
by kohlh
accessing directories
 
Hi I am working on boiler plate code to access a directory and push_back the file names found in that directory to a vector so that I can work with them sorting...
[no replies]
February 2013 Pages: 1... 2728293031... 67
  Archived months: [jan2013] [mar2013]

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