Beginners - March 2010 (Page 17)

Question about C++ knowledge for job
 
Hi, I'm currently a 2nd year computer science student and currently taking c++. I am planning on g...
[2 replies] Last: Coming directly out of school, the expectations set upon you during an... (by jsmith)
Purpose of Iterators?
 
I am not really understanding the purpose of an iterator. What is the difference between these two:...
[1 reply] : Neither compiles, but the second one would if the variable were not na... (by jsmith)
by michy
strcmp
 
hi there, a newbie is back to ask some newbie question again =).. i have a line of code: us...
[7 replies] Last: You can pretty much prefer string everywhere. Unless you are in C, whi... (by Zhuge)
Games Programming
 
i'm aware that C++ is able to make games, however is it true that most big online rpg games like W...
[12 replies] Last: [quote=Seraphimsan]Lol, I have a friend who opted to learn C# as his f... (by Return 0)
by KC2010
cannot get search to work properly.
 
#include <stdlib.h> #include <stdio.h> #include <string.h> #define MAX 25 #define S_SIZE 30...
[no replies]
2 getlines in if statement
 
First let me start by saying I'm new to the world of programing, and finishing up my first semester ...
[no replies]
Converting base 8
 
Consider the following function that converts a positive decimal number to base 8 and displays the r...
[1 reply] : To "trace" they mean show what the value of n is at each step. So... (by Duthomhas)
bisection method to find roots
 
I've worked out a method to solve the roots and too print the root. but I want to show the values a...
[no replies]
Run time Failure- Stack around the variable was corrupted
 
I hit upon this run time failure. Looks like some initialization error The purpose of this progra...
[2 replies] Last: That was the problem. The test {s !='\0'} was wrong. Changed the te... (by funprogrammer)
output display is wrong
 
I am working on an assignment that generates random numbers, writes them to a file, reads them back ...
[3 replies] Last: You're welcome. And to be honest, I was lucky with line 8. Just tried... (by Mathes)
Quick Sort
 
Implement the quick sort algorithm in C++ as it sorts the following array into ascending order. List...
[2 replies] Last: Here is a way http://www.cplusplus.com/reference/algorithm/sort/ (by OnymousIllusion)
Error checking an array
 
I'm writing a program which calculates the average rainfall for 12 months. I need to make sure no c...
[2 replies] Last: it didnt work, i dont quite know what you mean by failbit. (by Hibochi)
by lost
divide weights into two groups
 
Hi, I need to write program which would divite weights into two groups as equal as possible. But I c...
[9 replies] Last: I assume OP is looking for an algorithm that generates the optimal sol... (by jsmith)
VOID function
 
What is wrong with the following function? void Square (int& x) { x = x * x; return ...
[12 replies] Last: what i meant was you have to use return; instead of return whatever... (by Mathes)
by tidbit
trying to pull a specific digit from an intiger
 
Hello, I have been trying to figure out how to cout a specific digit from an integer and I am no...
[5 replies] Last: Thank you for the explanation on strings. I was thinking using a strin... (by tidbit)
CALL FUNCTION WITH SET TIME PERIOD IN A BACKGROUND
 
Hello, all. I have a software written, which has some GUI under Linux, working with Sqlite bases. ...
[3 replies] Last: Boost Asio is a framework for doing what you need. Look at the core A... (by PanGalactic)
C++ read file
 
There is one line in file data.txt: Name Sur 122 I need to read this line into 2 variables: ...
[6 replies] Last: Thx :) (by SuperHP)
Constructor's calls
 
class base { base() {} ~base() {} }; class extended1 : public base { public: ex...
[4 replies] Last: You should think twice about not using a virtual destructor on base. (by kbw)
reading several files in the loop
 
Hi, I want to read several files in a loop & use that in my code. Can anyone help please. I am...
[1 reply] : ifstream theFile1("file1.txt"); ifstream theFile2("file2.txt"); s... (by crimson)
by mmthob
dice game
 
can anyone help me with this: You task is to write a C++ program for a new kind of dice game. In th...
[2 replies] Last: I'm no heavy weight coder by any means, but it definitely looks as if ... (by wolfcry)
March 2010 Pages: 1... 1516171819... 34
  Archived months: [feb2010] [apr2010]

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