- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Electrical/Software Engineer working primarily with real-time control systems and user interfaces for industrial equipment.
- Interests
- Widely varying
- PC Specs
- Whatever they need me to work on.
Re:
Hi everyone, Again, I'm just trying stuff out to try and learn a bit more but here goes... I created a small Logger util - I included the pthread library and added a mutex lock in each of the "write*" functions, tested it by running a few instances of a … |
|
Re:
I just wrote a simple code.Since it have no warnings or error attentions from the VC compiler,it TOTALLY doesn't work! What I wonder is whether the problem is due to the sequence of complying as well as how to figure it out. ------------------ Here is the code [CODE]#include<iostream> using namespace … |
|
Re:
Hello, so my assignment was to take a text file that contains a properly written C++ program code and to go through that code character by character and output all the comments in that code to another text file. This is what I got so far, basically I`m wondering how … |
|
Re:
Here's my full assignment below, and then the code I have so far to follow. I'm up to Step 4 of the assignment... need some insight to kickstart my flow. Much appreciated. [QUOTE]The ABC Corporation wishes to review a group of its products based on their performance in the prior … |
|
Re:
Hello, I'm just wondering really.. I have a 2D matrix but I've defined it as a 1D matrix. So for example: [code] double *matrix = new double[N*M]; [/code] My question is, I'm going to be manipulating data very shortly and want to read this data in from a text file.. … |
|
Re:
Hello guyz! Im conducting a debugging contest... Im writing some questions... I wrote a code implementing virtual functions.. Im not sure where to include bugs here.. Can anyone help me add bugs to this code?? Please bugs must make people think.. THey must not just be syntactical errors.. Thank you.. … |
|
Re:
/*PROGRAM TO PRINT SUM OF THE FOLLOWING SERIES - X + X*X/2! + X*X*X/3! + X*X*X*X/4!....n terms. I'm not getting the correct output. eg-for n=3 and x=2; compiler's ans = 4.66 correct ans = 5.3. HELP ME OUT...*/ [CODE]#include<iostream.h> #include<math.h> #include<conio.h> void main () { clrscr(); float x,sum=0; int n,fact=1,j,k; … |
|
Re:
Hello, I'm trying to use the compiler optimizations for GCC 4.3.3. I used the following [URL="http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html"]LINK[/URL]as a reference. I'm mainly using the O2 and Os levels of optimizations. Could anyone please let me know if the order in which the options matters? Thanks in advance! |
|
Re:
so i have the following code, it inserts a number to a list and then i call my sort function which is below this function, the problem is that my sort function takes forever, is there a way i can implement my insert function so that everytime it inserts a … |
|
Re:
I've tried for some time to make the following code run properly. The problem is in the comparison function of sort(comp). It compares 2 doubles but in some cases it causes the program to crash with the message "Debug Assertion failed! Program: retrace.exe File:c:program files (x86)\microsoft visual studio 10.0\vc\include\algorithm Expression:Invalid … |
|
Re:
Hi, a friend recommended the following winsock code to me. [CODE] #include <stdio.h> #include <winsock2.h> void abc(char *p) { char *ptr; p[1000] = 0; ptr = strchr(p,(int) "\r\n\r\n"); if(ptr) ptr[4] =0; printf("%s", p); } int main(void) { WSADATA ws; int d; char aa[1001]; struct sockaddr_in a; SOCKET s; int ii; … |
|
Re:
I'm working on an assignment where I have to write my own raisePower function to take a base and a power and compute the product. The assignment states that the function needs to return a long but all input/output values should be ints. The code compiles and runs but does … |
|
Re:
So this is my second project in C++, but I'm having some trouble understanding Recursive functions. We are supposed to write a program that has a recursive function. And the program should ask the user for a number. And then display the number of even digits that the number had. … |
|
Re:
Heard people say c# for big programs, c for fast programs and c++ is just something that failed at being object oreanting c is c++ useful? |
|
Re:
Hello everyone, i got a question, but cant figure it out here's the question: Declare a structure to hold the time. It should have 2 members: one for hours and one for minutes (each as integers). Declare another structure for date. It should have 3 members: one for day, one … |