General C++ Programming - March 2014 (Page 34)

Game networking tutorial?
 
Does anyone has a good 3D cross-platform game networking tutorial? Thanks
[2 replies] Last: I've seen this recommended by several sites too for networking. http:... (by BHX)
Using code to use a different program, for my program?
 
I'll start off by saying that I began programming about a month and a half ago, and being a "math person" it was mostly intuitive to me. So I would classify mys...
[2 replies] Last: http://zyzzyva.net/wordlists.shtml (by cire)
Ignore characters
 
So i am inputting a file that looks like this matt S david S peter S Doctor Rose R Donna S Martha S Clara How do I delete the 'S' and just get the names in...
[no replies]
by zsmash
how to change color ?
 
#include <windows.h> void gotoxy(int x,int y); int main() { int i; int y=6; int x=9; for(i=1;i!=0;i++) { syste...
[no replies]
C# in C++
 
I want to use C# code in a C++ project. It seems to work somehow with COM. What is the main principle doing this? Are there any other methods? Thanks fo...
[no replies]
CodeBlocks to Visual Studio 2013
 
I just got Visual Studio 2013 and I want to work on some of my old projects, but I don't really know how to access some things in Visual Studio. In CodeBlocks, ...
[2 replies] Last: Right click on the project (not solution). At the bottom of the pop up... (by coder777)
by sgk
Merging two linked list into one
 
I have created this program to merge two linked list into one ,but however everything is working fine but on execution it providing a segmentation fault error (...
[1 reply] : ... (by ne555)
n Prime Numbers..
 
Write a c++ program to print out the first n prime numbers and the sum of the first n prime numbers.
[7 replies] Last: @JLBorges Sorry I thought it was i + 1 :) (by abhishekm71)
Big-O Analysis--Complexity of algorithm
 
Hi All, I was going through complexity of algorithm and they stated that if n=10^5 and complexity f(n)=2^n then it takes 10^285 centuries for a processer to ...
[3 replies] Last: @NT3 @Zhuge Actually few months back I started learninng programming ... (by venkatacplpl)
Tokenizing a string
 
I have this problem (homework): Write one program that receive a string, tokenize it by ' ' delimiter and show the output, using STL So, I write: #inc...
[3 replies] Last: In this case, for each iteration of the loop, 'token' ends up being ea... (by Zhuge)
How to expand a 2D vector?
 
for example, I defined an empty 2D vector vector<vector<size_t> > PI; now I want to expand this 2D vector to Nx rows and Ny columns one by one and assig...
[1 reply] : One approach could look like this: vector<vector<size_t> > PI; ... co... (by coder777)
by shoqi
queue
 
Hi, Please help. I have assignment but not able to create the code. Write a code that inserts 3 1 5 7 8 in an array and delete 3 then and the output should ...
[3 replies] Last: First of all, please use code tags when posting code: http://www.cplus... (by Catfish666)
Is this the right way to program this?
 
Solve a problem that has the user continually entering integers, one at a time, and assume these integers are in the range of 0 to 10 and calculates their sum u...
[2 replies] Last: i tend to over think my programs and it does work thank you for your h... (by Noob Programmer)
Help with C++ Homework with Fibonacci numbers
 
Write a program that displays the first 40 Fibonacci numbers. A Fibonacci number is created by add the previous two, with the first two always being 0 and 1. ...
[3 replies] Last: i do not copy but thanks for reminder! i use what i am told to better ... (by Noob Programmer)
by Cobryn
Finding and displaying a word found in a string
 
#include <iostream> #include <string> #include <iomanip> using namespace std; int main() { //Program Goal //Have 3 Strings to represent 3 categories //Hav...
[4 replies] Last: Thanks for the help and now it's working! 2 months trying to figure th... (by Cobryn)
cerr is not buffered! use it as debugging information, good or not?
 
because clog and cout are all buffered, so if you don't use endl to flush it, if you use them to print out debugging information, then there will be mista...
[2 replies] Last: Thanks, JLBorges, that is something new! (by northfly)
Use a program inside of code?
 
I'll start off by saying that I began programming about a month and a half ago, and being a "math person" it was mostly intuitive to me. So I would classify mys...
[1 reply] : Short answer: yes Long answer: It depends on program and your skills. ... (by MiiNiPaa)
How to shuffle a vector (cards)
 
I am trying to write a sub-program that takes a deck of 52 cards and will shuffle it up using this algorithm: Start with n=51 Repeatedly: Generate a ran...
[1 reply] : Problem solved: http://www.cplusplus.com/forum/beginner/125051/ (by MiiNiPaa)
What is wrong in these classes?
 
Please help me finding the error. Its driving me crazy! It gives an error in account.cpp at setName it underlines (name) in depo.setName(name); Name.h /...
[3 replies] Last: Well, it is just like that: function expects two strings, you gave it ... (by MiiNiPaa)
by rengaf
Problem with inheritance
 
Dear all, could anybody tell me what is wrong with the attached code? It gives a Bus Error at run time. I need to do: C *c = (C*)(new A()); ...
[1 reply] : You can't (And really shouldn't!) do that. A does not derive from C. ... (by S G H)
March 2014 Pages: 1... 3233343536
  Archived months: [feb2014] [apr2014]

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