General C++ Programming - April 2014 (Page 36)

Looking for Excercises
 
I've been learning C++ for a while, and I havent touched inheritance (English is not my main language, so maybe this isnt the right word) at all... I know a lo...
[no replies]
memory leaks
 
Is it safe to say that whenever you use malloc, you should use free? Take example below: void sendCmd(unsigned char *ans) { u8 *ask; u8 work ; ...
[3 replies] Last: [quote=johnmerlino]Is it safe to say that whenever you use malloc, you... (by closed account N36fSL3A)
Having a lot trouble implementing A*
 
Hi guys. I'm applying for an internship and they asked me to create a maze solver program that uses recursive backtracking to solve the maze. I did that, sent i...
[4 replies] Last: @Smac89 THANK YOU SO MUCH! You have no idea how much this helped me! ... (by benbalach)
C++ template static method
 
I found a useful method on the internet but I want to use it as a static method. The problem is it contains a template type and I don't know how to make it work...
[7 replies] Last: Ah yes that worked, thank you all :D (by Bingo90)
Is my code right? (Arrays, pointers and strings)
 
Using (Microsoft Visual Studio C++ 6.0) software, follow the sample output to write and run a program that uses two functions called createand print. The fun...
[1 reply] : Did you even tested your code? Because it seems you simple haven't. A ... (by bufige)
Is It Really Possible to Learn C++ without knowing the details of C?
 
Hi, I would know what you think about this. There seems to be an idea that C++ can hide the details of C, to the point that many details can be overlooked....
[15 replies] Last: Hi, thanks for your replies. I find that for myself I needed the point... (by dalfonso01)
student's average grade c++ (simple question) :)
 
Hi , I'm working on a project were I have to build a program that read from a text file some student grades and calculate average and total average .I've done e...
[7 replies] Last: @yacinebenz lol, i was looking just for "syntax" errors but there shou... (by eyenrique)
Read in txt file to array[r][c].
 
Perhaps my original wording on this was confusing so I will ask a different way. if I have a text file called data.txt and it has the following in it. 12345...
[10 replies] Last: Thanks for the pointers. Here is working file for future reference sh... (by bwquestion)
Performance - Bitwise operations on 64-bit and 32-bit integers?
 
Do bitwise operations on 64-bit integers take time linear in the numbers of bits(64) or constant time ? long long x,y; x = (1<<59); y = (1<<60); jav...
[4 replies] Last: Thank you. (by meteora)
by HJH
Defining a constant & creating double variable with initial value
 
Define a constant PI that has a value of 3.14159 - Create a double variable, Radius with an initial value of 10 - Create two double variables. Circum and ...
[3 replies] Last: Thanks, I did one similiar to this over a year ago, but I had to cin>>... (by HJH)
how to write this code by using thread?
 
I am new in here and I need to write my code by threads! unfortunatly I couldnt find the way! it is the first time using threads. can any one help me please? ...
[2 replies] Last: First, please use code tags. Do you have any idea as to how threads w... (by TwilightSpectre)
by ribery
Read/write to and from OBD_II Adaptater
 
hi, some one can help me! i need to progarm ARM9 processor with c++ language. I'd like to start coding OBD_II that works like this: OBD-II will never send dat...
[no replies]
Pointers and function protoypes
 
Hey so I have some code that involves dynamically allocating arrays. These arrays will be parameters for various functions. My question is do I need to inclu...
[3 replies] Last: If you don't intend to modify the elements pointed to, then const is i... (by cire)
hi need help to do this programm thank you for the help!!
 
Develop a C-code that numerically integrates one of the following functions: (1) f(x)=x√1+{ πsin(0.1πx))^2 E{-5,5} (2) f(x)=-1/64 (2cosx+5cos(3x)^...
[2 replies] Last: Wow, you must use unions? I've only seen unions in professional code ... (by Stewbond)
Need help with my class functions
 
Hello all, I have a homework assignment doing some weird things, I'm genuinely not sure why. I took the previous lab assignment, and have been building off ...
[8 replies] Last: You could add break statements to your code as-is, or you could do it ... (by LB)
Array of struct's initialization
 
In a book I'm reading, the author has the following struct: struct VertexPos { XMFLOAT3 pos; }; Where XMFLOAT3 is a structure with x,y,z float...
[2 replies] Last: XMFLOAT3 isn't a POD type upon inspection. The way the author talked a... (by brighamandrew)
Encrypting MAC address to a 4digit number
 
Hi, I want to encrypt Mac address to 4 digit number which can be decrypted to original MAC address. Waiting for valuable response
[9 replies] Last: LOL BlakeK +1 Though the characters won't technically only have ... (by Duthomhas)
String subscript out of range. for loop conditions all look good
 
Im having a problem with my sneaky hangman game I feel like im really close just getting an error I can't fix. When I run it, it says something like string subs...
[3 replies] Last: Fixed it on line 97 it should be mostFrequent (by EoinMagner)
Show_Your_Skills
 
The average monthly temperatures for years 2010, 2011, 2012 and 2013 are shown in the table below. You have been asked to write a program that will store these...
[12 replies] Last: Nothing wrong with us. You are mentally unstable. Or 5 years old. (by mutexe)
ASSIST ME PLEASE
 
I wrote code for this game I am working on, but it is not working right. anyone want to help me? I am using windows 7
[3 replies] Last: Problem solved! Your code isn't working right because you used goto a ... (by LB)
April 2014 Pages: 1... 3435363738... 41
  Archived months: [mar2014] [may2014]

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