| |
Rating
Thread /
Thread Starter
|
Last Post  |
Replies |
Views |
|
|
by WaltP
Guidelines for Posting Requests for Help
version 3.1
GIDForums is pleased to provide these forums to help you understand programming techniques and correct programming problems. Following these guidelines will help you post good questions with enough information that we can understand your...
|
21-Apr-2005 02:44
by WaltP
|
0 |
15,423 |
|
|
by onako
I store matrix entries in std::vector<double>, such that the reading is row by row.
This means, for matrix
1 3 4 8 9 3
3 6 8 1 1 2
2 0 9 8 7 6
the std::vector<double> would have entries: {1,3,4,8,9,3,3,6,8,1,1,2,2,0,9,8,7,6}.
To transpose the matrix I use the naive approach of...
|
|
10 |
91 |
|
|
by Blake
I'm a bit stumped by a compiler warning that arises from this code:
CTNode::CTNode(const list<unsigned int>& rowList, CTRootNode * r)
: nodeRows(new unsigned int ), nNodeRows(rowList.size()), root(r), basisVector(NULL)
{
assert(nNodeRows > 0);
children = NULL;
children = NULL;
unsigned int *...
|
29-Jul-2010 04:55
by Blake
|
9 |
131 |
|
|
by DamienCurr
Good evening,
I have been fighting with this assignment for the better part of a week and I'm still not getting anywhere with it. This link list allows you to add records and display them, but I cannot figure out how to search by first name and last name or to delete a node/record within the list....
|
|
13 |
161 |
|
|
by pruns
I'm trying to make a program that gives an output in matrix format 2 columns but the rows depends on one of the input numbers. here is a copy of my code and In essence I'm trying to make column 1 my Eprime from 1/27210 until it reaches V1prime and column to the calculations giving real(T). I hope...
|
26-Jul-2010 15:52
by pruns
|
5 |
74 |
|
|
by eliimports
When I try to make it run... it start and than after the second scanf (the bonus) it exit and write this:
Run-Time Check Failure #3 - The variable 'income' is being used without being initialized.
Thank you for your help,
Eli
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void main()
|
|
1 |
32 |
|
|
by generalchaoszzz
hi i need a way to convert a char array to unicode char array .
because of that microsofts com library requires WCHAR as parameter sometimes forcedly.
and i dont know how to do this.
thanks.
|
|
2 |
58 |
|
|
by Adeel.817
• A default constructor which will initialize all data members with values 2.5 and 2.5 for base and height.
• Getter and setter functions
You are required to create two objects of the same class.
You must assign values of first object through setter functions.
You should...
|
|
3 |
95 |
|
|
by Freakzoyd
Hello, i was assigned to choose make a check if it was possible to make a figure with a certain number of arrays, only 3, 4 or 5. If input is 3, then make a check for a triangle, else if input is 4 then make a square, else a pentagon, lol. The arrays can only have a length of 4. I start inputing...
|
|
4 |
122 |
|
|
by Adeel.817
To enrich the vision of Logical, Analytical, and Programming skills of students at the basic level of learning; the selection of “C” language is most appropriate. Support or contradict this statement with solid reasons.
|
|
1 |
143 |
|
 |
by qtuutr
hello people, i'm currently new to c++ (how original) and trying to get the hang of structs and classes, I tried the following code, but it errored. Can someone explain why and preferably correct it as well?
#include <iostream>
using namespace std;
struct Blaat{
int a;
int b;
int sum;
|
|
4 |
86 |
|
|
by george89
I am making a calculator program, and when I compile it with the following: g++ -g calc.cpp -Wall -Wextra -o calc I get absolutely no errors, just a warning about a function returning nothing when not a void. That actual warning is: warning: control reaches end of non-void function Though, I...
|
|
3 |
32,067 |
|
|
by Adeel.817
#include<iostream.h>
using namespace std;
class array
{public:
array()
{int i;
for(i=0;i<10;i++)
num=0;
}
void Inputc();
|
|
3 |
75 |
|
|
by fourtytwo
Hi,
I'm a beginner in C++ and lately I tried to make a very simple game of "Rock Paper Scissors Lizard Spock" (as in Big Bang Theory sitcom ;)).
The code does compile, but when the destructor deletes the array elements, the program sends EXC_BAD_ACCESS signal. Using debugger I discovered that the...
|
|
5 |
131 |
|
|
by Adeel.817
Problem Statement: Multiplication of two objects of same class
• You are required to write a class. Class should have an array of 10 integers as its private data member.
Class should have
• A default constructor which will initialize all array elements with zero.
• Getter and setter functions
• An...
|
|
4 |
98 |
|
 |
by gidfuser
I am new to C++, have some experience of writing very basic console apps and am using Virtual C++ to write my first Win32 app.
I am using Virtual C++ 2008 Express Edition on Windows 7 64 bit edition.
At present I am just learning how to do the basic parts of apps such as menus, dialogs, message...
|
|
1 |
88 |
|
|
by jakepolak
Hello,
when I write something like this:
char arr = "1234";
it is the same as:
arr = '1';
arr = '2';
|
|
1 |
85 |
|
|
by mosquito
Hi all,
I have a data list containing binary numbers (0's and 1's), for example in the following way:
0
1
1
0
0
|
|
2 |
90 |
|
 |
by vermin1302
I'm using Dev-C++ 4.9.9.2 to compile a program I wrote about five years ago.
I recall that it compiled without errors when I first wrote it.
I had to change a few things, because I guess the code was getting a little old. Anyway, I got rid of all of the errors except this WinMain@16 thing. I've...
|
04-Jul-2010 09:34
by Gero
|
6 |
21,608 |
|
|
by Katiaaaaaaaaa
hello everyone
I want to make a program that displays a grid on a rectangle (a mesh), for me I made a program but it does not segue from the small square grid, it shows that the points of small peaks square grid, PLEASE HELP ME, I need it VERY URGE THIS PROGRAM, here is the program that I made:
#...
|
|
13 |
237 |
|
|
by Freakzoyd
Hello guys, I know this problem has been around before because i have made some research but I didn't understand any of the solutions given to the people with the same problem so decided to ask again in search of a better answer. I am using Dev C++ 5 beta with mingw downloaded from bloodshed.net,...
|
|
1 |
72 |