General C++ Programming - March 2012 (Page 18)

Tittle.exe has stopped working
 
Whenever i try to build a program that needs a class that isn't void the exe file always crashes. Please help? i am using codeblock 10.05 ex. this code would ...
[4 replies] Last: [quote=Zhuge]You are trying to reference a variable called 'pow', whic... (by closed account zb0S216C)
Limiting size of generated value
 
This function is giving varying results on 64bit values, can someone take a look for me since I'm having trouble spotting the problem u64 ME::getHEXFromSign...
[1 reply] : Never mind, found a way u64 ME::getHEXFromSignedDecimal( xStr text, ... (by awsdert)
'new' Operator for structs/classes
 
I'm somewhat new to using the 'new' operator, and I need to use it for a struct/class, but I'm not entirely sure how. This is my code, which doesn't work: #in...
[2 replies] Last: I see a memory leak at 2 sites: Lines 17 & 18. Every call to new sho... (by closed account zb0S216C)
C++ Exercises
 
I need C++ problems to solve (possibly with solutions), cause I need to prepare for an exam. What I need is, structures and classes exercise ( construc...
[1 reply] : Here's a few: http://www2.fz-juelich.de/video/cpp/html/exercises.html ... (by closed account zb0S216C)
Large number Variable
 
Hey guys! I was wondering if there was any way to store a 1000 digit number in a variable. Any help would be great! Thanks -TheNewKid-
[1 reply] : Look up arbitrary precision integers/arithmetic. There are several lib... (by Zhuge)
help c++
 
Hi i have a program to write and i got a sample code all i need to do is read the first line and then stop here is the sample code for you #includ...
[8 replies] Last: int main() { const int size=50; char name ; char name2 ,in ; int... (by S G H)
vector in header file
 
I want to create a funtion that adds two vectors in my header file. the vectors look like this: vector<int>vector1 ; vector<int>vector2 ; How should I...
[6 replies] Last: What about making a simple class, or a simple typedef? typedef int ... (by S G H)
by bizzau
c++ to find the sum of a number
 
Write a program in c++ that will sum 5 numbers that have been entered by a user and display the answer. Thank you
[3 replies] Last: I'm sorry, i'm not a math expert. Try calling someone from Microsoft, ... (by S G H)
Linked List Program Help
 
I have an assignment about linked list and I am confused about it. I was wondering if someone could help me out and look at my code. It has several parts but ...
[no replies]
circumference at latitude
 
Dear #include <iostream> #include <cmath> using namespace std; int main() { ...
[2 replies] Last: thanks (by closed account 4w7X92yv)
Picking up background input.
 
Running some various code and would like for it to pick up hitting any of the function keys. For instance, if I hit F3, I would like for it to react and use tha...
[1 reply] : http://cboard.cprogramming.com/c-programming/108963-implenting-functio... (by oonej)
codeblock issue
 
hello guys let me first say thanks for taking the time to read through this. i am having an issue with running my code in codeblocks-10.05-setup.exe(the file i ...
[2 replies] Last: thanks i downloaded codeblock with mingw. (by Emmanuel11)
Counting game for my project help!!!! i really need it...
 
i am having a problem in my game where i start to count from 1 to 10, can someone help me improve the codes? whenever i start to loop, it couts every "sorry sta...
[7 replies] Last: if( some_condition ) { // here, you put whatever code you want ... (by Disch)
using Zlib to create/append to a .zip
 
I was following http://bobobobo.wordpress.com/2008/02/23/how-to-use-zlib/ but I reached a problem.. it doesn't allow you to select what kinda of compression ...
[1 reply] : zlib only handles the compression aspect of it. The actual .zip file ... (by Disch)
Coding a website?
 
im a beginner here and i was wondering if it was possible to code a website from scratch? am i way in over my head or is it completley plausible.
[6 replies] Last: > im a beginner here and i was wondering if it was possible to code a ... (by JLBorges)
Implementing Header files.
 
AOA, Guys,I want to know about information hiding that is making header and implementation files.I tried it but program is giving linker error in constructor.E...
[1 reply] : Your question is a little vague. Without seeing code or the error, th... (by Disch)
strings/chars
 
C:\Users\Wayne\Desktop\C++ Routines\new_BTree.cpp||In function 'int main()':| C:\Users\Wayne\Desktop\C++ Routines\new_BTree.cpp|361|error: could not convert 'b...
[2 replies] Last: lol, I knew I needed a fresh pair of eyes. Such a simple fix. Thanks T... (by ariesthechamp)
cleaning a string
 
I have a function that reads a file and puts the content into a string. I like to clean the string so there's not white space and such. I tried ws >> but it did...
[1 reply] : You can have a read-into string and a total string. Constantly read in... (by LB)
Help, random ascii char's appearing
 
I was trying to write a program that stores the message in a string backwards into a character array, and whenever I run it sometimes it successfully writes it...
[3 replies] Last: That was how I wrote it the first time but this assignement required u... (by kingsplayer2)
ProjectEuler(8) Help!
 
http://projecteuler.net/problem=8 Im stuck on this problem, right now im trying to read it into a file and calculate the max from there, but i get some crazy we...
[2 replies] Last: for ( i = 0; i < POSITION; ++i ) { int Temp = Arr - '0' ; ... (by cire)
March 2012 Pages: 1... 1617181920... 49
  Archived months: [feb2012] [apr2012]

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